Question: Task 9 - Feature Importance, part 2 ( 1 0 Points ) . The value of Feature Importance This follow - on task will use

Task 9- Feature Importance, part 2(10 Points).
The value of Feature Importance
This follow-on task will use the same RandomForestClassifier model as in your get_top_features() function.
The new model will use a portion of the output returned by the get_top_features() function.
Use the previously defined functions to derive your train and test datasets.
Create a loop that trains your model with an incrementally increasing number of features from the top features list.
The first pass will include the topmost important feature, the second pass will include the top two most important features and so on until the final pass of all top X features.
Your function should return a list of feature-based test data scores produced by the model.
TOCTask 9- Feature Importance, part 2(10 Points).
The value of Feature Importance
This follow-on task will use the same RandomForestClassifier model as in your get_top_features() function.
The new model will use a portion of the output returned by the get_top_features() function.
Use the previously defined functions to derive your train and test datasets.
Create a loop that trains your model with an incrementally increasing number of features from the top features list.
The first pass will include the topmost important feature, the second pass will include the top two most important features and so on until the final pass of all top X features.
Your function should return a list of feature-based test data scores produced by the model.
TOC

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!