Question: Task 9 - Feature Importance, part 2 ( 1 0 Points ) . The value of Feature Importance This follow - on task will use
Task Feature Importance, part Points
The value of Feature Importance
This followon task will use the same RandomForestClassifier model as in your gettopfeatures function.
The new model will use a portion of the output returned by the gettopfeatures 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 featurebased test data scores produced by the model.
TOCTask Feature Importance, part Points
The value of Feature Importance
This followon task will use the same RandomForestClassifier model as in your gettopfeatures function.
The new model will use a portion of the output returned by the gettopfeatures 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 featurebased 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
