categoric_to_factor: Reverse keras::to_categorical

Description Usage Arguments Value

View source: R/keras_classification.R

Description

This function takes a binary matrix and returns one column representing the factor levels. That way, 'keras::to_categorical' can be reversed after the machine learning step and compared to the predictions

Usage

1

Arguments

matrix

the binary matrix which needs to be converted

Value

An integer vector with numeric factor levels


RJ333/phyloseq2ML documentation built on June 2, 2020, 9:25 p.m.