#include "SVMClassifier.h"
Eloquent::ML::Port::SVM svm;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
float input1[4] = {5.1, 3.5, 1.4, 0.2 };
float input2[4] = {6.4, 3.2, 4.5, 1.5 };
float input3[4] = {4.9, 2.5, 4.5, 1.7 };
Serial.print("Prediction1: ");
Serial.print(svm.predict(input1));
Serial.print(" Prediction2: ");
Serial.print(svm.predict(input2));
Serial.print(" Prediction3: ");
Serial.println(svm.predict(input3));
delay(3000);
}
Comments