public abstract class TrainingListener
extends org.deeplearning4j.optimize.api.BaseTrainingListener
implements weka.core.OptionHandler, java.io.Serializable
Constructor and Description |
---|
TrainingListener() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
void |
init(int numClasses,
int currentEpoch,
int numEpochs,
int numSamples,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator trainIterator,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator validationIterator)
Initialize the iterator with its necessary member variables
|
void |
iterationDone(org.deeplearning4j.nn.api.Model model,
int iteration,
int epoch) |
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
abstract void |
log(java.lang.String msg)
Log a message
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
onBackwardPass, onEpochEnd, onEpochStart, onForwardPass, onForwardPass, onGradientCalculation
public void init(int numClasses, int currentEpoch, int numEpochs, int numSamples, org.nd4j.linalg.dataset.api.iterator.DataSetIterator trainIterator, org.nd4j.linalg.dataset.api.iterator.DataSetIterator validationIterator)
numClasses
- Number of classesnumEpochs
- Number of epochsnumSamples
- Number of SamplestrainIterator
- Training iteratorvalidationIterator
- Validation iteratorpublic abstract void log(java.lang.String msg)
msg
- Messagepublic void iterationDone(org.deeplearning4j.nn.api.Model model, int iteration, int epoch)
iterationDone
in interface org.deeplearning4j.optimize.api.TrainingListener
iterationDone
in class org.deeplearning4j.optimize.api.BaseTrainingListener
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported