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.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (1)

Collapse
 
saidiislam profile image
Saidiislam

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay