@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