public interface IOutputLayer extends Layer, Classifier
Layer.TrainingMode, Layer.Type
Modifier and Type | Method and Description |
---|---|
double |
computeScore(double fullNetworkRegScore,
boolean training,
LayerWorkspaceMgr workspaceMgr)
Compute score after labels and input have been set.
|
INDArray |
computeScoreForExamples(double fullNetworkRegScore,
LayerWorkspaceMgr workspaceMgr)
Compute the score for each example individually, after labels and input have been set.
|
INDArray |
getLabels()
Get the labels array previously set with
setLabels(INDArray) |
boolean |
needsLabels()
Returns true if labels are required
for this output layer
|
void |
setLabels(INDArray labels)
Set the labels array for this output layer
|
activate, activate, allowInputModification, backpropGradient, calcRegularizationScore, clearNoiseWeightParams, feedForwardMaskArray, getEpochCount, getHelper, getIndex, getInputMiniBatchSize, getIterationCount, getListeners, getMaskArray, isPretrainLayer, setCacheMode, setEpochCount, setIndex, setInput, setInputMiniBatchSize, setIterationCount, setListeners, setListeners, setMaskArray, type
getConfig, getGradientsViewArray, numParams, params, paramTable, updaterDivideByMinibatch
f1Score, f1Score, fit, fit, fit, fit, numLabels, predict, predict
addListeners, applyConstraints, batchSize, clear, close, computeGradientAndScore, conf, fit, fit, getGradientsViewArray, getOptimizer, getParam, gradient, gradientAndScore, init, input, numParams, numParams, params, paramTable, paramTable, score, setBackpropGradientsViewArray, setConf, setParam, setParams, setParamsViewArray, setParamTable, update, update
boolean needsLabels()
void setLabels(INDArray labels)
labels
- Labels array to setINDArray getLabels()
setLabels(INDArray)
double computeScore(double fullNetworkRegScore, boolean training, LayerWorkspaceMgr workspaceMgr)
fullNetworkRegScore
- Regularization score (l1/l2/weight decay) for the entire networktraining
- whether score should be calculated at train or test time (this affects things like application of
dropout, etc)INDArray computeScoreForExamples(double fullNetworkRegScore, LayerWorkspaceMgr workspaceMgr)
fullNetworkRegScore
- Regularization score (l1/l2/weight decay) for the entire networkCopyright © 2021. All rights reserved.