public class LinearSGDOptions extends Object implements ClassificationOptions<LinearSGDTrainer>
Modifier and Type | Class and Description |
---|---|
static class |
LinearSGDOptions.LossEnum
Available loss types.
|
Modifier and Type | Field and Description |
---|---|
int |
sgdEpochs |
int |
sgdLoggingInterval |
int |
sgdMinibatchSize |
LinearSGDOptions.LossEnum |
sgdObjective |
GradientOptimiserOptions |
sgoOptions |
Constructor and Description |
---|
LinearSGDOptions() |
Modifier and Type | Method and Description |
---|---|
LabelObjective |
getLoss()
Returns the loss function specified in the arguments.
|
LinearSGDTrainer |
getTrainer()
Constructs the trainer based on the provided arguments.
|
public GradientOptimiserOptions sgoOptions
@Option(longName="sgd-epochs", usage="Number of SGD epochs. Defaults to 5.") public int sgdEpochs
@Option(longName="sgd-objective", usage="Loss function. Defaults to LOG.") public LinearSGDOptions.LossEnum sgdObjective
@Option(longName="sgd-logging-interval", usage="Log the objective after <int> examples. Defaults to 100.") public int sgdLoggingInterval
@Option(longName="sgd-minibatch-size", usage="Minibatch size. Defaults to 1.") public int sgdMinibatchSize
public LabelObjective getLoss()
public LinearSGDTrainer getTrainer()
ClassificationOptions
getTrainer
in interface ClassificationOptions<LinearSGDTrainer>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.