R: Adjust keras prediction for the binary classification case

.sits_keras_binary_class {sits} | R Documentation

## Adjust keras prediction for the binary classification case

### Description

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.

### Usage

    .sits_keras_binary_class(prediction)

### Arguments

`prediction` | Predicted values from the keras model for the binary classification case (data.table with one column)

### Value

Data.table with an additional column for multi-class compatibility

### Author(s)

Gilberto Camara, gilberto.camara@inpe.br

[Package sits version 0.15.1 Index]