Contains the buffers that a thread needs to train or use a GNeuralNet. Each thread should use a separate GContextNeuralNet object. Call GNeuralNet::newContext to obtain a new GContextNeuralNet object.
#include <GNeuralNet.h>
GClasses::GContextNeuralNet::GContextNeuralNet |
( |
GRand & |
rand, |
|
|
const GNeuralNet & |
nn |
|
) |
| |
|
protected |
GClasses::GContextNeuralNet::~GContextNeuralNet |
( |
| ) |
|
GVec& GClasses::GContextNeuralNet::blameBuf |
( |
| ) |
|
|
inline |
Returns the blame buffer for the output layer.
size_t GClasses::GContextNeuralNet::layerCount |
( |
| ) |
const |
|
inline |
GVec& GClasses::GContextNeuralNet::predBuf |
( |
| ) |
|
|
inline |
Returns the activation buffer for the output layer.
virtual void GClasses::GContextNeuralNet::resetState |
( |
| ) |
|
|
overridevirtual |
std::vector<GContextLayer*> GClasses::GContextNeuralNet::m_layers |
|
protected |
const GNeuralNet& GClasses::GContextNeuralNet::m_nn |
|
protected |