public class ComputationGraphConfiguration extends Object implements Serializable, Cloneable
MultiLayerConfiguration
, but allows considerably greater flexibility for the network
architecture.GraphVertex
,
which may for example be a layer or a vertex/object that defines arbitrary forward and backward pass functionality.OutputLayer
instances.
Typical usage:ComputationGraphConfiguration conf = new NeuralNetConfiguration.Builder()....graphBuilder()...build();
Modifier and Type | Class and Description |
---|---|
static class |
ComputationGraphConfiguration.GraphBuilder |
Modifier and Type | Field and Description |
---|---|
protected boolean |
backprop |
protected BackpropType |
backpropType |
protected NeuralNetConfiguration |
defaultConfiguration |
protected List<String> |
networkInputs
List of inputs to the network, by name
|
protected List<String> |
networkOutputs
List of network outputs, by name
|
protected boolean |
pretrain |
protected int |
tbpttBackLength |
protected int |
tbpttFwdLength |
protected Map<String,List<String>> |
vertexInputs |
protected Map<String,GraphVertex> |
vertices |
Constructor and Description |
---|
ComputationGraphConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addPreProcessors(InputType... inputTypes)
Add preprocessors automatically, given the specified types of inputs for the network.
|
ComputationGraphConfiguration |
clone() |
static ComputationGraphConfiguration |
fromJson(String json)
Create a computation graph configuration from json
|
static ComputationGraphConfiguration |
fromYaml(String json)
Create a neural net configuration from json
|
String |
toJson() |
String |
toString() |
String |
toYaml() |
void |
validate()
Check the configuration, make sure it is valid
|
protected Map<String,GraphVertex> vertices
protected boolean pretrain
protected boolean backprop
protected BackpropType backpropType
protected int tbpttFwdLength
protected int tbpttBackLength
protected NeuralNetConfiguration defaultConfiguration
public String toYaml()
public static ComputationGraphConfiguration fromYaml(String json)
json
- the neural net configuration from jsonComputationGraphConfiguration
public String toJson()
public static ComputationGraphConfiguration fromJson(String json)
json
- the neural net configuration from jsonComputationGraphConfiguration
public ComputationGraphConfiguration clone()
public void validate()
IllegalStateException
- if configuration is not validpublic void addPreProcessors(InputType... inputTypes)
InputType
class, in the same order in which the inputs were defined in the original configuration..addPreProcessors(InputType.convolutional(1,28,28),InputType.feedForward())
.ComputationGraphConfiguration.GraphBuilder.setInputTypes(InputType...)
functionality.
See that method for details.Copyright © 2016. All Rights Reserved.