DEV Community

Duc Nguyen Thanh
Duc Nguyen Thanh

Posted on • Edited on

3 1 1 1

[ML.NET] Predicting the Future with ML.NET with examples

Hello, I’m Duc Nguyen (Duke)

Today I will introduce ML.NET to the .NET community

So, what’s the ML.NET?

  • ML.NET is a cross-platform machine learning framework developed by Microsoft
  • Open source
  • Used in situations where it’s necessary to incorporate machine learning into C# or F# applications in order to avoid switching to other programming languages, such as Python (.NET ecosystem).
  • Able can be expanded to function with additional machine learning libraries, like TensorFlow, assisting in utilizing current models and lowering obstacles to ML.NET adoption.
  • Can be deployed in various environments, from desktop apps to web services

Future Housing Price Forecast in Hanoi, Vietnam

Alright, first you can get the source code from my repository here

Then, you can see:

Code structure

- HaNoi-VN_housing_dataset.csv: sample data file used for training
- lib/HousePriceForecast.consumption.cs: Defines the Predictmethod, which takes input data and returns predictions using the trained model
- lib/HousePriceForecast.evaluate.cs: Defines the method for calculating PFI (Permutation Feature Importance) through the CalculatePFI() method — determines the level of influence from input data
- lib/HousePriceForecast.mlnet: Binary file containing the trained ML.NET model and related metadata and if there’s a similar project, this model can be reused without retraining
- lib/HousePriceForecast.training.cs: Used to train the ML.NET model and defines data processing steps and algorithm selection

Now, on to the fun part, practice!

You can also refer to the animation image here

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

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