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(), ...)

Arguments

x

The layer object

input_shape

Number of features in training data

...

Unused

model

Keras model where the layer will be added

Value

A Layer object from Keras