public interface IOutputLayer extends Layer, Classifier
Layer.TrainingMode, Layer.Type
Modifier and Type | Method and Description |
---|---|
double |
computeScore(double fullNetworkL1,
double fullNetworkL2,
boolean training,
LayerWorkspaceMgr workspaceMgr)
Compute score after labels and input have been set.
|
INDArray |
computeScoreForExamples(double fullNetworkL1,
double fullNetworkL2,
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, calcL1, calcL2, 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
f1Score, f1Score, fit, fit, fit, fit, labelProbabilities, numLabels, predict, predict
addListeners, applyConstraints, batchSize, clear, 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 fullNetworkL1, double fullNetworkL2, boolean training, LayerWorkspaceMgr workspaceMgr)
fullNetworkL1
- L1 regularization term for the entire networkfullNetworkL2
- L2 regularization term 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 fullNetworkL1, double fullNetworkL2, LayerWorkspaceMgr workspaceMgr)
fullNetworkL1
- L1 regularization term for the entire network (or, 0.0 to not include regularization)fullNetworkL2
- L2 regularization term for the entire network (or, 0.0 to not include regularization)Copyright © 2018. All rights reserved.