About 50 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 = RandomForestClassifier(

  2. python - Using the predict_proba () function of RandomForestClassifier ...

    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 predict_proba …

  3. 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 label and the …

  4. 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 decision trees in …

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

  6. python - Unbalanced classification using RandomForestClassifier in ...

    Nov 19, 2013 · python machine-learning classification scikit-learn random-forest edited Nov 19, 2013 at 21:49 alko 48.8k 12 99 105

  7. python - How to get the training accuracy in Scikit-learn RandomForest ...

    Nov 3, 2021 · I am following this tutorials: https://www.datacamp.com/community/tutorials/random-forests-classifier-python on using Scikit-learn with random forests. However, the current code only …

  8. python - How to get Best Estimator on GridSearchCV (Random Forest ...

    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 get a …

  9. python 3.x - ClassifierChain with Random Forest: Why is np.nan not ...

    Sep 13, 2024 · ClassifierChain with Random Forest: Why is np.nan not supported even though Base Estimator handles it? Asked 1 year, 5 months ago Modified 1 year, 5 months ago Viewed 150 times

  10. python - RandomForestClassifier import - Stack Overflow

    I've installed Anaconda Python distribution with scikit-learn. While importing RandomForestClassifier: from sklearn.ensemble import RandomForestClassifier I have the following error: File "C:\\An...