Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

RandomForest Feature Importance

$
0
0

@Kuber wrote:

Hi AV readers,

I am trying to solve classification problem using RF, and each time I run RandomForestClassifier(scikit) on my training data, feature importance shows different order of important features.How can I make sure it gives me same top 5 features every time I run the model ? Please help. Thanks!.

model_rc = RandomForestClassifier(n_estimators=10,max_depth=None,min_samples_split=2,random_state=0)
rc_fit=model_rc.fit(X_train, y_train.values.ravel())

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles