SmartEngine  1.6.0
Public Attributes | List of all members
SmartEngine::GeneticAgentTrainerCInfo Struct Reference

Data used to construct an IGeneticAgentTrainer instance More...

#include <GeneticAgentTrainer.h>

Inheritance diagram for SmartEngine::GeneticAgentTrainerCInfo:
SmartEngine::ResourceCInfo

Public Attributes

IContextcontext = nullptr
 The context this trainer belongs to. More...
 
IGraphgraph = nullptr
 The graph we are going to train. More...
 
IAgentDataStoredataStore = nullptr
 The data store that agents will feed into. More...
 
const char * agentName = ""
 The base name for created agents. More...
 
const char ** policyNodeNames = nullptr
 The names of the output nodes of the actor (the network used to manipulate the environment). Only the output nodes need to be specified. They should match the actions provided by the agent. More...
 
int policyNodeNameCount = 0
 The number of elements in the policy node name array More...
 
ICuriosityModulecuriosityModule = nullptr
 Optional curiosity module for additional curiosity rewards. More...
 
int curiosityTrainEpochs = 1
 The number of epochs to train the curiosity module on the incoming agent data. More...
 
float gamma = 0.99f
 Gamma to apply to rewards over time. More...
 
GeneticAgentScoringMethod scoringMethod = GeneticAgentScoringMethod::Sum
 Defines how the trainer deals with chromosome scores from multiple agents. More...
 
- Public Attributes inherited from SmartEngine::ResourceCInfo
const char * resourceName = nullptr
 Optional resource name that will be used with Load() and Save() if no other name is provided. More...
 

Detailed Description

Data used to construct an IGeneticAgentTrainer instance

Member Data Documentation

◆ agentName

const char* SmartEngine::GeneticAgentTrainerCInfo::agentName = ""

The base name for created agents.

◆ context

IContext* SmartEngine::GeneticAgentTrainerCInfo::context = nullptr

The context this trainer belongs to.

◆ curiosityModule

ICuriosityModule* SmartEngine::GeneticAgentTrainerCInfo::curiosityModule = nullptr

Optional curiosity module for additional curiosity rewards.

◆ curiosityTrainEpochs

int SmartEngine::GeneticAgentTrainerCInfo::curiosityTrainEpochs = 1

The number of epochs to train the curiosity module on the incoming agent data.

◆ dataStore

IAgentDataStore* SmartEngine::GeneticAgentTrainerCInfo::dataStore = nullptr

The data store that agents will feed into.

◆ gamma

float SmartEngine::GeneticAgentTrainerCInfo::gamma = 0.99f

Gamma to apply to rewards over time.

◆ graph

IGraph* SmartEngine::GeneticAgentTrainerCInfo::graph = nullptr

The graph we are going to train.

◆ policyNodeNameCount

int SmartEngine::GeneticAgentTrainerCInfo::policyNodeNameCount = 0

The number of elements in the policy node name array

◆ policyNodeNames

const char** SmartEngine::GeneticAgentTrainerCInfo::policyNodeNames = nullptr

The names of the output nodes of the actor (the network used to manipulate the environment). Only the output nodes need to be specified. They should match the actions provided by the agent.

◆ scoringMethod

GeneticAgentScoringMethod SmartEngine::GeneticAgentTrainerCInfo::scoringMethod = GeneticAgentScoringMethod::Sum

Defines how the trainer deals with chromosome scores from multiple agents.