About 46,800 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. Specific Cross Validation with Random Forest - Stack Overflow

    Jul 2, 2016 · 51 Cross-Validation with any classifier in scikit-learn is really trivial: from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import …

  3. Save python random forest model to file - Stack Overflow

    Dec 18, 2013 · Save python random forest model to file Asked 11 years, 10 months ago Modified 4 years, 11 months ago Viewed 57k times

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

    Oct 20, 2016 · I want to plot a decision tree of a random forest. So, i create the following code: clf = RandomForestClassifier(n_estimators=100) import pydotplus import six from sklearn import …

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

    May 7, 2015 · How to get Best Estimator on GridSearchCV (Random Forest Classifier Scikit) Asked 10 years, 6 months ago Modified 5 years, 2 months ago Viewed 172k times

  6. 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.5k 8 63 84

  7. python - Using the predict_proba () function of …

    Jun 13, 2015 · A random forest is indeed a collection of decision trees. However a single tree can also be used to predict a probability of belonging to a class. Quoting sklearn on the method …

  8. 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

  9. How to choose n_estimators in RandomForestClassifier?

    Mar 20, 2020 · 5 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 …

  10. 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: # …