SlideShare a Scribd company logo
Machine
Learning
With ML.NET
Getting Started With
Machine Learning for
.NET Stack Developers.
I love writing reusable components, solving technical problems for
team & Designing Architecture of solutions along with managing
projects in scrum.
Senior
Project
Manager
Braindigit IT Solutions
Application
& Database
Specialist
Nutrition Innovation Lab (USAID Project)
Senior
Software
Engineer
Bitscrafters INC
Software
Engineer
Softech Infosys
Education MSC IT (Data Science)
Masters in Business Administration
Bachelors of Computer Application
Applying Machine
Learning?
Needed for tasks that are too complex for humans to
code directly.
Machine Learning With ML.NET
Have a Problem That Needs ML?
• Classify Given Input into A or B or C
• Classification & Multi-Class Classification
• Which Marketing Campaign Brought More Customers : Win Gold or Win
Lunch Coupon
• Anomaly detection flags unexpected or unusual events or behaviors
• Fraud Detection of Credit Card
• Mail Spam Detection
• Make Numerical Predictions
• Predict Sales of Next Quarter
• Predict Whiskey Sales Looking at Temperature
Have a Problem That Needs ML?
• Understand the Structure of Data
• Clustering Algorithms
• Which Age Group Like Same Type Series
• Learn From Outcome & Decide on Other Actions
• Self Driving Car: At a yellow light, brake or accelerate?
Do you have the Data?
• Relevancy of Your Data Against your Problem.
• You Need to Find Life Expectancy%, You have series of data about their
expenses in buying Vegetables. (Irrelevant)
• You Need to Find Life Expectancy%, You have series of data about their
expenses in buying Vegetables & also you know if they were likely TOXIC.
(Relevant)
• Do you Have Enough Data?
• It Depends; No One Can Tell You
• MORE DATA ALWAYS BETTER
• You can determine Enough data using, Statistical Heuristic, Dataset Size vs
Model Skill, Domain Expertise, Analogy & Domain Expertise
Do you have the Data?
• Accuracy of the Data
• Highly Concentrated Wrong Data is Problem
• Accuracy of Data is itself a first ask since Machine Learning are Predictions,
and Predictions with wrong data would be Highly Incorrect.
• Is your Data Connected?
• Significant Amount Of Missing Data would hamper your ML
• You Should have Connected Data.
Introduction To ML.NET
Microsoft recently open sourced its machine learning
framework that is available on GitHub. ML.NET is an open
source cross-platform for machine learning for .NET
framework.
Introduction To ML.NET
• Originally developed in Microsoft, used in Windows, Bing, Azure, and
more
• The idea is to help .NET developers get in on cutting-edge ML
programming without having to learn the underlying technical
details associated with creating and tuning machine learning
models.
• Cross Platform- runs on any platform where 64 bit .NET Core or later is available
• Open Source
• Licensed Under MIT can be found in GitHub.
ML.NET Capabilities
ML Tasks
• Classification (e.g. text categorization and
sentiment analysis)
• Regression (e.g. forecasting and price
prediction)
• Clustering
Training Models
• .NET APIs for training models, using
models for predictions
• Core components of this framework,
such as learning algorithms, transforms,
and core ML data structures
Extensions or Integration
• Integration with Python
Algorithms in Ml.NET
Future RoadMap
• Additional ML Tasks and Scenarios
• Deep Learning with TensorFlow (Already Integrated in ML.NET 0.5) &
CNTK
• ONNX support
• Scale-out on Azure
• Better GUI to simplify ML tasks
• Integration with VS Tools for AI
• Language Innovation for .NET
• CNTK, Accord.NET, TensorFlow integration with one single API
Let’s Apply Some
Machine Learning
• Ask Question That has an Answer (Exact Answer)
• Apply the Right Method to Find the Answer
Problem: Taxi Fare Prediction
• Problem
• Predicting the fare of a taxi trip in New York City
• Statistical Inferencing
• regression analysis is a set of statistical processes for estimating the
relationships among variables. WIKI.
• (y=ax+b), many techniques for modeling and analyzing several variables,
when the focus is on the relationship between a dependent variable and one
or more independent variables (or 'predictors').
Solution: Taxi Fare Prediction
Load & Transform
Data
•Pipeline-Workflow to Train Your Data
•TextLoader- Load CSV Data
•ColumnCopier- Predict Values are Copied to Specified Column
•CategoricalOneHotVectorizer- transform the categorical data into numeric values
•ColumnConcatenator-combines all of the feature columns into the Features
Choosing Learning
Algorithm &
Training Model
• Regression- FastTreeRegressor learner utilizes gradient boosting. Gradient boosting is a machine learning technique for
regression problems. It builds each regression tree in a step-wise fashion. It uses a pre-defined loss function to measure
the error in each step and correct for it in the next.
Evaluate Model
• Process of checking how well the values are predicted
• RMS- measure of the differences between values predicted by a model and the values observed. The lower it is the
Better.
• Rsquared- The Closer it is to 1 it’s better. Provides a measure of how well observed outcomes are replicated by the
model, based on the proportion of total variation of outcomes explained by the model
Demo
Problem: Sentiment Analysis
• Problem
• Predict the sentiment of a new website comment, either positive or negative
• Statistical Inferencing
• Classification
• Binary or binomial classification is the task of classifying the elements of a
given set into two groups (predicting which group each one belongs to) on the
basis of a classification rule.
Solution: Sentiment Analysis
Load & Transform
Data
•Pipeline-Workflow to Train Your Data
•TextLoader-convert the SentimentText column into a numeric vector
Choosing Learning
Algorithm &
Training Model
• Binary Classification- FastTreeBinaryClassifier, Gradient boosting is a machine learning technique for regression problems,
In case of a binary classification problem, the output is converted to a probability by using some form of calibration.
Evaluate Model
• Process of checking how well the values are predicted
• Computes the quality metrics for the PredictionModel using the specified data set.
Demo
Making Right
Predictions
Making Data Right
• Get More Quality Data
• Generate More Data
• Data Cleaning
• Reframing Problem
• Transform Your Data :Gaussian
• Select Your Features Right
• Engineer Your Features
Implying the Algorithm Right
• Resampling: Use a method and configuration that makes the best use of available
data. The k-fold cross-validation method with a hold out validation dataset might
be a best practice.
• Evaluation Metric. What metric is used to evaluate the skill of predictions? Use a
metric that best captures the requirements of the problem and the domain
• Baseline Performance. What is the baseline performance for comparing
algorithms? Use a random algorithm or a zero rule algorithm (predict mean or
mode) to establish a baseline by which to rank all evaluated algorithms.
• Spot Check Linear Algorithms
• Spot Check Nonlinear Algorithms.
• Steal from Literature. What algorithms are reported in the literature
• Standard Configurations
• Try Alternatives
This is how it would look like.
https://f5blogs.wordpress.com/
https://www.linkedin.com/in/dev-raj-gautam/
Ad

More Related Content

What's hot (20)

Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
Archit Saxena
 
Introduction to Cloud computing
Introduction to Cloud computingIntroduction to Cloud computing
Introduction to Cloud computing
Melaku Bayih Demessie
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtapADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
Vikas Jagtap
 
Megastore: Providing scalable and highly available storage
Megastore: Providing scalable and highly available storageMegastore: Providing scalable and highly available storage
Megastore: Providing scalable and highly available storage
Niels Claeys
 
Introduction to Active Directory
Introduction to Active DirectoryIntroduction to Active Directory
Introduction to Active Directory
thoms1i
 
Key-Value NoSQL Database
Key-Value NoSQL DatabaseKey-Value NoSQL Database
Key-Value NoSQL Database
Heman Hosainpana
 
Intro to Big Data and NoSQL
Intro to Big Data and NoSQLIntro to Big Data and NoSQL
Intro to Big Data and NoSQL
Don Demcsak
 
Hadoop hive presentation
Hadoop hive presentationHadoop hive presentation
Hadoop hive presentation
Arvind Kumar
 
SQL server part 1
SQL server  part 1SQL server  part 1
SQL server part 1
Birhanu Dagnew Sendek
 
Multidimensional Database Design & Architecture
Multidimensional Database Design & ArchitectureMultidimensional Database Design & Architecture
Multidimensional Database Design & Architecture
hasanshan
 
Cloud service models
Cloud service modelsCloud service models
Cloud service models
Prem Sanil
 
A brief history of Azure
A brief history of AzureA brief history of Azure
A brief history of Azure
Matt Deacon
 
Database management system
Database management systemDatabase management system
Database management system
StudsPlanet.com
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
Ravi Teja
 
NoSql
NoSqlNoSql
NoSql
AnitaSenthilkumar
 
Data Models
Data ModelsData Models
Data Models
RituBhargava7
 
Multimedia db system
Multimedia db systemMultimedia db system
Multimedia db system
Yojana Nanaware
 
Distributed database
Distributed databaseDistributed database
Distributed database
ReachLocal Services India
 
Real Time Analytics for Big Data a Twitter Case Study
Real Time Analytics for Big Data a Twitter Case StudyReal Time Analytics for Big Data a Twitter Case Study
Real Time Analytics for Big Data a Twitter Case Study
Nati Shalom
 
Database basics
Database basicsDatabase basics
Database basics
prachin514
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
Archit Saxena
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtapADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
Vikas Jagtap
 
Megastore: Providing scalable and highly available storage
Megastore: Providing scalable and highly available storageMegastore: Providing scalable and highly available storage
Megastore: Providing scalable and highly available storage
Niels Claeys
 
Introduction to Active Directory
Introduction to Active DirectoryIntroduction to Active Directory
Introduction to Active Directory
thoms1i
 
Intro to Big Data and NoSQL
Intro to Big Data and NoSQLIntro to Big Data and NoSQL
Intro to Big Data and NoSQL
Don Demcsak
 
Hadoop hive presentation
Hadoop hive presentationHadoop hive presentation
Hadoop hive presentation
Arvind Kumar
 
Multidimensional Database Design & Architecture
Multidimensional Database Design & ArchitectureMultidimensional Database Design & Architecture
Multidimensional Database Design & Architecture
hasanshan
 
Cloud service models
Cloud service modelsCloud service models
Cloud service models
Prem Sanil
 
A brief history of Azure
A brief history of AzureA brief history of Azure
A brief history of Azure
Matt Deacon
 
Database management system
Database management systemDatabase management system
Database management system
StudsPlanet.com
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
Ravi Teja
 
Real Time Analytics for Big Data a Twitter Case Study
Real Time Analytics for Big Data a Twitter Case StudyReal Time Analytics for Big Data a Twitter Case Study
Real Time Analytics for Big Data a Twitter Case Study
Nati Shalom
 
Database basics
Database basicsDatabase basics
Database basics
prachin514
 

Similar to Machine Learning With ML.NET (20)

MLIntro_ADA.pptx
MLIntro_ADA.pptxMLIntro_ADA.pptx
MLIntro_ADA.pptx
ADA Consulting
 
Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...
Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...
Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...
Sri Ambati
 
Choosing a Machine Learning technique to solve your need
Choosing a Machine Learning technique to solve your needChoosing a Machine Learning technique to solve your need
Choosing a Machine Learning technique to solve your need
GibDevs
 
Machine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An IntroMachine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An Intro
Si Krishan
 
Machine learning
Machine learningMachine learning
Machine learning
Saravanan Subburayal
 
Recommender System Using AZURE ML
Recommender System Using AZURE MLRecommender System Using AZURE ML
Recommender System Using AZURE ML
Dev Raj Gautam
 
Python for Machine Learning_ A Comprehensive Overview.pptx
Python for Machine Learning_ A Comprehensive Overview.pptxPython for Machine Learning_ A Comprehensive Overview.pptx
Python for Machine Learning_ A Comprehensive Overview.pptx
KuldeepSinghBrar3
 
Azure Machine Learning Challenge_Speakers Presentation.pptx
Azure Machine Learning Challenge_Speakers Presentation.pptxAzure Machine Learning Challenge_Speakers Presentation.pptx
Azure Machine Learning Challenge_Speakers Presentation.pptx
DrSatwinderSingh3
 
The Power of Auto ML and How Does it Work
The Power of Auto ML and How Does it WorkThe Power of Auto ML and How Does it Work
The Power of Auto ML and How Does it Work
Ivo Andreev
 
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATAPREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
DotNetCampus
 
Net campus2015 antimomusone
Net campus2015 antimomusoneNet campus2015 antimomusone
Net campus2015 antimomusone
DotNetCampus
 
PL SQLDay Machine Learning- Hands on ML.NET.pptx
PL SQLDay Machine Learning- Hands on ML.NET.pptxPL SQLDay Machine Learning- Hands on ML.NET.pptx
PL SQLDay Machine Learning- Hands on ML.NET.pptx
Luis Beltran
 
Machine Learning Classifiers
Machine Learning ClassifiersMachine Learning Classifiers
Machine Learning Classifiers
Mostafa
 
Azure Machine Learning
Azure Machine LearningAzure Machine Learning
Azure Machine Learning
Mostafa
 
Machine learning at scale - Webinar By zekeLabs
Machine learning at scale - Webinar By zekeLabsMachine learning at scale - Webinar By zekeLabs
Machine learning at scale - Webinar By zekeLabs
zekeLabs Technologies
 
Driving Digital Transformation with Machine Learning in Oracle Analytics
Driving Digital Transformation with Machine Learning in Oracle AnalyticsDriving Digital Transformation with Machine Learning in Oracle Analytics
Driving Digital Transformation with Machine Learning in Oracle Analytics
Perficient, Inc.
 
From c# Into Machine Learning
From c# Into Machine LearningFrom c# Into Machine Learning
From c# Into Machine Learning
Dev Raj Gautam
 
Design Like a Pro: Machine Learning Basics
Design Like a Pro: Machine Learning BasicsDesign Like a Pro: Machine Learning Basics
Design Like a Pro: Machine Learning Basics
Inductive Automation
 
Building High Available and Scalable Machine Learning Applications
Building High Available and Scalable Machine Learning ApplicationsBuilding High Available and Scalable Machine Learning Applications
Building High Available and Scalable Machine Learning Applications
Yalçın Yenigün
 
BMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist DeckBMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist Deck
Sasha Lazarevic
 
Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...
Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...
Design Patterns for Machine Learning in Production - Sergei Izrailev, Chief D...
Sri Ambati
 
Choosing a Machine Learning technique to solve your need
Choosing a Machine Learning technique to solve your needChoosing a Machine Learning technique to solve your need
Choosing a Machine Learning technique to solve your need
GibDevs
 
Machine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An IntroMachine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An Intro
Si Krishan
 
Recommender System Using AZURE ML
Recommender System Using AZURE MLRecommender System Using AZURE ML
Recommender System Using AZURE ML
Dev Raj Gautam
 
Python for Machine Learning_ A Comprehensive Overview.pptx
Python for Machine Learning_ A Comprehensive Overview.pptxPython for Machine Learning_ A Comprehensive Overview.pptx
Python for Machine Learning_ A Comprehensive Overview.pptx
KuldeepSinghBrar3
 
Azure Machine Learning Challenge_Speakers Presentation.pptx
Azure Machine Learning Challenge_Speakers Presentation.pptxAzure Machine Learning Challenge_Speakers Presentation.pptx
Azure Machine Learning Challenge_Speakers Presentation.pptx
DrSatwinderSingh3
 
The Power of Auto ML and How Does it Work
The Power of Auto ML and How Does it WorkThe Power of Auto ML and How Does it Work
The Power of Auto ML and How Does it Work
Ivo Andreev
 
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATAPREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
PREDICT THE FUTURE , MACHINE LEARNING & BIG DATA
DotNetCampus
 
Net campus2015 antimomusone
Net campus2015 antimomusoneNet campus2015 antimomusone
Net campus2015 antimomusone
DotNetCampus
 
PL SQLDay Machine Learning- Hands on ML.NET.pptx
PL SQLDay Machine Learning- Hands on ML.NET.pptxPL SQLDay Machine Learning- Hands on ML.NET.pptx
PL SQLDay Machine Learning- Hands on ML.NET.pptx
Luis Beltran
 
Machine Learning Classifiers
Machine Learning ClassifiersMachine Learning Classifiers
Machine Learning Classifiers
Mostafa
 
Azure Machine Learning
Azure Machine LearningAzure Machine Learning
Azure Machine Learning
Mostafa
 
Machine learning at scale - Webinar By zekeLabs
Machine learning at scale - Webinar By zekeLabsMachine learning at scale - Webinar By zekeLabs
Machine learning at scale - Webinar By zekeLabs
zekeLabs Technologies
 
Driving Digital Transformation with Machine Learning in Oracle Analytics
Driving Digital Transformation with Machine Learning in Oracle AnalyticsDriving Digital Transformation with Machine Learning in Oracle Analytics
Driving Digital Transformation with Machine Learning in Oracle Analytics
Perficient, Inc.
 
From c# Into Machine Learning
From c# Into Machine LearningFrom c# Into Machine Learning
From c# Into Machine Learning
Dev Raj Gautam
 
Design Like a Pro: Machine Learning Basics
Design Like a Pro: Machine Learning BasicsDesign Like a Pro: Machine Learning Basics
Design Like a Pro: Machine Learning Basics
Inductive Automation
 
Building High Available and Scalable Machine Learning Applications
Building High Available and Scalable Machine Learning ApplicationsBuilding High Available and Scalable Machine Learning Applications
Building High Available and Scalable Machine Learning Applications
Yalçın Yenigün
 
BMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist DeckBMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist Deck
Sasha Lazarevic
 
Ad

More from Dev Raj Gautam (6)

RED’S, GREEN’S & BLUE’S OF PROJECT/PRODUCT MANAGEMENT
RED’S, GREEN’S & BLUE’S  OF  PROJECT/PRODUCT MANAGEMENTRED’S, GREEN’S & BLUE’S  OF  PROJECT/PRODUCT MANAGEMENT
RED’S, GREEN’S & BLUE’S OF PROJECT/PRODUCT MANAGEMENT
Dev Raj Gautam
 
Making machinelearningeasier
Making machinelearningeasierMaking machinelearningeasier
Making machinelearningeasier
Dev Raj Gautam
 
Intelligent bots
Intelligent botsIntelligent bots
Intelligent bots
Dev Raj Gautam
 
ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines  ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
 
DotNet programming & Practices
DotNet programming & PracticesDotNet programming & Practices
DotNet programming & Practices
Dev Raj Gautam
 
SOA & WCF
SOA & WCFSOA & WCF
SOA & WCF
Dev Raj Gautam
 
RED’S, GREEN’S & BLUE’S OF PROJECT/PRODUCT MANAGEMENT
RED’S, GREEN’S & BLUE’S  OF  PROJECT/PRODUCT MANAGEMENTRED’S, GREEN’S & BLUE’S  OF  PROJECT/PRODUCT MANAGEMENT
RED’S, GREEN’S & BLUE’S OF PROJECT/PRODUCT MANAGEMENT
Dev Raj Gautam
 
Making machinelearningeasier
Making machinelearningeasierMaking machinelearningeasier
Making machinelearningeasier
Dev Raj Gautam
 
ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines  ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
 
DotNet programming & Practices
DotNet programming & PracticesDotNet programming & Practices
DotNet programming & Practices
Dev Raj Gautam
 
Ad

Recently uploaded (20)

SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 

Machine Learning With ML.NET

  • 1. Machine Learning With ML.NET Getting Started With Machine Learning for .NET Stack Developers.
  • 2. I love writing reusable components, solving technical problems for team & Designing Architecture of solutions along with managing projects in scrum. Senior Project Manager Braindigit IT Solutions Application & Database Specialist Nutrition Innovation Lab (USAID Project) Senior Software Engineer Bitscrafters INC Software Engineer Softech Infosys Education MSC IT (Data Science) Masters in Business Administration Bachelors of Computer Application
  • 3. Applying Machine Learning? Needed for tasks that are too complex for humans to code directly.
  • 5. Have a Problem That Needs ML? • Classify Given Input into A or B or C • Classification & Multi-Class Classification • Which Marketing Campaign Brought More Customers : Win Gold or Win Lunch Coupon • Anomaly detection flags unexpected or unusual events or behaviors • Fraud Detection of Credit Card • Mail Spam Detection • Make Numerical Predictions • Predict Sales of Next Quarter • Predict Whiskey Sales Looking at Temperature
  • 6. Have a Problem That Needs ML? • Understand the Structure of Data • Clustering Algorithms • Which Age Group Like Same Type Series • Learn From Outcome & Decide on Other Actions • Self Driving Car: At a yellow light, brake or accelerate?
  • 7. Do you have the Data? • Relevancy of Your Data Against your Problem. • You Need to Find Life Expectancy%, You have series of data about their expenses in buying Vegetables. (Irrelevant) • You Need to Find Life Expectancy%, You have series of data about their expenses in buying Vegetables & also you know if they were likely TOXIC. (Relevant) • Do you Have Enough Data? • It Depends; No One Can Tell You • MORE DATA ALWAYS BETTER • You can determine Enough data using, Statistical Heuristic, Dataset Size vs Model Skill, Domain Expertise, Analogy & Domain Expertise
  • 8. Do you have the Data? • Accuracy of the Data • Highly Concentrated Wrong Data is Problem • Accuracy of Data is itself a first ask since Machine Learning are Predictions, and Predictions with wrong data would be Highly Incorrect. • Is your Data Connected? • Significant Amount Of Missing Data would hamper your ML • You Should have Connected Data.
  • 9. Introduction To ML.NET Microsoft recently open sourced its machine learning framework that is available on GitHub. ML.NET is an open source cross-platform for machine learning for .NET framework.
  • 10. Introduction To ML.NET • Originally developed in Microsoft, used in Windows, Bing, Azure, and more • The idea is to help .NET developers get in on cutting-edge ML programming without having to learn the underlying technical details associated with creating and tuning machine learning models. • Cross Platform- runs on any platform where 64 bit .NET Core or later is available • Open Source • Licensed Under MIT can be found in GitHub.
  • 11. ML.NET Capabilities ML Tasks • Classification (e.g. text categorization and sentiment analysis) • Regression (e.g. forecasting and price prediction) • Clustering Training Models • .NET APIs for training models, using models for predictions • Core components of this framework, such as learning algorithms, transforms, and core ML data structures Extensions or Integration • Integration with Python
  • 13. Future RoadMap • Additional ML Tasks and Scenarios • Deep Learning with TensorFlow (Already Integrated in ML.NET 0.5) & CNTK • ONNX support • Scale-out on Azure • Better GUI to simplify ML tasks • Integration with VS Tools for AI • Language Innovation for .NET • CNTK, Accord.NET, TensorFlow integration with one single API
  • 14. Let’s Apply Some Machine Learning • Ask Question That has an Answer (Exact Answer) • Apply the Right Method to Find the Answer
  • 15. Problem: Taxi Fare Prediction • Problem • Predicting the fare of a taxi trip in New York City • Statistical Inferencing • regression analysis is a set of statistical processes for estimating the relationships among variables. WIKI. • (y=ax+b), many techniques for modeling and analyzing several variables, when the focus is on the relationship between a dependent variable and one or more independent variables (or 'predictors').
  • 16. Solution: Taxi Fare Prediction Load & Transform Data •Pipeline-Workflow to Train Your Data •TextLoader- Load CSV Data •ColumnCopier- Predict Values are Copied to Specified Column •CategoricalOneHotVectorizer- transform the categorical data into numeric values •ColumnConcatenator-combines all of the feature columns into the Features Choosing Learning Algorithm & Training Model • Regression- FastTreeRegressor learner utilizes gradient boosting. Gradient boosting is a machine learning technique for regression problems. It builds each regression tree in a step-wise fashion. It uses a pre-defined loss function to measure the error in each step and correct for it in the next. Evaluate Model • Process of checking how well the values are predicted • RMS- measure of the differences between values predicted by a model and the values observed. The lower it is the Better. • Rsquared- The Closer it is to 1 it’s better. Provides a measure of how well observed outcomes are replicated by the model, based on the proportion of total variation of outcomes explained by the model
  • 17. Demo
  • 18. Problem: Sentiment Analysis • Problem • Predict the sentiment of a new website comment, either positive or negative • Statistical Inferencing • Classification • Binary or binomial classification is the task of classifying the elements of a given set into two groups (predicting which group each one belongs to) on the basis of a classification rule.
  • 19. Solution: Sentiment Analysis Load & Transform Data •Pipeline-Workflow to Train Your Data •TextLoader-convert the SentimentText column into a numeric vector Choosing Learning Algorithm & Training Model • Binary Classification- FastTreeBinaryClassifier, Gradient boosting is a machine learning technique for regression problems, In case of a binary classification problem, the output is converted to a probability by using some form of calibration. Evaluate Model • Process of checking how well the values are predicted • Computes the quality metrics for the PredictionModel using the specified data set.
  • 20. Demo
  • 22. Making Data Right • Get More Quality Data • Generate More Data • Data Cleaning • Reframing Problem • Transform Your Data :Gaussian • Select Your Features Right • Engineer Your Features
  • 23. Implying the Algorithm Right • Resampling: Use a method and configuration that makes the best use of available data. The k-fold cross-validation method with a hold out validation dataset might be a best practice. • Evaluation Metric. What metric is used to evaluate the skill of predictions? Use a metric that best captures the requirements of the problem and the domain • Baseline Performance. What is the baseline performance for comparing algorithms? Use a random algorithm or a zero rule algorithm (predict mean or mode) to establish a baseline by which to rank all evaluated algorithms. • Spot Check Linear Algorithms • Spot Check Nonlinear Algorithms. • Steal from Literature. What algorithms are reported in the literature • Standard Configurations • Try Alternatives
  • 24. This is how it would look like.