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

Features of Try .NET

Custom themes

Customize the Try .NET editor to match your documentation, blog or tutorial. Select from our default themes or build a complete custom theme.

JavaScript programmability

You can use the JavaScript postMessage API to programatically interact with an instance of Try .NET.

Code editor is loading...

Powered by Try .NET

Console

GitHub integration

Try .NET can load code directly from a GitHub Gist, either as a URL parameter when the iframe is loaded or via JavaScript.

Code editor is loading...

Powered by Try .NET

Console

Want to use Try .NET?

Apply to join the private preview, for early adopters using Try .NET on their sites.