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
154
questions
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)...
0
votes
1
answer
26
views
Computation timed out error in Google Earth Engine
I'm new to GEE.
I am trying to use random forest classification to identify solar panels in a region of Brazil using a Landsat 8 median image and derived bands. However, the dataset seems to be too ...
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 ...
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 ...
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,...
0
votes
0
answers
56
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 ...
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, ...
1
vote
2
answers
177
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,...
0
votes
1
answer
2k
views
Variable importance for Random Forest classification in GEE
I performed RF classification in GEE and calculated variable importance with two various scripts successfully.
The first script is:
var dict = classifier01.explain();
print('Explain 1:',dict);
var ...
0
votes
1
answer
926
views
Land cover classification using Google Earth Engine, and involving SAVI and EVI indices
I'm trying to do a land cover classification using Landsat-8 OLI/TIRS. However, I want to involve indexes (SAVI, and EVI) in this classification process. I don't know how to solve this problem. Is ...
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 ...
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,...
0
votes
1
answer
58
views
Using ee.Image.stratifiedSample with .smileRandomForest produces type error (python)
Can you advise me on how to correctly use .stratifiedSample to prep input for .smileRandomForest, using Google Earth Engine (GEE) Python API?
I'm trying to create training data with .stratifiedSample. ...
0
votes
2
answers
640
views
Error while trying to train RandomForest
I have the following data:
train <- data.frame("diff_ndvi" = c(-0.3064988852, -0.2991864979, -0.0002075136, -0.3066526055),
"diff_savi" = c(-0.4596679509, -0....
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....
0
votes
1
answer
63
views
Tracing back single class sample sizes of a random forest classification model (.pkl-file) [QGIS 3.16 - EnMAP Box - RFC]
A couple of weeks ago, I created some prediction models with the EnMAP Box Classification Workflow.
In some of the models I reduced the sample size for some classes as shown in the image below. Here, ...
3
votes
1
answer
696
views
Performing Random Forest using EnMap Box? [closed]
I am new to the software EnMap Box that incorporates Random Forest (RF) as one of its capability. To learn the Enmap, I followed the RF tutorial provided online.
My goal is to use RF as a tool to ...
0
votes
1
answer
86
views
Balancing data for doing Random Forest in Google Earth Engine
I am trying to do a Random Forest in Google Earth Engine. My data is unbalanced (more or less I have 3 times more points of one class) so I want to balance them. I tried to give different weights to ...
-2
votes
1
answer
44
views
Land cover analysis GEE
I want to do a time series analysis analysis for land cover classification.
For 2024 I am using this dataset COPERNICUS/S2_SR_HARMONIZED
https://developers.google.com/earth-engine/datasets/catalog/...
1
vote
0
answers
108
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 ...
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 ...
2
votes
0
answers
232
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 ...
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 ...
1
vote
1
answer
127
views
Fetch Probability from Random Forest Classified Image
I have performed random forest classification in Earth Engine would like to select only pixels with high probability. But I cant figure how it to be done. I see the probability value in the Inspector ...
0
votes
1
answer
316
views
Extracting confusion matrix values in GEE
I am training a random forest model in Google Earth Engine, and I want to output the confusion matrices so I know which classes are being confused for which.
By default, the confusion matrix is ...
1
vote
1
answer
3k
views
No valid training data were found [Google Earth Engine]
I would like to create a classification model through randomForest model. I used Sentinel 2 dataset. Everything is working if I'm using the original bands for the predicted variable. However, if I ...
0
votes
0
answers
28
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. ...
1
vote
1
answer
406
views
Random forests Google Earth Engine
I have been trying to train a random forests algorithm to sort of predict fire occurrences, using MODIS fire occurrence data as an outcome variable and elevation, distance from urban areas, air ...
1
vote
0
answers
385
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: ...
0
votes
1
answer
115
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 ...
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....
0
votes
1
answer
172
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 ...
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 ...
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 ...
3
votes
1
answer
625
views
Using RandomForest for land use classification in Google Earth Engine: Training accuracy shows error
I am using RandomForest classification for my LULCC study. I have been successful in running the classification including getting the "validation accuracy" as 0.87. However, my "...
0
votes
1
answer
82
views
Class not recognized in dataset in RF classification with GEE
I want to classify imagery from different regions with a classifier trained in one specific region.
My training and test dataset contains polygons which are assigned to 4 different classes (class 0 - ...
0
votes
0
answers
472
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 ...
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 ...
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)...
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 ...
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, ...
0
votes
1
answer
208
views
GEE_No valid training data
I am trying to conduct supervised classification using RF, however I face problems with my training data. I have my data as a point shp file, however, whenever I use it, it gives me the error "no ...
1
vote
1
answer
468
views
What formula does GEE use for calculation of Importance in Random Forest?
I got such values of importance in GEE, using such code
var variable_importance = ee.Feature(null, ee.Dictionary(trained.explain()).get('importance'));
What formula does GEE use for calculation it? ...
0
votes
1
answer
158
views
Wrong Palette of color when doing a supervised classification GEE
I am doing a classification of forest and nonforest area using the random forest classifier. At the end of the process I am not getting the color separation, the classified image looks like this:
It ...
1
vote
2
answers
493
views
Loop rename rasters in brick or stack in R
I'm running a randomforest on a raster stack/brick in R. I know how to rename individual layers in the stack, but since my stacks have numerous Landsat scenes, I was hoping to loop through the stack. ...
0
votes
1
answer
75
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 ...
0
votes
1
answer
531
views
Error in GEE: Property of feature is missing
I am trying to do a supervised classification in GEE, I tried the same code over one area of interest and it worked. However, when I combined both sites, an error occurred "Property '0_SR_B2' of ...
1
vote
0
answers
79
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....
0
votes
0
answers
251
views
Increasing accuracy with RF classifier in GEE
I am doing a supervised classification using RF classifier in GEE. However, the accuracy that I am getting is not exceeding 0.67, even if I increase the training sample or no. of trees in my ...
1
vote
1
answer
80
views
Missing a couple of tiles after classification, however it was shown in the stacked Landsat image
I am trying to do crop-type mapping using RF in GEE.the script is working, however, part of the final classified layer (a couple of tiles) is missing in the end product which I do not know why! I even ...