org.nd4j.linalg.lossfunctions
Class LossFunctions
- java.lang.Object
-
- org.nd4j.linalg.lossfunctions.LossFunctions
-
public class LossFunctions extends java.lang.ObjectCentral class for loss functions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classLossFunctions.LossFunctionMSE: Mean Squared Error: Linear Regression EXPLL: Exponential log likelihood: Poisson Regression XENT: Cross Entropy: Binary Classification SOFTMAX: Softmax Regression RMSE_XENT: RMSE Cross Entropy
-
Constructor Summary
Constructors Constructor and Description LossFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublereconEntropy(INDArray input, INDArray hBias, INDArray vBias, INDArray W, ActivationFunction activationFunction)Reconstruction entropy for Denoising AutoEncoders and RBMsstatic doublescore(INDArray labels, LossFunctions.LossFunction lossFunction, INDArray output, double l2, boolean useRegularization)Generic scoring function
-
-
-
Method Detail
-
score
public static double score(INDArray labels, LossFunctions.LossFunction lossFunction, INDArray output, double l2, boolean useRegularization)
Generic scoring function- Parameters:
labels- the labels to scorelossFunction- the loss function to useoutput- the output functionl2- the l2 coefficientuseRegularization- whether to use regularization- Returns:
- the score for the given parameters
-
reconEntropy
public static double reconEntropy(INDArray input, INDArray hBias, INDArray vBias, INDArray W, ActivationFunction activationFunction)
Reconstruction entropy for Denoising AutoEncoders and RBMs- Parameters:
input- the input ndarrayhBias- the hidden bias of the neural networkvBias- the visible bias of the neural networkW- the weight matrix of the neural network- Returns:
- the reconstruction cross entropy for the given parameters
-
-
DMelt 3.0 © DataMelt by jWork.ORG