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

Edit your code

Open Pages/Index.cshtml in any text editor and replace all of the code with the following, then save the file.

@model IndexModel
    ViewData["Title"] = "Home page";

<div class="text-center">
    <h1>Hello, world!</h1>
    <p>The time on the server is @DateTime.Now</p>

Re-run your app

End the previous dotnet run command that is running the site locally, then run the following command to re-launch the site:

Command prompt
dotnet run

Refresh the browser to see the change:

When the page is refreshed, the new content you just added will appear on the page.