Get the confusion matrix of your classifier
We created a sentinel-2 composite for Nghe An and added reference points in the GEE interface. These points were used to create a training sample to train the classifier. The code below gets the stats from your classifier
var classifier = ee.Classifier.randomForest(10,0).train(TrainingSample,"land_class",bandNames); var confMatrix = classifier.confusionMatrix() print(confMatrix) var OA = confMatrix.accuracy() var CA = confMatrix.consumersAccuracy() var Kappa = confMatrix.kappa() var Order = confMatrix.order() var PA = confMatrix.producersAccuracy() print(confMatrix,'Confusion Matrix') print(OA,'Overall Accuracy') print(CA,'Consumers Accuracy') print(Kappa,'Kappa') print(Order,'Order') print(PA,'Producers Accuracy')
find the complete example here.
Hi, Sorry for asking in the wrong palce but I cound not find any other way to contact you.
I need some help regarding using NUACI(Normalized Urban Area Composite Index) in GEE.
How can i get in touch with you. My email-id is firstname.lastname@example.org
What r u planning to do with the NUACI?
Im trying to calculate the urban (impervious surface) expansion using NUACI