Description Arguments Usage Examples
Neural network representing the action value function Q.
model |
[ |
makeValueFunction("neural.network", model)
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(keras)
model = keras_model_sequential()
model %>% layer_dense(20, input_shape = 10, activation = "relu")
model %>% layer_dense(4, activation = "softmax")
keras::compile(model, loss = "mae", optimizer = keras::optimizer_sgd(lr = 0.4))
val = makeValueFunction("neural.network", model = model)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.