public static class BaseMultiLayerNetwork.Builder<E extends BaseMultiLayerNetwork> extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
backProp |
protected Class<? extends BaseMultiLayerNetwork> |
clazz |
protected NeuralNetConfiguration |
conf |
protected List<NeuralNetConfiguration> |
layerWiseConfiguration |
protected boolean |
shouldForceEpochs |
protected Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> |
weightTransforms |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
E |
build() |
E |
buildEmpty() |
BaseMultiLayerNetwork.Builder<E> |
configure(NeuralNetConfiguration conf) |
BaseMultiLayerNetwork.Builder<E> |
disableBackProp()
Disables back propagation
|
BaseMultiLayerNetwork.Builder<E> |
forceEpochs()
Forces use of number of epochs for training
SGD style rather than conjugate gradient
|
BaseMultiLayerNetwork.Builder<E> |
hiddenLayerSizes(int[] hiddenLayerSizes) |
BaseMultiLayerNetwork.Builder<E> |
hiddenLayerSizes(Integer[] hiddenLayerSizes)
Size of the hidden neuralNets
|
BaseMultiLayerNetwork.Builder<E> |
layerWiseCOnfiguration(List<NeuralNetConfiguration> layerWiseConfiguration) |
BaseMultiLayerNetwork.Builder<E> |
lineSearchBackProp(boolean lineSearchBackProp)
Whether to use line search back prop instead of SGD
|
BaseMultiLayerNetwork.Builder<E> |
transformWeightsAt(int layer,
org.nd4j.linalg.transformation.MatrixTransform transform)
Transform the weights at the given layer
|
BaseMultiLayerNetwork.Builder<E> |
transformWeightsAt(Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> transforms)
A map of transformations for transforming
the given neuralNets
|
BaseMultiLayerNetwork.Builder<E> |
useDropConnection(boolean useDropConnect)
Use drop connect on activations or not
|
BaseMultiLayerNetwork.Builder<E> |
useGaussNewtonVectorProductBackProp(boolean useGaussNewtonVectorProductBackProp)
Use gauss newton back prop - this is for hessian free
|
BaseMultiLayerNetwork.Builder<E> |
withClazz(Class<? extends BaseMultiLayerNetwork> clazz) |
BaseMultiLayerNetwork.Builder<E> |
withHiddenBiasTransforms(Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> hiddenBiasTransforms) |
BaseMultiLayerNetwork.Builder<E> |
withInput(org.nd4j.linalg.api.ndarray.INDArray input) |
BaseMultiLayerNetwork.Builder<E> |
withLabels(org.nd4j.linalg.api.ndarray.INDArray labels) |
BaseMultiLayerNetwork.Builder<E> |
withVisibleBiasTransforms(Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> visibleBiasTransforms) |
protected Class<? extends BaseMultiLayerNetwork> clazz
protected Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> weightTransforms
protected boolean backProp
protected boolean shouldForceEpochs
protected NeuralNetConfiguration conf
protected List<NeuralNetConfiguration> layerWiseConfiguration
public BaseMultiLayerNetwork.Builder<E> layerWiseCOnfiguration(List<NeuralNetConfiguration> layerWiseConfiguration)
public BaseMultiLayerNetwork.Builder<E> configure(NeuralNetConfiguration conf)
public BaseMultiLayerNetwork.Builder<E> useGaussNewtonVectorProductBackProp(boolean useGaussNewtonVectorProductBackProp)
useGaussNewtonVectorProductBackProp
- whether to use gauss newton vector backproppublic BaseMultiLayerNetwork.Builder<E> useDropConnection(boolean useDropConnect)
useDropConnect
- use drop connect or notpublic BaseMultiLayerNetwork.Builder<E> lineSearchBackProp(boolean lineSearchBackProp)
lineSearchBackProp
- public BaseMultiLayerNetwork.Builder<E> withVisibleBiasTransforms(Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> visibleBiasTransforms)
public BaseMultiLayerNetwork.Builder<E> withHiddenBiasTransforms(Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> hiddenBiasTransforms)
public BaseMultiLayerNetwork.Builder<E> forceEpochs()
public BaseMultiLayerNetwork.Builder<E> disableBackProp()
public BaseMultiLayerNetwork.Builder<E> transformWeightsAt(int layer, org.nd4j.linalg.transformation.MatrixTransform transform)
layer
- the layer to applyTransformToOrigintransform
- the function used for transformationpublic BaseMultiLayerNetwork.Builder<E> transformWeightsAt(Map<Integer,org.nd4j.linalg.transformation.MatrixTransform> transforms)
transforms
- public BaseMultiLayerNetwork.Builder<E> hiddenLayerSizes(Integer[] hiddenLayerSizes)
hiddenLayerSizes
- public BaseMultiLayerNetwork.Builder<E> hiddenLayerSizes(int[] hiddenLayerSizes)
public BaseMultiLayerNetwork.Builder<E> withInput(org.nd4j.linalg.api.ndarray.INDArray input)
public BaseMultiLayerNetwork.Builder<E> withLabels(org.nd4j.linalg.api.ndarray.INDArray labels)
public BaseMultiLayerNetwork.Builder<E> withClazz(Class<? extends BaseMultiLayerNetwork> clazz)
public E buildEmpty()
public E build()
Copyright © 2014. All rights reserved.