aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/rssin/neurons/PredictionInterface.java
blob: 891707a1663efc6513fe769021ae9d207575ff62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.rssin.neurons;

/**
 * @author Jos.
 * Interface for predictions generated by either NeuralNetwork or MultiNeuralNetwork.
 */
interface PredictionInterface
{
    /**
     * @return The output of the neural network.
     */
    double getOutput();

    /**
     * Provides feedback to the neural network.
     * @param expectedOutput The expected output for this prediction.
     */
    void learn(double expectedOutput);

    /**
     * @return The inputs that were given to the neural network.
     */
    double[] getInputs();
}