public class NeuralNetConfiguration extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
NeuralNetConfiguration.Builder |
static class |
NeuralNetConfiguration.ListBuilder
Fluent interface for building a list of configurations
|
Modifier and Type | Field and Description |
---|---|
protected int |
batchSize |
protected boolean |
constrainGradientToUnitNorm |
protected double |
l1 |
protected double |
l2 |
protected Layer |
layer |
protected int |
maxNumLineSearchIterations |
protected boolean |
miniBatch |
protected boolean |
minimize |
protected double |
momentum |
protected Map<Integer,Double> |
momentumAfter |
protected int |
numIterations |
protected OptimizationAlgorithm |
optimizationAlgo |
protected double |
rho |
protected double |
rmsDecay |
protected long |
seed |
protected StepFunction |
stepFunction |
protected boolean |
useDropConnect |
protected boolean |
useRegularization |
protected List<String> |
variables |
Constructor and Description |
---|
NeuralNetConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addVariable(String variable) |
void |
clearVariables() |
NeuralNetConfiguration |
clone()
Creates and returns a deep copy of the configuration.
|
static NeuralNetConfiguration |
fromJson(String json)
Create a neural net configuration from json
|
static NeuralNetConfiguration |
fromYaml(String json)
Create a neural net configuration from json
|
static com.fasterxml.jackson.databind.ObjectMapper |
mapper()
Object mapper for serialization of configurations
|
static com.fasterxml.jackson.databind.ObjectMapper |
mapperYaml()
Object mapper for serialization of configurations
|
String |
toJson()
Return this configuration as json
|
String |
toYaml()
Return this configuration as json
|
List<String> |
variables() |
protected int numIterations
protected double momentum
protected double l2
protected boolean useRegularization
protected int maxNumLineSearchIterations
protected OptimizationAlgorithm optimizationAlgo
protected boolean constrainGradientToUnitNorm
protected double rho
protected long seed
protected StepFunction stepFunction
protected Layer layer
protected boolean useDropConnect
protected int batchSize
protected boolean minimize
protected double l1
protected double rmsDecay
protected boolean miniBatch
public NeuralNetConfiguration clone()
public void addVariable(String variable)
public void clearVariables()
public String toYaml()
public static NeuralNetConfiguration fromYaml(String json)
json
- the neural net configuration from jsonpublic String toJson()
public static NeuralNetConfiguration fromJson(String json)
json
- the neural net configuration from jsonpublic static com.fasterxml.jackson.databind.ObjectMapper mapperYaml()
public static com.fasterxml.jackson.databind.ObjectMapper mapper()
Copyright © 2015. All Rights Reserved.