Have you tried ML.NET?
It's a new machine learning framework made specifically for .NET developers.

ASP.NET Tutorial - Hello World in 10 minutes

HTTPS development certificate

In your command prompt, run the following command:

dotnet dev-certs https --trust

Your operating system may prompt to check if you agree to trust the development certificate. Follow the prompts if you agree.

This certificate allows your web app to run on HTTPS while you are developing on your machine.