cronyism.159 / cronyism.159.ino
antitheft159's picture
Upload cronyism.159.ino
d31f709 verified
raw
history blame contribute delete
414 Bytes
#include "MLPLibrary.h"
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]);
}