graphenv.examples.hallway.hallway_model.BaseHallwayModel
- class BaseHallwayModel(*args, hidden_dim=1, **kwargs)[source]
Bases:
graphenv.graph_model.GraphModel
An example GraphModel implementation for the HallwayEnv and HallwayState Graph. Uses a dense fully connected Keras network.
- Parameters
hidden_dim (int, optional) – The number of hidden layers to use. Defaults to 1.
Methods
forward
Tensorflow/Keras style forward method.
Forward function computing the evaluation of vertex observations.
value_function
- returns
A tensor of current state values.