dotnet/machinelearning-samples — explained in plain English
Analysis updated 2026-06-26
Learn how to build a sentiment analysis feature in a C# application that classifies text as positive or negative.
Add a product or movie recommendation engine to a .NET application using the ML.NET collaborative filtering samples.
Implement image classification or object detection in a desktop or web app without leaving the .NET ecosystem.
| dotnet/machinelearning-samples | disassembler0/win10-initial-setup-script | mantvydasb/redteaming-tactics-and-techniques | |
|---|---|---|---|
| Stars | 4,683 | 4,652 | 4,590 |
| Language | PowerShell | PowerShell | PowerShell |
| Setup difficulty | easy | easy | hard |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires the .NET SDK, image classification samples may need additional model files or a GPU for training.
This repository is a collection of sample projects that show how to use ML.NET, Microsoft's machine learning framework for the .NET ecosystem. ML.NET lets C# and F# developers add AI-powered features to their applications without switching to Python or another language. The samples are organized into two types. The first type is simple console applications that each demonstrate one specific machine learning task, meant to help a developer understand how a particular technique works. The second type is complete end-to-end applications with web or desktop user interfaces, showing how a trained model fits into a real product. The scenarios covered include sentiment analysis (deciding whether a piece of text is positive or negative), spam detection, credit card fraud detection, price prediction, sales forecasting, product and movie recommendations, image classification, object detection, handwriting recognition, and more. Each sample comes with the code needed to load data, train a model, and make predictions. The samples are written for .NET developers who are new to machine learning and want a practical starting point using tools and languages they already know. Most samples are provided in both C# and F#. No prior machine learning experience is assumed, though familiarity with .NET development is expected. This repository holds only the sample code. If you encounter a bug in the ML.NET framework itself rather than in a sample, the project README directs you to file the issue in the main ML.NET repository instead.
A collection of ready-to-run ML.NET sample projects showing .NET developers how to add AI features like sentiment analysis, fraud detection, image classification, and recommendations directly in C# or F#.
Mainly PowerShell. The stack also includes C#, F#, .NET.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.