> Markdown version of [/videos/272-machine-learning-in-ml-net?t=3](https://www.wearedevelopers.com/videos/272-machine-learning-in-ml-net?t=3). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Machine Learning in ML.NET Stop treating machine learning as a siloed system. ML.NET lets developers package AI models as familiar NuGet dependencies, enabling continuous training loops alongside standard .NET code. - **Speakers:** Marco Zamana - **Event:** WeAreDevelopers LIVE - **Published:** October 27, 2021 - **Duration:** 1:11:20 - **URL:** https://www.wearedevelopers.com/videos/272-machine-learning-in-ml-net ## Summary ML.NET bridges the gap between machine learning and .NET development, allowing software engineers to integrate AI capabilities directly into web, desktop, and microservice applications. Through an open-source, cross-platform architecture, the framework empowers teams to package ML models as familiar NuGet dependencies rather than standalone, siloed systems. This native integration shifts the MLOps paradigm, prioritizing the philosophy that "the model must be improved everywhere, every time." By treating model consumption as standard software dependency management, developers can build continuous CI/CD training loops, structured model evaluation, and automated deployment pipelines directly alongside robust application code. Building reliable ML.NET architectures means mastering core pipeline principles centered around the MLContext class and IDataView interfaces, which handle data loading, transformation, and structural algorithms. Teams can approach model creation through multiple distinct pathways, exploring programmatic APIs in C#, rapid evaluation via the CLI, or automated code generation using the Model Builder UI in Visual Studio. Practical baseline workflows easily manage operations like binary classification for sentiment analysis, but for developers actively wanting to master the framework's expansive analytical capabilities, reviewing the repository's open-source unit tests offers the sharpest architectural context for deploying complex data transforms. The framework's architecture natively supports extending functionality to pre-trained architectures from specialized ecosystems like Azure Custom Vision or TensorFlow. By externally training extensive object detection datasets and exporting them to standard ONNX files, developers can embed complex neural visual models straight into ML.NET evaluation routines. Integrating these external AI capabilities requires significant precision in diagnostic configuration, demanding strict adherence to input constraints like image dimension resizing and output mapping. Moreover, properly calibrating probability threshold tuning is what ultimately separates unhelpful anomaly alerts from reliable object detection performance in production environments. **Keywords:** ML.NET application integration, C# machine learning pipelines, visual studio model builder, idataview data structures, MLContext evaluation workflows, ONNX model compatibility, azure custom vision exports, object detection accuracy, probability threshold tuning, sentiment analysis classification, MLOps continuous iteration, nuget library management, cross-platform AI execution, data transformation parsing, neural network prediction engines ## Chapters 1. **Overview of ML.NET for .NET developers** (00:03) — How .NET developers can build intelligent applications natively using the open-source, cross-platform ML.NET framework. 1. **Different methods for utilizing ML.NET tools** (02:52) — How developers can consume ML.NET via the API, command-line interface, or Visual Studio Model Builder. 1. **Core components and model extension capabilities** (04:26) — Core components like IDataView, transformers, and extension libraries enable seamless model training and ONNX or TensorFlow consumption. 1. **Understanding the machine learning building workflow** (06:34) — Standardizing the machine learning workflow requires continuous data preparation, model training loops, and scalable prediction engines. 1. **Using ML.NET CLI and MLOps principles** (09:00) — Integrating the ML.NET CLI for rapid training into continuous delivery pipelines ensures models remain accurate through automated retraining. 1. **Binary classification with Visual Studio Model Builder** (17:25) — Accelerating binary classification tasks by training a sentiment analysis model directly within Visual Studio using Model Builder. 1. **Evaluating and integrating the generated model artifacts** (28:45) — Evaluating the trained model's accuracy and scaffolding a web API solution facilitates rapid downstream consumer integration. 1. **Training object detection with Azure Custom Vision** (31:28) — Leveraging Azure Custom Vision to upload images, tag subjects, and iterate on object detection algorithms. 1. **Exporting and evaluating learned ONNX models** (37:37) — Exporting a trained model in ONNX format and inspecting its required tensor inputs using Netron prepares it for backend integration. 1. **Integrating an ONNX model in a console application** (42:25) — Solving custom offline object detection by configuring an inference pipeline and executing the ONNX model within a C# console application. 1. **Audience Q&A on datasets and algorithm selection** (63:09) — Guidance on navigating optimal dataset sizes, learning foundational machine learning concepts, and selecting appropriate algorithms. ## Related Moments - [Building machine learning workflows with the ML.NET framework](https://www.wearedevelopers.com/videos/701-vikings-language-the-speech-of-the-king-vasa-or-today-s-swedish-text-classification-with-ml-net) (from "Vikings language, the speech of the king Vasa or today's Swedish? Text classification with ML.NET.") - [Navigating the components of Azure Machine Learning platform](https://www.wearedevelopers.com/videos/368-introduction-to-azure-machine-learning) (from "Introduction to Azure Machine Learning") - [Implementing machine learning with Core ML and Vision](https://www.wearedevelopers.com/videos/1515-harnessing-apple-intelligence-live-coding-with-swift-for-ios) (from "Harnessing Apple Intelligence: Live Coding with Swift for iOS") - [Question and answer on predictions, tooling, and datasets](https://www.wearedevelopers.com/videos/701-vikings-language-the-speech-of-the-king-vasa-or-today-s-swedish-text-classification-with-ml-net) (from "Vikings language, the speech of the king Vasa or today's Swedish? Text classification with ML.NET.") - [Open-source community and machine learning frameworks](https://www.wearedevelopers.com/videos/1420-mobile-ai-just-got-faster-what-s-coming-for-developers-on-arm) (from "Mobile AI Just Got Faster: What’s Coming for Developers on Arm") - [Training and fine-tuning models natively using MLX](https://www.wearedevelopers.com/videos/1515-harnessing-apple-intelligence-live-coding-with-swift-for-ios) (from "Harnessing Apple Intelligence: Live Coding with Swift for iOS") ## Related Articles - [MLops – Deploying, Maintaining And Evolving Machine Learning Models in Production](https://www.wearedevelopers.com/magazine/115-mlops-deploying-maintaining-and-evolving-machine-learning-models-in-production) - [MLOps – What’s the deal behind it?](https://www.wearedevelopers.com/magazine/125-mlops-what-s-the-deal-behind-it) - [MLOps And AI Driven Development](https://www.wearedevelopers.com/magazine/82-mlops-and-ai-driven-development) - [Stephan Gillich - Bringing AI Everywhere](https://www.wearedevelopers.com/magazine/489-stephan-gillich-bringing-ai-everywhere) ## Related Jobs - [Machine Learning Engineer](https://www.wearedevelopers.com/jobs/ext/1597388-machine-learning-engineer) at **ZEISS Group** - [Machine Learning Engineer](https://www.wearedevelopers.com/jobs/ext/588393-machine-learning-engineer) at **Twilio** - [Machine Learning Engineer](https://www.wearedevelopers.com/jobs/ext/1355348-machine-learning-engineer) at **TWILIO** - [Staff, Machine Learning Engineer (L4)](https://www.wearedevelopers.com/jobs/ext/1202639-staff-machine-learning-engineer-l4) at **Twilio** - [Principal Software Engineer, Enterprise AI Platform](https://www.wearedevelopers.com/jobs/ext/1467292-principal-software-engineer-enterprise-ai-platform) at **GitHub** - [Machine Learning Engineer](https://www.wearedevelopers.com/jobs/ext/1377841-machine-learning-engineer) at **Almedia**