train_model | R Documentation |
Define, compile, and train a Keras model on the training dataset.
train_model( recipe, units1 = 16, units2 = 16, act1 = "relu", act2 = "relu", act3 = "sigmoid" )
recipe |
A |
units1 |
Number of neurons in the first layer. |
units2 |
Number of neurons in the second layer. |
act1 |
Activation function for layer 1. |
act2 |
Activation function for layer 2. |
act3 |
Activation function for layer 3. |
The first time you run Keras in an R session, TensorFlow usually prints verbose ouput such as "Your CPU supports instructions that this TensorFlow binary was not compiled to use:" and "OMP: Info #171: KMP_AFFINITY:". You can safely ignore these messages.
A trained Keras model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.