Questions tagged [random-forest]
In learning algorithms and statistical classification, a random forest is an ensemble classifier that consists in many decision trees. It outputs the class that is the mode of the classes output by individual trees, in other words, the class with the highest frequency.
random-forest
3,724
questions
0
votes
0
answers
3
views
'sdm' function ensemble model warning messages ('rf', 'gam', 'mars')
I'm running into warning messages when I include several model methods into my 'sdmData' function. Here's the code:
d <- sdmData(formula = sp~.,train=PO, predictors=env_raster, bg=background)
#PO =...
0
votes
0
answers
7
views
Saving Random Forest Predictions Back to Data File
Novice Python user here. I have developed a random forest classification model and have the model accuracy results along with the confusion matrix, feature importance, and classification report. ...
-1
votes
0
answers
24
views
ValueError: sparse multilabel-indicator for y is not supported - How to handle multilabel classification with sparse data?
I'm a just a beginner, I'm still learning about sparse matrices and how they work with other stuff.
Here is the problem I encountered, searched the web and couldn't find a proper answer.
I ...
-1
votes
0
answers
12
views
I keep encountering this problem training a Random forest regressor
/usr/local/lib/python3.10/dist-packages/sklearn/base.py:432:
UserWarning: X has feature names, but RandomForestRegressor was fitted without feature names
warnings.warn(
I have tried adding .values ...
-3
votes
0
answers
35
views
How to improve Random Forest accuracy? [closed]
I am working on a basic random forest classifier but I currently have extremely low results and I don't know why. I need another set of eyes to see if I have an obvious problem.
My dataset is a list ...
0
votes
0
answers
14
views
Sci-kit Learn Random Forest Regressor with CV produces R-squared less than 0
I'm utilizing random forest regressor to predict scores from a feature list of ~1200. My goal is to identify the top 30 features in the best model. However, I run into a problem where my average R-...
0
votes
0
answers
13
views
Random forest_CSV_ArcGIS [closed]
I have a CSV file from ArcGIS Pro including 10 influencing factors on wildfire which I did train and test file already under ArcGIS as well.
Now I want to fit random forest to export a susceptibility ...
-1
votes
0
answers
11
views
Hybridized collaborative filtering and sentence similarity-based system for doctor recommendation based on user input of symptoms and location
I'm trying to solve a problem of recommending a doctor based on a user's symptoms and location using a hybridized collaborative filtering and sentence similarity-based recommender system that follow ...
-1
votes
0
answers
20
views
Very high MAE and MSE on my RandomForestRegressor
I got a flight predictions dataset that i wanted to try my machine learning skills.
I cleaned the data and fixed some new features and removed others
i also got out some valuable data. But when i ...
0
votes
0
answers
7
views
Extrapolate trained random forest model to create a time series using different satellites (Google Earth Engine)
I am trying to create a LULC time series from 1990-2023. To generate my time series I picked four dates that all use different satellites (Landsat 5, 7, 8 and Sentinel-1 and -2). I only have training ...
-1
votes
0
answers
19
views
Why is sklearn's clf.tree_.value output (seemingly) probablistic instead of just showing raw value counts at a node?
I'm converting an old project code to code with updated libraries, and have narrowed down an issue that compares left and right values at a node. I've already verified that the trees have the same ...
0
votes
0
answers
47
views
How to visualize random forest plot using graphviz, in characters outside of UTF-8 (Chinese)
I am doing a random forest model on PC orders data, which is mostly in Chinese. I have done the model and accuracy checks. However, I can't seem to generate the image due to a UnicodeEncodeError, ...
0
votes
0
answers
31
views
How to Encode Non-Ordinal Categorical Variables for RandomForest without Using Label Encoding?
I need to predict different types of exploitation using a RandomForestClassifier. My dataset contains several categorical variables such as gender, citizenship, and CountryOfExploitation. These ...
0
votes
0
answers
24
views
Random Forest analysis: calculating conditional variable importance throws errorr
I'm doing a Random Forest analysis (perturb = list(replace = TRUE), ntree = 1500, mtry = 3) with the cforest function from the library partykit with a large number of predictor variables (altogether ...
0
votes
1
answer
27
views
How to optimise hyperparameterss for RandomForestClassifier in Python for large datasets?
I'm just working on this problem where I thought RandomForestClassifier from scikit-learn would be better solution for a large dataset. Only after trying with it for this, I found it to be not ...