public final class NetworkBuilder extends Object implements Supplier<ArtificialNeuralNetwork>
Modifier and Type | Method and Description |
---|---|
NetworkBuilder |
activator(int layer,
ArtificialNeuralNetwork.Activator activator) |
NetworkBuilder |
activators(ArtificialNeuralNetwork.Activator... activators) |
NetworkBuilder |
activators(ArtificialNeuralNetwork.Activator activator) |
NetworkBuilder |
bias(int layer,
int output,
double bias) |
boolean |
equals(Object obj) |
NetworkBuilder |
error(ArtificialNeuralNetwork.Error error) |
ArtificialNeuralNetwork |
get() |
int |
hashCode() |
NetworkBuilder |
rate(double rate) |
Structure2D[] |
structure() |
String |
toString() |
void |
train(Access1D<Double> givenInput,
Access1D<Double> targetOutput) |
void |
train(Iterable<? extends Access1D<Double>> givenInputs,
Iterable<? extends Access1D<Double>> targetOutputs)
Note that the required
Iterable :s can be obtained from calling Access2D.rows() or
Access2D.columns() on anything "2D". |
NetworkBuilder |
weight(int layer,
int input,
int output,
double weight) |
public NetworkBuilder activator(int layer, ArtificialNeuralNetwork.Activator activator)
layer
- 0-based index among the calculation layers (excluding the input layer)activator
- The activator function to usepublic NetworkBuilder activators(ArtificialNeuralNetwork.Activator activator)
public NetworkBuilder activators(ArtificialNeuralNetwork.Activator... activators)
public NetworkBuilder bias(int layer, int output, double bias)
public NetworkBuilder error(ArtificialNeuralNetwork.Error error)
public ArtificialNeuralNetwork get()
get
in interface Supplier<ArtificialNeuralNetwork>
public NetworkBuilder rate(double rate)
public Structure2D[] structure()
public void train(Iterable<? extends Access1D<Double>> givenInputs, Iterable<? extends Access1D<Double>> targetOutputs)
Iterable
:s can be obtained from calling Access2D.rows()
or
Access2D.columns()
on anything "2D".public NetworkBuilder weight(int layer, int input, int output, double weight)
Copyright © 2019 Optimatika. All rights reserved.