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
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 ...
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 ...
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
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
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 ...
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 ...
-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/...
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
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 ...
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 ...
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
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
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
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 ...
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
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
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 ...
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,...
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? ...
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 ...
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 ...
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 ...
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, ...
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 ...
0
votes
1
answer
1k
views
How to overcome "Output of image computation is too large" error
Does anyone know how to avoid the error of "Output of image computation is too large" in supervised classification using RF? I even tried up to 16 tilescale but it still does not work. Noted ...
0
votes
1
answer
500
views
Error: Property 'class' of feature '0_0' is missing
Using GEE, I am trying to do a crop-type classification using Random Forest. My training data are two shapefiles I uploaded to GEE and made a FeatureCollection from their geometries. However, it gives ...
1
vote
1
answer
206
views
Merging training data from two different shapefiles
Using GEE, I am trying to do a crop-type classification using Random Forest. My training data are two shapefiles I uploaded to GEE and made a FeatureCollection from their geometries. Here is the ...
0
votes
1
answer
51
views
Stacked image created, while most of the bands became masked
I am trying to do a crop-type classification, so I created a stacked image from my collection for training by RF. However, when the collection is stacked, most of the bands inside the stacked image ...
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
1
answer
349
views
How to export decision trees from GradientTreeBoost in Google Earth Engine?
I'm running the Google Earth Engine examples for ee.Classifier.smileGradientTreeBoost and ee.Classifier.smileRandomForest, which are basically the same but with different training methods.
I was ...
1
vote
1
answer
1k
views
Export too large issue in Google Earth Engine
Here is the path to my script- https://code.earthengine.google.co.in/?accept_repo=users%2Fujavalgandhi%2FEnd-to-End-GEE&scriptPath=users%2FchakrabortySoumik95%2Ffirstprogram%3Asentinel%20Australia%...
1
vote
0
answers
77
views
Is it necessary to have the same spatial resolution of all the bands of an image before classifying the image? [duplicate]
Is it necessary to have the same spatial resolution of all the bands of an image before classifying the image? In my case, I am working with the 10m and 20m spatial resolution bands of Sentinel-2. I ...
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 ...
1
vote
1
answer
217
views
Random forest classifcation for Sentinel-2 low out of bag but high prediction error
I used Random Forest for land cover classification on the Sentinel-2 images in a forest. I have 3 classes: forest (0), bareland (1), and cloud (2). My variables include 4 bands (B2, B3, B4, and B8), ...
0
votes
1
answer
57
views
Should I re-scale all the dataset to one scale before running them into model?
I have been working on the Flood susceptibility modelling and also have identified, collected and generated data of around 26 controlling factors(indicators). Furthermore, i'm going to put them into ...
1
vote
1
answer
227
views
Is there a way to obtain the variable importance for a specific class in Earth Engine?
I used a .smileRandomForest() and I know that by calling .explain() you can see the relative importance of the variables for the general classification... but I would like to know which inputs ...