public class
GradientDescent
Basic Stochastic gradient descent optimizer. GradientDescent updates the current weight using the current gradient ?L/?w multiplied by the learning rate.
Constants
float | LEARNING_RATE_DEFAULT |
Inherited Constants
Public Constructors
Public Methods
String |
getOptimizerName()
Get the Name of the optimizer.
|
String |
toString()
|
Inherited Methods
Constants
public static final float LEARNING_RATE_DEFAULT
Constant Value:
0.01
Public Constructors
public GradientDescent (Graph graph)
Creates a GradientDescent Optimizer
Parameters
graph | the TensorFlow graph |
---|
public GradientDescent (Graph graph, float learningRate)
Creates a GradientDescent Optimizer
Parameters
graph | the TensorFlow graph |
---|---|
learningRate | the learning rate, defaults to 0.01 |
public GradientDescent (Graph graph, String name, float learningRate)
Creates a GradientDescent Optimizer
Parameters
graph | the TensorFlow graph |
---|---|
name | the name for this Optimizer, default is "GradientDescent" |
learningRate | the learning rate, defaults to 0.01 |
Public Methods
public String getOptimizerName ()
Get the Name of the optimizer.
Returns
- The optimizer name.
public String toString ()