TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
A sampler takes the output of the model, and outputs an action accordingly. More...
#include <sampler.h>
Inherited by cpid::ContinuousDeterministicSampler, cpid::ContinuousGaussianSampler, cpid::DiscreteMaxSampler, cpid::EpsGreedySampler, and cpid::MultinomialSampler.
Public Member Functions | |
BaseSampler () | |
virtual | ~BaseSampler ()=default |
virtual ag::Variant | sample (ag::Variant in) |
virtual ag::Variant | computeProba (const ag::Variant &in, const ag::Variant &action) |
A sampler takes the output of the model, and outputs an action accordingly.
The exact shape of the action is dependent on the rest of the training loop. For convenience, the base sampling function is the identity.
|
inline |
|
virtualdefault |
|
inlinevirtual |
Reimplemented in cpid::ContinuousGaussianSampler, and cpid::MultinomialSampler.
|
inlinevirtual |