Package org.ojalgo.ann
Class NetworkInvoker
java.lang.Object
org.ojalgo.ann.WrappedANN
org.ojalgo.ann.NetworkInvoker
- All Implemented Interfaces:
Supplier<ArtificialNeuralNetwork>
,BasicFunction
,BasicFunction.PlainUnary<Access1D<Double>,
MatrixStore<Double>>
public class NetworkInvoker
extends WrappedANN
implements BasicFunction.PlainUnary<Access1D<Double>,MatrixStore<Double>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,
F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>, F extends BasicFunction>, BasicFunction.PlainUnary<T, R> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ojalgo.ann.WrappedANN
adjust, depth, equals, get, getActivator, getBatchSize, getBias, getInput, getInput, getOutput, getOutput, getOutputActivator, getWeight, getWeights, hashCode, invoke, newInputBatch, newOutputBatch, randomise, setActivator, setBias, setWeight, structure
-
Constructor Details
-
NetworkInvoker
NetworkInvoker(ArtificialNeuralNetwork network, int batchSize)
-
-
Method Details
-
invoke
The input argument is typed asAccess1D
which essentially means it can be anything. If the batch size is anything other than 1 this needs to be a 2D structure with the number of rows matching the batch size. The return type is aMatrixStore
where the number of rows match the batch size and the number of columns match the number of output nodes. ADataBatch
may help when creating the batches or you simply create any 2D data structure and fill the rows.- Specified by:
invoke
in interfaceBasicFunction.PlainUnary<Access1D<Double>,
MatrixStore<Double>> - See Also:
-