public enum LossType extends Enum<LossType>
LossFunction
Enum Constant and Description |
---|
CROSS_ENTROPY
Cross Entropy Loss, used for classificaton tasks, implemented by
CrossEntropyLoss |
MEAN_SQUARED_ERROR
Mean Squared Error loss, used for regression tasks, implemented by
MeanSquaredErrorLoss |
Modifier and Type | Method and Description |
---|---|
boolean |
equalsName(String otherName) |
static LossType |
of(Class lossClass) |
String |
toString() |
static LossType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LossType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LossType MEAN_SQUARED_ERROR
MeanSquaredErrorLoss
public static final LossType CROSS_ENTROPY
CrossEntropyLoss
public static LossType[] values()
for (LossType c : LossType.values()) System.out.println(c);
public static LossType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean equalsName(String otherName)
Copyright © 2022. All rights reserved.