DEV Community

Cover image for ML.NET in Google Colab
Shunjid Rahman Showrov
Shunjid Rahman Showrov

Posted on

5 1

ML.NET in Google Colab

Today, I was thinking to build and test a classification model using ML.NET. I'm very very curious about new technologies and from my curiosity I asked myself,

"What if I try doing all these things in Colab? Is it even possible?"

https://media.giphy.com/media/VIQ2OBrGPCq0o6QQZY/giphy.gif

From the official documentation of ML.NET I found that there is an option to do all these things from command line using ML.NET CLI.

And guess what? This was as simple as drinking a glass of water πŸ˜‚. All you need to do is to:

  • Install .NET Core SDK in Google Colab.
  • Install ML.NET.
  • Import dataset.
  • Use ML.NET CLI to train the model.
  • Test.

I've added a gist below. You can try directly in colab from the "Open in Colab" badge.

Let's Give it a try πŸŽ‰

https://gist.github.com/shunjid/5f633474ba6f4be7db2871fe54e2ef52

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Top comments (1)

Collapse
 
saidiislam profile image
Saidiislam β€’

Nice Find! I'll definitely look on to it!

Billboard image

Try REST API Generation for MS SQL Server.

DevOps for Private APIs. With DreamFactory API Generation, you get:

  • Auto-generated live APIs mapped from database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more