DEV Community

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

Posted on

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

Top comments (1)

Collapse
 
saidiislam profile image
Saidiislam

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