public enum Operation extends Enum<Operation>
| Enum Constant and Description |
|---|
EVALUATION
Evaluation operations:
SameDiff.evaluate() methods. |
INFERENCE
Inference operations:
SameDiff.output(), SameDiff.batchOutput() and SameDiff#exec(Map, String...) ()} methods,
as well as SameDiff#execBackwards(Map, Operation, String...) methods. |
TRAINING
The training operation:
SameDiff.fit() methods training step (everything except validation). |
TRAINING_VALIDATION
The training validation operation: the validation step during
SameDiff.fit() methods. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrainingPhase() |
boolean |
isValidation() |
static Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operation TRAINING
SameDiff.fit() methods training step (everything except validation).public static final Operation TRAINING_VALIDATION
SameDiff.fit() methods.public static final Operation INFERENCE
SameDiff.output(), SameDiff.batchOutput() and SameDiff#exec(Map, String...) ()} methods,
as well as SameDiff#execBackwards(Map, Operation, String...) methods.public static final Operation EVALUATION
SameDiff.evaluate() methods.public static Operation[] values()
for (Operation c : Operation.values()) System.out.println(c);
public static Operation 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 isTrainingPhase()
public boolean isValidation()
Copyright © 2021. All rights reserved.