1

Here is my code, its all running without any error, but the classification image result is like this enter image description here , and the accuracy and confusionmatrix is showing zero. How can I fix that?

https://code.earthengine.google.com/7a60f378e98259dac30568e9c0ceb8b4

Asset link https://code.earthengine.google.com/?asset=projects/ee-naemon53/assets/CWS

3

1 Answer 1

0

The predicted value is called "classification", not "Classified".

var confusionmatrix = ee.ConfusionMatrix(testSet.classify(classifier)
.errorMatrix({
  actual: 'Class',
  predicted:'classification'
}));

Your Answer

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

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