Convert Ruta layers onto Keras layers
# S3 method for ruta_layer_input
to_keras(x, input_shape, ...)
# S3 method for ruta_layer_dense
to_keras(x, input_shape, model = keras::keras_model_sequential(), ...)
# S3 method for ruta_layer_conv
to_keras(x, input_shape, model = keras::keras_model_sequential(), ...)
# S3 method for ruta_layer_custom
to_keras(x, input_shape, model = keras::keras_model_sequential(), ...)
The layer object
Number of features in training data
Unused
Keras model where the layer will be added
A Layer object from Keras