2

I am trying to look at how each input variables contribute to my Random Forest classifier. There is an explain() tools in ee.Classifier but the portal always shows:

 Dictionary (Error)
 Earth Engine capacity exceeded.

It is a dictionary, is there any way to export the explanation results so I can check it externally like in Excel?

var trainedClassifier = ee.Classifier.smileRandomForest(10).train({
    features: training, 
    classProperty: 'LCZ', 
    inputProperties: bands
    });

    var classified = composite.classify(trainedClassifier);

    print('explain', trainedClassifier.explain());

I don't know what code to write for exporting then.

1 Answer 1

1

You can do it like this:

var rfExplain = trainedClassifier.explain();

Export.table.toDrive(
  ee.FeatureCollection([ee.Feature(null,rfExplain)]);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.