MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The TrainerRNN implements a simple RNN trainer inspired by adepierre's GitHub site referenced. More...
Public Member Functions | |
TrainerRNN (MyCaffeControl< T > mycaffe, PropertySet properties, CryptoRandom random, IxTrainerCallback icallback, BucketCollection rgVocabulary) | |
The constructor. More... | |
void | Dispose () |
Releases all resources used. More... | |
bool | Initialize () |
Initialize the trainer. More... | |
bool | Shutdown (int nWait) |
Shutdown the trainer. More... | |
float[] | Run (int nN, PropertySet runProp) |
Run a single cycle on the environment after the delay. More... | |
byte[] | Run (int nN, PropertySet runProp, out string type) |
Run a single cycle on the environment after the delay. More... | |
bool | Test (int nN, ITERATOR_TYPE type) |
Run the test cycle - currently this is not implemented. More... | |
bool | Train (int nN, ITERATOR_TYPE type, TRAIN_STEP step) |
Train the network using a modified PG training algorithm optimized for GPU use. More... | |
The TrainerRNN implements a simple RNN trainer inspired by adepierre's GitHub site referenced.
Definition at line 26 of file TrainerRNN.cs.
MyCaffe.trainers.rnn.simple.TrainerRNN< T >.TrainerRNN | ( | MyCaffeControl< T > | mycaffe, |
PropertySet | properties, | ||
CryptoRandom | random, | ||
IxTrainerCallback | icallback, | ||
BucketCollection | rgVocabulary | ||
) |
The constructor.
mycaffe | Specifies the MyCaffeControl to use for learning and prediction. |
properties | Specifies the property set containing the key/value pairs of property settings. |
random | Specifies the random number generator to use. |
icallback | Specifies the callback for parent notifications and queries. |
rgVocabulary | Specifies the vocabulary to use. |
The 'bUsePreloadData' parameter has been replaced with a property 'UsePreLoadData'. When this property does not exist, the 'UsePreLoadData' defaults to 'true'.
Definition at line 48 of file TrainerRNN.cs.
void MyCaffe.trainers.rnn.simple.TrainerRNN< T >.Dispose | ( | ) |
Releases all resources used.
Definition at line 61 of file TrainerRNN.cs.
bool MyCaffe.trainers.rnn.simple.TrainerRNN< T >.Initialize | ( | ) |
Initialize the trainer.
Implements MyCaffe.trainers.IxTrainer.
Definition at line 69 of file TrainerRNN.cs.
float[] MyCaffe.trainers.rnn.simple.TrainerRNN< T >.Run | ( | int | nN, |
PropertySet | runProp | ||
) |
Run a single cycle on the environment after the delay.
nN | specifies the number of samples to run. |
runProp | Optionally specifies properties to use when running. |
Implements MyCaffe.trainers.IxTrainerRNN.
Definition at line 113 of file TrainerRNN.cs.
byte[] MyCaffe.trainers.rnn.simple.TrainerRNN< T >.Run | ( | int | nN, |
PropertySet | runProp, | ||
out string | type | ||
) |
Run a single cycle on the environment after the delay.
nN | Specifies the number of samples to run. |
runProp | Optionally specifies properties to use when running. |
type | Returns the data type contained in the byte stream. |
Implements MyCaffe.trainers.IxTrainerRNN.
Definition at line 130 of file TrainerRNN.cs.
bool MyCaffe.trainers.rnn.simple.TrainerRNN< T >.Shutdown | ( | int | nWait | ) |
Shutdown the trainer.
nWait | Specifies a wait in ms. for the shutdown to complete. |
Implements MyCaffe.trainers.IxTrainer.
Definition at line 93 of file TrainerRNN.cs.
bool MyCaffe.trainers.rnn.simple.TrainerRNN< T >.Test | ( | int | nN, |
ITERATOR_TYPE | type | ||
) |
Run the test cycle - currently this is not implemented.
nN | Specifies the number of iterations (based on the ITERATION_TYPE) to run, or -1 to ignore. |
type | Specifies the iteration type (default = ITERATION). |
Implements MyCaffe.trainers.IxTrainer.
Definition at line 146 of file TrainerRNN.cs.
bool MyCaffe.trainers.rnn.simple.TrainerRNN< T >.Train | ( | int | nN, |
ITERATOR_TYPE | type, | ||
TRAIN_STEP | step | ||
) |
Train the network using a modified PG training algorithm optimized for GPU use.
nN | Specifies the number of iterations (based on the ITERATION_TYPE) to run, or -1 to ignore. |
type | Specifies the iteration type (default = ITERATION). |
step | Specifies the stepping mode to use (when debugging). |
Implements MyCaffe.trainers.IxTrainer.
Definition at line 167 of file TrainerRNN.cs.