MLPLibrary mlp(2, 4, 1, 0.1); | |
void setup() { | |
// put your setup code here, to run once: | |
mlp.initialilze(); | |
Serial.begin(9600); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
float input[2] = {0.5, 0.3}; | |
float target[1] = {0.7}; | |
mlp.train(input, target); | |
float output[1]; | |
mlp.predict(input, output); | |
Serial.println(output[1]); | |
} | |