Example #1
0
 public override void Load(string filename)
 {
     ValueFuncModel.LoadState(filename);
 }
Example #2
0
 protected override string GetParametersDescription()
 {
     return($"{base.GetParametersDescription()}\n{ValueFuncModel.GetParametersDescription()}");
 }
Example #3
0
 public override void Save(string filename)
 {
     ValueFuncModel.SaveState(filename);
 }
Example #4
0
 protected override void OnEpisodeEnd(int episode)
 {
     ValueFuncModel.OnEpisodeEnd(episode);
 }
Example #5
0
 protected override void OnReset(Tensor initialState)
 {
     ValueFuncModel.OnReset(initialState);
 }
Example #6
0
 protected override void OnTrain()
 {
     ValueFuncModel.OnTrain();
 }
Example #7
0
 protected override void OnStep(int step, int globalStep, Tensor action, float reward, Tensor observation, bool done)
 {
     ValueFuncModel.OnStep(step, globalStep, LastObservation, action, reward, observation, done);
 }
Example #8
0
 protected override Tensor GetOptimalAction()
 {
     return(ValueFuncModel.GetOptimalAction(LastObservation));
 }