This sample project shows how to expose a machine learning model built with Accord.NET via a Suave API
.paket\paket.exe installmono .paket\paket.exe installTo train the model, run the App.fsx script
To initialize the server, run the Server.fsx script
With the server running, using a REST client like POSTMAN or Insomnia make an HTTP POST request to the enpoint http://localhost:3001/api/predict. In the request body include the data property which is a 2D array of type float.
{
"data": [[3.3,1.6,0.2,5.1]]
}{
"label": [
"Iris-virginica"
]
}