Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started