https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DRLRewardReporter.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#ifdef MOOSE_LIBTORCH_ENABLED
11
12#pragma once
13
15#include "GeneralReporter.h"
17
20{
21public:
24 virtual void initialize() override {}
25 virtual void finalize() override {}
26 virtual void execute() override;
27
28protected:
30 Real & _reward;
33};
34
35#endif
Reporter which saves the reward values from a Deep Reinforcement Learning controller trainer.
Real & _reward
The reward values which will be saved.
static InputParameters validParams()
virtual void finalize() override
LibtorchDRLControlTrainer & _trainer
The DRL trainer which computes the reward values.
virtual void initialize() override
virtual void execute() override
This trainer is responsible for training neural networks that efficiently control different processes...
const InputParameters & parameters() const
Interface for objects that need to use samplers.