Skip to main content

Questions tagged [random-forest]

An ensemble classifier that consists of many decision trees and outputs the class that is the mode of the classes output by individual trees

57 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
3k views

Results of Variable Importance of RF Classifier in GEE

I create a RF module in GEE like this: //Random Forest Result Function Module exports.getRfResults = function(image, title, bands, trainPoint, testPoint, area, label) { //Create Sample Points ...
BerkayOzen's user avatar
3 votes
0 answers
3k views

Encoding categorical variable for random forest with sklearn

I have a random forest model that works pretty well, taking a bunch of vanilla remote sensing raster data as input. I think it could be improved with addition of some information that I currently have ...
LAT's user avatar
  • 579
3 votes
0 answers
760 views

Using Random Forest for big data?

I used Random Forest regression for my work, but now I have another problem because I have really big data. I am using a VHR and this is much raster information. My script in R is this: rand.zero <...
Dinosca's user avatar
  • 117
3 votes
0 answers
471 views

R: Can raster predict function pass to predict.rfsrc (a prediction function in a parallel verion of RandomForest)?

It seems that raster predict function can pass to predict.randomForest by setting the "type='response'". I am using a parallel version of randomForest package called the "randomForestSRC" and I am ...
nomoreraster's user avatar
2 votes
0 answers
233 views

Google Earth Engine k-fold cross-validation

I wrote a script for Google Earth Engine that allows me to analyze geospatial data. Initially, I loaded three data sets: a predictor shapefile, a forecast area shapefile, and a collection of landslide ...
gabrielenapolinic's user avatar
2 votes
0 answers
121 views

Using images from different Landsat missions and Sentinel-2 for machine learning

I am doing some image segmentation using random forests on satellite imagery. The events I am trying to detect are somewhat rare so my training sets are very limited if I want to use Sentinel-2 ...
Charbel El Khoury's user avatar
2 votes
0 answers
2k views

Random forest regression in Google Earth Engine

I want to predict continuous response variable using random forest regression in Google Earth Engine (GEE), but I can't find it, at least in docs. Are there any known sources (e.g., internal and ...
Tuyen's user avatar
  • 211
2 votes
0 answers
457 views

Random forest for Landsat 8 in Google Earth Engine JavaScript API

I want to apply and examine random forest classification results on landsat 8 image collection in Google Earth Engine (as modified from the origin code in Earth Engine Tutorials) Accordingly I ...
Solmaz's user avatar
  • 149
2 votes
0 answers
578 views

"User memory limit exceeded" during Random Forest classification in GEE

I succeeded in an initial attempt at using Random Forest classification on my input image (an exported mosaic covering ~ 2,797 km2). I used 30 trees, classified based on 4 bands, and passed a training ...
Jay Logan's user avatar
2 votes
0 answers
287 views

random forest image classfication on python

I am new to python, I would like to do a rf classification on an multispectral image which I applied the PCA. After applying acp on different bands including NDVI I got negative values, after that my ...
sarah1904's user avatar
2 votes
0 answers
223 views

Image classification: separating pine forest, lowland and upland hardwood

I want to classify 20 feet-resolution 4-band leaf-off image into lowland hardwood, upland hardwood, pine trees, and other (bare ground, water, roads etc). I am thinking to use randomForest package in ...
Lybica's user avatar
  • 129
1 vote
0 answers
110 views

Using raster images as explanatory variables in regression model in python

I have yield data and multiple vegetation indices values in a tabulated form for multiple years. I applied machine learning regressors using the .csv file and tested the performance. The random forest ...
CESCRA IARI's user avatar
1 vote
0 answers
386 views

GEE script for hyperparameter tuning for random forest regression with grid search

Is there any script GEE for hyperparameter tuning for random forest regression with grid search? Here's the code: // Hyperparameter Tuning var test = bands.sampleRegions({ collection: ...
galcit's user avatar
  • 21
1 vote
0 answers
135 views

Export table to drive "User memory limit exceeded" on GEE

I'm exporting the table from the random forest model result, showing the relationship between the predicted values and the observed values in terms of the training data. However, when I ran the task ...
Cinnamon roll's user avatar
1 vote
2 answers
179 views

Random forest/Maxent environmental predictor layers using vector data, in GEE

I am attempting to use a vector layer as a predictor environmental layer for use in classification/predictor models (eg Random Forest/Maxent). I have attempted to include a bathymetric substrate layer,...
Jcd's user avatar
  • 21
1 vote
1 answer
200 views

How to apply GEE training data to a new region

The link to my code is included here but I will paste it as well: https://code.earthengine.google.com/c9b3aec923007e896a3a079446001dac I am trying to dynamically classify ground cover using supervised ...
William Sanchez's user avatar
1 vote
0 answers
80 views

Use shapefile with multiclass as a training data

How can I use a shapefile containing different land cover classes as my training data in GEE? Here is the code I am using,however there is always an error with the classification: https://code....
Samar Tarek's user avatar
1 vote
1 answer
256 views

Using RF as a classifier, however no valid training data founded?

I am new to GEE. I'm trying to do a crop mapping for my ROI using Random Forest. I am using Landsat8, computed index (NDVI, NDWI). Stacking all images of interest of Landsat with the needed bands, ...
Samar Tarek's user avatar
1 vote
0 answers
78 views

Identifying missclassified pixels in random forest classifier python sklearn

I have a dataframe that contains 10 predictors (PCA from Landsat Data). The data is loaded as pandas dataframe and it contains in addition to predictors, also x_coor and y_coor information for every ...
Roger Almengor's user avatar
1 vote
0 answers
62 views

landsat C2L2 random forest classification

I want to apply random forest classification on landsat C2L2 data. I found code for Landsat Top of Atmosphere (TOA) collection but i think its better to use C2L2 colection (i will be so glad if any ...
Solmaz's user avatar
  • 149
1 vote
1 answer
197 views

Export band value range of one landcover class after Random forest classification

I have classified my study area into six landcover classes (water, urban, barrenland,plantation, nonmangroves forests and mangroves) using Random Forest. I used six bands for classification (red, blue,...
Banashree Thapa's user avatar
1 vote
0 answers
263 views

QGIS Semi-Automatic Classification Plugin Error

I loaded the SCP (Semi-Automatic Classification Plugin) in the QGIS. I want to perform Random Forest Classfication operation with using SCP. However, the following errors raising; I don't know how to ...
Sun's user avatar
  • 113
1 vote
1 answer
460 views

Utilize Earth Engine's SMILE Random Forest Algorithm locally

I am currently trying to train a Random Forest classifier on Collect Earth Online data to predict certain landcover classifications based on R, G, B, and NIR bands from Sentinel 2 (Google Earth Engine)...
Matteo Kimura's user avatar
1 vote
0 answers
275 views

How to compare the results of the random forest algorithm with the other SDMs?

I'm using the random forests algorithm in species distribution context. I have presence-absence as a dependent variable, so I decided to work with classification. At this point, I recovered the ...
user2300's user avatar
1 vote
0 answers
32 views

What Explained Variance is good to proceed with Predictive Soil Mapping?

I have 1851 soil samples data on pH covering a study area of 7482sq.km in northern Ghana and I am using 52 environmental long-term average variables (Relief, Climate, MODIS Reflectances and derived ...
Isaac Newton's user avatar
1 vote
0 answers
493 views

Calculate and plot the feature importance of the input dataset of a random forest classification within Google Earth Engine (GEE)

I run a random forest classification for agricultural land use and other land cover classes (12 classes). My dataset for 2019 consists of a Sentinel 1 and Sentinel 2 monthly time series, statistical ...
Marcel Mohr's user avatar
1 vote
0 answers
851 views

Memory allocation problem when running Random forest regression in python

I have image with 4 bands . I want to see if I can predict the first band using the 3 other bands. My problem is that I cannot fit the model because I get the following error message: MemoryError: ...
ReutKeller's user avatar
  • 2,207
1 vote
3 answers
2k views

How does the randomColumn() function in Google Earth Engine work

Does the randomColumn() function assign an arbitrary random value as a collection element property or is it based on some aspect of the collection element? For instance, I have a script that calls ...
Floriana Spatola's user avatar
1 vote
0 answers
353 views

Random forest classification starting from a JSON file

I have a lot of images of Earth and I need to find the section of the image where there is water using random forest. I also have one JSON file (not GeoJSON) that have all the image's information. ...
Dr. Parmigian's user avatar
1 vote
0 answers
388 views

Using output of unsupervised cluster analysis to train supervised classification for vegetation mapping?

I'm using Google Earth Engine to classify mangrove forests from Landsat imagery to calculate extent. Let's say I perform an unsupervised K-means cluster analysis on a Landsat scene to identify general ...
Samual Chance's user avatar
1 vote
0 answers
181 views

Crash after performing random forest using enmap box and dzetsaka

i want to perform random forest classification using tools like dzetsaka and enmap box on qgis 3.2 version but after classification completes upto 50 percent qgis crashes what can be the issue
pratikshachalke's user avatar
1 vote
0 answers
2k views

NumPy ValueError: operands could not be broadcast together with shapes (1,2) > (1678,2218)

My objective is to classify a Landsat 8 image using supervised classification. I have a training point shapefile data and a preprocessed Imagery. I want to use Random Forest classification method. ...
Kaleab Woldemariam's user avatar
1 vote
0 answers
265 views

Supervised Random Forest in R

I did an image classification using random forest algorithm in R. I got the result but I do not understand what does the confusion matrix shows ? I mean what does the rows and column show? These are ...
Maryam's user avatar
  • 11
1 vote
0 answers
165 views

Effects of heterogeneous vegetation in mapping canopy cover using randomForest in R

I have a 5.8 m resolution satellite image (LISS IV aboard IRS-P6, in the wavelength (micrometers): 0.52 - 0.59 (band 2),0.62 - 0.68 (band 3) and 0.77 - 0.86 (band4). The swath covers a densely ...
csheth's user avatar
  • 664
0 votes
0 answers
64 views

Saving pretrained random forest model for probability predictions in Google Earth Engine

I'm trying to export a pre-trained random forest model as an asset in Google Earth Engine, and then load it back in to predict on new data. The model is trained for binary classification, and I'd like ...
Nissim Lebovits's user avatar
0 votes
0 answers
20 views

What is the optimal number of samples in a random forest classification?

I am conducting a supervised classification as part of a LULC analysis. I have 8 classes with sample sizes maxing at 500. However, I am still seeing some misclassification and want to add more classes,...
Ceiba's user avatar
  • 1
0 votes
1 answer
37 views

Random Forest error

I have tried a LULC classification using random forest algorithm in Google Earth Engine but error showing: Layer error: Property 'B2' of feature '0' is missing. My script code: https://code....
Debasish Samanta's user avatar
0 votes
0 answers
26 views

Random forest invalid data

I'm trying to classify forest habitats at a 10-meter resolution. I have imported my points from a shapefile that contains habitat categories for each sampled point in the "target" column. I ...
Ecostudent's user avatar
0 votes
0 answers
29 views

Different statistical analysis for Classified Image

I have created a (1) Bamboo Index map using 2 satellite images i.e. Landsat-08 and Sentinel-02. The formula I used is: BI= (NDVI-NDMI)/(NDVI+NDMI) Where; NDMI is Normalized Difference Moisture Index. ...
Pushkar's user avatar
  • 83
0 votes
0 answers
42 views

Corn Field Classification: Layer error: No valid training data were found

I have a code in GEE for crop mapping. I also have the shape of training points. but after running I faced an error: No valid training data were found. Please Help me how can I fix the code? The ...
bahare bahmanabadi's user avatar
0 votes
1 answer
118 views

GEE error: Unable to compute error margin in invalid area of projection (EPSG:32750: ........0))

i tried to visualize the regression from random forest, but it cannon appear in console or map, the variable predictor has been export by same scale and crs. why this is happen? // Display the input ...
galcit's user avatar
  • 21
0 votes
0 answers
113 views

Exporting classified land cover class as an asset for NDVI calculations

I have conducted a supervised classification in Google Earth Engine using Random Forest, to which I have provided the code. https://code.earthengine.google.com/3b3d4583f26a4651f4fbe10aa80c5f30 Map....
Erika's user avatar
  • 1
0 votes
1 answer
173 views

Exporting raster to my assets

I am working on a vegetation type classification using random forest and Sentinel-2 imagery, and I would like to export my final output map (GeoTIFF) which contains 7 classes and some masked areas ...
leeng's user avatar
  • 1
0 votes
1 answer
90 views

Random forest classification on QGIS gets stocked at 66% with an error message whose conditions have been met

I am running a random forest classification on QGIS using dzesaka pluggin, after picking my training sites and running the classification, it gets to 66% and a prompt message appears that i ensure ...
Nkogho Uchenna's user avatar
0 votes
0 answers
65 views

variablesPerSplit default value rounding in smileRandomForest()

I have used the Google Earth Engine's smileRandomForest() classifier and leaving the variablesPerSplit to the default value sqrt(N_variables) with N_variables=8 input variables, which I think is ...
Federica Bianco's user avatar
0 votes
0 answers
473 views

GEE - random forest doesn't classify my whole image

I'm new to GEE and I'm trying to do a machine learning supervised classification using random forest. it turns out that I made a code taking different parts of other codes and it works well for small ...
Alexandre Messias Reis's user avatar
0 votes
0 answers
116 views

Random forest regression error on GEE "No valid training data were found."

I'm using RF regression model on GEE. The output can be successfully generated but when I tried to make a "Variable Importance Histogram", the error happened and said "Dictionary (Error)...
Cinnamon roll's user avatar
0 votes
1 answer
169 views

Random forest error on GEE

I have a problem with random forest classification, receiving an error message after inputting the training dataset. My code includes a long preprocessing for Sentinel1 and Sentinel2, but here I'll ...
Cinnamon roll's user avatar
0 votes
1 answer
76 views

Low accuracy for addition of more predictor bands in Random forest classifier

Hi there Im working on a project for estimation Above ground Biomass in hilly terrain for mature forests and asscessing accuracy of different classifiers availiable in GEE such as Random forest and ...
asim qadeer's user avatar
0 votes
1 answer
76 views

Different no. of training points than the one I am asking for

Does anyone know, what could be the reason, I am getting different numbers of my training samples than the one I am asking in the code? Like in my example, for crop no.6, I am asking for 200 points, ...
Samar Tarek's user avatar