The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Remove features, train, and then add back features
This is a bit of a complicated problem, so I'll do my best to describe it sequentially
I actually want to train two "systems". The second system will learn from the output of the first.
My challenge is how to:
1) Keep all the features in my example set
2) Learn a model on a subset of features
3) Create a NEW ATTRIBUTE with the predicted value
4) Output ALL the features PLUS the new attribute.
This would be fairly easy, except for my need to train a model on a subset of features.
Does anybody have any ideas about how to handle this??
Thanks!
Here is an outline for what I am trying to do:
I actually want to train two "systems". The second system will learn from the output of the first.
My challenge is how to:
1) Keep all the features in my example set
2) Learn a model on a subset of features
3) Create a NEW ATTRIBUTE with the predicted value
4) Output ALL the features PLUS the new attribute.
This would be fairly easy, except for my need to train a model on a subset of features.
Does anybody have any ideas about how to handle this??
Thanks!
Here is an outline for what I am trying to do:
1) Input is data set with 10 features.
2) I want to perform regression on 8 of the features.
2a) Easy enough with the feature name filter. Just eliminate the two I'm not using for regression. (For example, remove patient's name.)
3) Create the regression model
4) Write out the model
5) Apply the model to the examples
6) Create a NEW example set with the model predicted values AND THE ORIGINAL 10 FEATURES
7) Write the new example set to disk
0
Answers
you could use the AttributeSubsetPreprocessing Operator. This will select only a subset of the features. Do your learning inside this meta operator and apply the model. After the AttributeSubsetPreprocessing has been finished, the resulting inner example set is merged with the remaining attributes from the original example set.
Here is an example: Greetings,
Sebastian