public enum ScheduleType extends java.lang.Enum<ScheduleType> implements ApiWrapper<org.nd4j.linalg.schedule.ScheduleType>
ScheduleType
. This is necessary as Weka's run
script cannot find the enum classes during the option parsing as they reside in the Dl4j backend
and are at that time not visible to the class loader.Modifier and Type | Method and Description |
---|---|
static ScheduleType |
fromBackend(org.nd4j.linalg.schedule.ScheduleType scheduleType)
Parse backend schedule type and return weka enum implementation.
|
org.nd4j.linalg.schedule.ScheduleType |
getBackend()
Access the DL4J backend.
|
void |
initializeBackend()
Initialize the DL4J backend.
|
void |
setBackend(org.nd4j.linalg.schedule.ScheduleType newBackend)
Set the DL4J backend.
|
static ScheduleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScheduleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScheduleType ITERATION
public static final ScheduleType EPOCH
public static ScheduleType[] values()
for (ScheduleType c : ScheduleType.values()) System.out.println(c);
public static ScheduleType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ScheduleType fromBackend(org.nd4j.linalg.schedule.ScheduleType scheduleType)
scheduleType
- Schedule typepublic org.nd4j.linalg.schedule.ScheduleType getBackend()
ApiWrapper
getBackend
in interface ApiWrapper<org.nd4j.linalg.schedule.ScheduleType>
public void setBackend(org.nd4j.linalg.schedule.ScheduleType newBackend)
ApiWrapper
setBackend
in interface ApiWrapper<org.nd4j.linalg.schedule.ScheduleType>
newBackend
- Backend that should be wrapped by this classpublic void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<org.nd4j.linalg.schedule.ScheduleType>