Package org.ojalgo.ann
Class NetworkInvoker
- java.lang.Object
-
- org.ojalgo.ann.WrappedANN
-
- org.ojalgo.ann.NetworkInvoker
-
- All Implemented Interfaces:
java.util.function.Supplier<ArtificialNeuralNetwork>
,BasicFunction
,BasicFunction.PlainUnary<Access1D<java.lang.Double>,MatrixStore<java.lang.Double>>
public class NetworkInvoker extends WrappedANN implements BasicFunction.PlainUnary<Access1D<java.lang.Double>,MatrixStore<java.lang.Double>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
-
-
Constructor Summary
Constructors Constructor Description NetworkInvoker(ArtificialNeuralNetwork network, int batchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixStore<java.lang.Double>
invoke(Access1D<java.lang.Double> input)
The input argument is typed asAccess1D
which essentially means it can be anything.-
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 Detail
-
NetworkInvoker
NetworkInvoker(ArtificialNeuralNetwork network, int batchSize)
-
-
Method Detail
-
invoke
public MatrixStore<java.lang.Double> invoke(Access1D<java.lang.Double> input)
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<java.lang.Double>,MatrixStore<java.lang.Double>>
- See Also:
BasicFunction.PlainUnary.invoke(java.lang.Object)
-
-