Random forest trees and variable importance

SmileRandomForest puts a smile on your face

See the code snippet below and find a full example here.

var classifier = ee.Classifier.smileRandomForest(5).setOutputMode('PROBABILITY').train(trainingSample,"land_class",bandNames);

var dict = classifier.explain();

var variable_importance = ee.Feature(null, ee.Dictionary(dict).get('importance'));

var chart =
title: 'Random Forest Variable Importance',
legend: {position: 'none'},
hAxis: {title: '<span id="mce_SELREST_start" style="overflow:hidden;line-height:0;">&#65279;</span>Bands'},
vAxis: {title: 'Importance'}


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s