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

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 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
28 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. ...
user2748630's user avatar
0 votes
1 answer
26 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
1 answer
54 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 ...
Omar Tomas's user avatar
1 vote
0 answers
51 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
-2 votes
1 answer
39 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/...
Sonia Das's user avatar
0 votes
0 answers
24 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
1 vote
0 answers
115 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
0 votes
1 answer
211 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 ...
Matt's user avatar
  • 151
0 votes
0 answers
22 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
1 vote
1 answer
290 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 ...
tcf's user avatar
  • 11
0 votes
0 answers
35 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
1 vote
0 answers
281 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
0 votes
1 answer
83 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
376 views

Estimating forest cover density through Google Earth Engine

I am trying to make a forest cover map (estimating forest canopy density) of a particular district and block. But I don't know where to start since I am a beginner. I have researched and came to a ...
Spandan Kumar's user avatar
0 votes
0 answers
94 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
122 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
0 answers
27 views

What do the values in trees of Random forest GEE mean?

I get these trees in GEE: trees: List (29 elements) 0: n= 116838 node), split, n, loss, yval, (yprob) * denotes terminal node 1) root 116838 31180 8 (0.010997 0.0066155 0.019316 0.013984 0.012195 ...
Ludmila VT's user avatar
0 votes
2 answers
481 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....
Deems's user avatar
  • 17
0 votes
1 answer
77 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
59 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
60 views

Get working of Random Forest in GEE in understandable form

I used this code to see decion tree in RF GEE: var decisionTrees = ee.List(trained.explain().get('trees')) print("Tree decision", decisionTrees) I get this: Tree decision List (29 elements) ...
Ludmila VT's user avatar
0 votes
0 answers
406 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
1 vote
0 answers
115 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
0 votes
1 answer
65 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 - ...
pottsbill's user avatar
0 votes
0 answers
94 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
138 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
1 vote
2 answers
151 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
374 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? ...
Ludmila VT's user avatar
1 vote
0 answers
170 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
0 votes
1 answer
117 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 ...
luis maldonado's user avatar
1 vote
2 answers
388 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. ...
Stephen's user avatar
  • 385
0 votes
1 answer
68 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
441 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 ...
Samar Tarek's user avatar
0 votes
1 answer
179 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 ...
Samar Tarek's user avatar
0 votes
1 answer
75 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
1 vote
0 answers
73 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
0 votes
0 answers
214 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 ...
Samar Tarek's user avatar
1 vote
1 answer
72 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 ...
Samar Tarek's user avatar
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 ...
Samar Tarek's user avatar
0 votes
1 answer
418 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 ...
Samar Tarek's user avatar
1 vote
1 answer
183 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 ...
Samar Tarek's user avatar
0 votes
1 answer
50 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 ...
Samar Tarek's user avatar
1 vote
1 answer
230 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
1 answer
311 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 ...
Julián Pera's user avatar
1 vote
1 answer
979 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%...
soumik chakraborty's user avatar
1 vote
0 answers
72 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 ...
Syed Ahmed Raza's user avatar
1 vote
1 answer
117 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 ...
George Basil's user avatar
1 vote
1 answer
191 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), ...
user30985's user avatar
  • 357
0 votes
1 answer
52 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 ...
Abhishek Gupta's user avatar