public abstract class Updater<T extends org.nd4j.linalg.learning.config.IUpdater> extends java.lang.Object implements weka.core.OptionHandler, ApiWrapper<T>, java.io.Serializable
| Constructor and Description |
|---|
Updater() |
| Modifier and Type | Method and Description |
|---|---|
static Updater<? extends org.nd4j.linalg.learning.config.IUpdater> |
create(org.nd4j.linalg.learning.config.IUpdater newBackend)
Create an API wrapped updater from a given updater object.
|
T |
getBackend()
Access the DL4J backend.
|
double |
getLearningRate()
Get the learning rate
|
Schedule |
getLearningRateSchedule()
Get the learning rate schedule
|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
boolean |
hasLearningRate() |
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setBackend(T newBackend)
Set the DL4J backend.
|
void |
setLearningRate(double learningRate)
Set the learning rate
|
void |
setLearningRateSchedule(Schedule<? extends org.nd4j.linalg.schedule.ISchedule> learningRateSchedule)
Set the learning rate schedule
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeBackendpublic static Updater<? extends org.nd4j.linalg.learning.config.IUpdater> create(org.nd4j.linalg.learning.config.IUpdater newBackend)
newBackend - Backend object@ProgrammaticProperty public boolean hasLearningRate()
@OptionMetadata(displayName="lr",
description="The learning rate (default = 0.1).",
commandLineParamName="lr",
commandLineParamSynopsis="-lr <double>",
displayOrder=1)
public double getLearningRate()
public void setLearningRate(double learningRate)
learningRate - Learning rate@OptionMetadata(displayName="lrSchedule",
description="The learning rate schedule (default = ConstantScheduleImpl).",
commandLineParamName="lrSchedule",
commandLineParamSynopsis="-lrSchedule <Schedule>",
displayOrder=1)
public Schedule getLearningRateSchedule()
public void setLearningRateSchedule(Schedule<? extends org.nd4j.linalg.schedule.ISchedule> learningRateSchedule)
learningRateSchedule - Learning rate schedulepublic T getBackend()
ApiWrappergetBackend in interface ApiWrapper<T extends org.nd4j.linalg.learning.config.IUpdater>public void setBackend(T newBackend)
ApiWrappersetBackend in interface ApiWrapper<T extends org.nd4j.linalg.learning.config.IUpdater>newBackend - Backend that should be wrapped by this classpublic java.util.Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerpublic java.lang.String[] getOptions()
getOptions in interface weka.core.OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface weka.core.OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supported