About 460,000 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. Plot trees for a Random Forest in Python with Scikit-Learn

    Oct 20, 2016 · 51 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. machine learning - Build a Random Forest regressor with Cross ...

    Jun 12, 2017 · Build a Random Forest regressor with Cross Validation from scratch Asked 8 years, 6 months ago Modified 4 years, 4 months ago Viewed 12k times

  4. How to use random forests in R with missing values?

    Dec 4, 2011 · Breiman's random forest, which the randomForest package is based on, actually does handle missing values in predictors. In the randomForest package, you can set na.action = …

  5. How to train Random Forest classifier with large dataset to avoid ...

    Feb 15, 2024 · How to train Random Forest classifier with large dataset to avoid memory errors in Python? [duplicate] Asked 1 year, 10 months ago Modified 1 year, 4 months ago Viewed 982 times

  6. 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 …

  7. Retrieve list of training features names from classifier

    Nov 8, 2016 · What's more, since Random Forests make random selection of features for your decision trees (called estimators in sklearn) all the features are likely to be used at least once. However, if you …

  8. How to increase the accuracy of Random Forest Classifier?

    Mar 27, 2023 · np.mean(forest_classification_scores) # tuning in Random Forest. The idea is taken from Katarina Pavlović - Predicting the type of physical activity from tri-axial smartphone accelerometer …

  9. 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 …

  10. scikit learn - How are feature_importances in RandomForestClassifier ...

    Random forest allows far more exploration of feature combinations as well Decision trees gives Variable Importance and it is more if there is reduction in impurity (reduction in Gini impurity)