About 97,700 results
Open links in new tab
  1. How to do cross-validation on random forest? - Stack Overflow

    Mar 25, 2022 · I am working on a binary classification using random forest. My dataset is imbalanced with 77:23 ratio. my dataset shape is (977, 7) I initially tried the below model = …

  2. Plot trees for a Random Forest in Python with Scikit-Learn

    Oct 20, 2016 · After you fit a random forest model in scikit-learn, you can visualize individual decision trees from a random forest. The code below first fits a random forest model.

  3. How to tune parameters in Random Forest, using Scikit Learn?

    Mar 20, 2016 · The most impactful parameters to tune in RandomForestClassifier for identifying feature importance and improving model generalization are: n_estimators The number of …

  4. python - How to get Best Estimator on GridSearchCV (Random …

    May 7, 2015 · 59 I'm running GridSearch CV to optimize the parameters of a classifier in scikit. Once I'm done, I'd like to know which parameters were chosen as the best. Whenever I do so I …

  5. How to choose n_estimators in RandomForestClassifier?

    Mar 20, 2020 · 6 I'm building a Random Forest Binary Classsifier in python on a pre-processed dataset with 4898 instances, 60-40 stratified split-ratio and 78% data belonging to one target …

  6. python - Retrieve list of training features names from classifier ...

    Nov 8, 2016 · 17 Is there a way to retrieve the list of feature names used for training of a classifier, once it has been trained with the fit method? I would like to get this information before applying …

  7. python - How to increase the accuracy of Random Forest Classifier ...

    Mar 27, 2023 · I have a forest classifier. Its accuracy is about 61%. I want to try to increase the accuracy, but what I already tried doesn't increase it greately. The code is shown below: # …

  8. python - SHAP TreeExplainer for RandomForest multiclass: what is …

    Jan 3, 2021 · python scikit-learn random-forest shap edited Jan 3, 2021 at 20:57 Sergey Bushmanov 25.6k 8 64 84

  9. Specific Cross Validation with Random Forest - Stack Overflow

    Jul 2, 2016 · Am using Random Forest with scikit learn. RF overfits the data and prediction results are bad. The overfit does NOT depend on the parameters of the RF: NBtree, Depth_Tree …

  10. Random Forest Feature Importance Chart using Python

    I am working with RandomForestRegressor in python and I want to create a chart that will illustrate the ranking of feature importance. This is the code I used: from sklearn.ensemble import