public class LossFunctions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LossFunctions.LossFunction
MSE: Mean Squared Error: Linear Regression
EXPLL: Exponential log likelihood: Poisson Regression
XENT: Cross Entropy: Binary Classification
MCXENT: Multiclass Cross Entropy
RMSE_XENT: RMSE Cross Entropy
SQUARED_LOSS: Squared Loss
RECONSUTRCTION_CROSSENTROPY: Reconstruction Cross Entropy
NEGATIVELOGLIKELIHOOD: Negative Log Likelihood
|
Constructor and Description |
---|
LossFunctions() |
Modifier and Type | Method and Description |
---|---|
static double |
score(INDArray labels,
LossFunctions.LossFunction lossFunction,
INDArray z,
double l2,
boolean useRegularization)
Generic scoring function
|
public static double score(INDArray labels, LossFunctions.LossFunction lossFunction, INDArray z, double l2, boolean useRegularization)
labels
- the labels to scorelossFunction
- the loss function to usez
- the output functionl2
- the l2 coefficientuseRegularization
- whether to use regularizationCopyright © 2015. All Rights Reserved.