Grail (C++)  1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::simgames::learn::IVectorizer Struct Referenceabstract

Classes implementing this interface provide training data in the offline learning process. More...

#include <IVectorizer.hh>

Public Member Functions

virtual bool IsLearnableSituation (const ISimulatedGameUnit &unit) const =0
 Look at the state of your units and decide whether the current unit should learn in this situation. In such a case, the state will be sampled by offline learner. More...
 
virtual std::vector< float > Vectorize () const =0
 Returns the current values for all consideration (conditions) that will be used in a decision tree later. More...
 

Detailed Description

Classes implementing this interface provide training data in the offline learning process.

Member Function Documentation

◆ IsLearnableSituation()

virtual bool grail::simgames::learn::IVectorizer::IsLearnableSituation ( const ISimulatedGameUnit unit) const
pure virtual

Look at the state of your units and decide whether the current unit should learn in this situation. In such a case, the state will be sampled by offline learner.

Parameters
unitThe current unit to take an action.
Returns
True - if the current situation should be considered in the learning process. False - otherwise.

◆ Vectorize()

virtual std::vector<float> grail::simgames::learn::IVectorizer::Vectorize ( ) const
pure virtual

Returns the current values for all consideration (conditions) that will be used in a decision tree later.


The documentation for this struct was generated from the following file: