java.lang.Object
org.ojalgo.ann.NetworkTrainer
- All Implemented Interfaces:
Supplier<ArtificialNeuralNetwork>
An Artificial Neural Network (ANN) builder/trainer.
- Author:
- apete
-
Method Summary
Modifier and TypeMethodDescriptionactivator(int layer, ArtificialNeuralNetwork.Activator activator) Deprecated.activators(ArtificialNeuralNetwork.Activator activator) Deprecated.UseNetworkBuilderandNetworkBuilder.layer(int, Activator)instead.activators(ArtificialNeuralNetwork.Activator... activators) Deprecated.UseNetworkBuilderandNetworkBuilder.layer(int, Activator)instead.bias(int layer, int output, double bias) dropouts()booleanget()inthashCode()lasso(double factor) L1 lasso regularisationWhen usingNetworkTrainerorNetworkInvokerwith a batch size larger than 1 this utility may help with creating the batches.rate(double rate) ridge(double factor) L2 ridge regularisationtoString()voidtrain(Iterable<? extends Access1D<Double>> givenInputs, Iterable<? extends Access1D<Double>> targetOutputs) Deprecated.Just usetrain(Access1D, Access1D)insteadvoidThe arguments are typed asAccess1Dbut it's probably best to think of (create) them as something 2D where the number of rows should match the batch size and the number of columns the number of inputs and outputs respectively.weight(int layer, int input, int output, double weight)
-
Method Details
-
activator
Deprecated.UseNetworkBuilderandNetworkBuilder.layer(int, Activator)instead.- Parameters:
layer- 0-based index among the calculation layers (excluding the input layer)activator- The activator function to use
-
activators
Deprecated.UseNetworkBuilderandNetworkBuilder.layer(int, Activator)instead. -
activators
Deprecated.UseNetworkBuilderandNetworkBuilder.layer(int, Activator)instead. -
bias
-
dropouts
-
equals
-
error
-
hashCode
public int hashCode() -
lasso
L1 lasso regularisation -
newOutputBatch
- See Also:
-
rate
-
ridge
L2 ridge regularisation -
structure
-
toString
-
train
The arguments are typed asAccess1Dbut it's probably best to think of (create) them as something 2D where the number of rows should match the batch size and the number of columns the number of inputs and outputs respectively. When the batch size is 1 then the arguments can actually be 1D.- Parameters:
givenInput- One or more input examples, depending on the batch sizetargetOutput- One or more, matching, output targets
-
train
@Deprecated public void train(Iterable<? extends Access1D<Double>> givenInputs, Iterable<? extends Access1D<Double>> targetOutputs) Deprecated.Just usetrain(Access1D, Access1D)insteadNote that the requiredIterable:s can be obtained from callingAccess2D.rows()orAccess2D.columns()on anything "2D". -
weight
-
get
- Specified by:
getin interfaceSupplier<ArtificialNeuralNetwork>
-
newInputBatch
When usingNetworkTrainerorNetworkInvokerwith a batch size larger than 1 this utility may help with creating the batches.
-
NetworkBuilderandNetworkBuilder.layer(int, Activator)instead.