| .sits_keras_binary_class {sits} | R Documentation |
For binary classification, the prediction function produces only one column (the probability of label 1). For compatibility with the code in the sits package, this function includes a second column in the prediction values to match the results of multi-class classification.
.sits_keras_binary_class(prediction)
prediction |
Predicted values from the keras model for the binary classification case (data.table with one column) |
Data.table with an additional column for multi-class compatibility
Gilberto Camara, gilberto.camara@inpe.br