ValueNetwork: Value Network

ValueNetworkR Documentation

Value Network

Description

Neural network representing the action value function Q.

Arguments

model

[keras model]
A keras model. Make sure that the model has been compiled.

Usage

makeValueFunction("neural.network", model)

Examples

## 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)

markdumke/reinforcelearn documentation built on Nov. 17, 2022, 12:53 a.m.