SlideShare a Scribd company logo
Machine Learning.Net and Auto ML
Bruno Capuano
Innovation Lead @Avanade
@elbruno | http://elbruno.com
@elbruno
DESKTOP CLOUDWEB MOBILE ML
.NET
IoTGAMING
Your platform for building anything
@elbruno
Windows 10 (Windows Defender)
Power Point (Design Ideas)
Excel (Chart Recommendations)
Bing Ads (Ad Predictions)
+ more
Azure Stream Analytics (Anomaly Detection)
Power BI (Key Influencers)
ML.NET is proven at scale, enterprise ready
@elbruno
Proven & Extensible
Open Source & Cross platform
dot.net/ml
Build your own
Developer Focused
ML.NET is a machine learning framework
made for .NET developers
@elbruno
And many more examples
@ https://github.com/dotnet/machinelearning-samples
Customer segmentation
Recommendations
Predictive maintenance
Forecasting
Issue Classification
Ranking news/topics
Image classification
Sentiment Analysis
Machine Learning scenarios with ML.NET
@elbruno
Easy / Less Control Full Control / Harder
Vision Speech Language
Knowledge SearchLabs
TextAnalyticsAPI client = new TextAnalyticsAPI();
client.AzureRegion = AzureRegions.Westus;
client.SubscriptionKey = "1bf33391DeadFish";
client.Sentiment(
new MultiLanguageBatchInput(
new List<MultiLanguageInput>()
{
new MultiLanguageInput("en","0",
"This is a great vacuum cleaner")
}));
e.g. Sentiment Analysis using Azure Cognitive Services
96% positive
Pre-built machine learning models
@elbruno
Easy / Less Control Full Control / Harder
TextAnalyticsAPI client = new TextAnalyticsAPI();
client.AzureRegion = AzureRegions.Westus;
client.SubscriptionKey = "1bf33391DeadFish";
client.Sentiment(
new MultiLanguageBatchInput(
new List<MultiLanguageInput>()
{
new MultiLanguageInput("en","0",
"This vacuum cleaner sucks so much dirt")
}));
e.g. Sentiment Analysis using Azure Cognitive Services
9% positive
Vision Speech Language
Knowledge SearchLabs
Limitations with pre-built machine learning models
@elbruno
Easy / Less Control Full Control / Harder
TextAnalyticsAPI client = new TextAnalyticsAPI();
client.AzureRegion = AzureRegions.Westus;
client.SubscriptionKey = "1bf33391DeadFish";
client.Sentiment(
new MultiLanguageBatchInput(
new List<MultiLanguageInput>()
{
new MultiLanguageInput("en","0",
"This vacuum cleaner sucks so much dirt")
}));
e.g. Sentiment Analysis using Azure Cognitive Services
9% positive
Vision Speech Language
Knowledge SearchLabs
Limitations with pre-built machine learning models
@elbruno
Load Data
Extract
Features
Model
Consumption
Train
Model
Evaluate
Model
Prepare Your Data Build & Train Run
Machine Leaning workflow
Global AI Night – Machine Learning.Net
Getting Started with Sentiment Analysis
@elbruno
Comment Toxic? (Sentiment)
==RUDE== Dude, you are rude … 1
== OK! == IM GOING TO VANDALIZE … 1
I also found use of the word "humanists” confusing
…
0
Oooooh thank you Mr. DietLime … 0
Wikipedia detox data at https://figshare.com/articles/Wikipedia_Talk_Labels_Personal_Attacks/4054689
Features (input) Label (output)
Sentiment Analysis
@elbruno
Is this A or B? Is this a toxic comment?
Yes or no
Sentiment analysis explained
@elbruno
Prepare Your Data
Example
Comment Toxic? (Sentiment)
==RUDE== Dude, you are rude … 1
== OK! == IM GOING TO VANDALIZE … 1
I also found use of the word "humanists” confusing … 0
Oooooh thank you Mr. DietLime … 0
Important concepts: Data
@elbruno
Prepare Your Data
Text Featurizer
Featurized Text
[0.76, 0.65, 0.44, …]
[0.98, 0.43, 0.54, …]
[0.35, 0.73, 0.46, …]
[0.39, 0, 0.75, …]
Example
Text
==RUDE== Dude, you are rude …
== OK! == IM GOING TO VANDALIZE …
I also found use of the word "humanists” …
Oooooh thank you Mr. DietLime …
Important concepts: Transformer
@elbruno
Build & Train
Example
Estimator
Comment Toxic? (Sentiment)
==RUDE== Dude, you … 1
== OK! == IM GOING … 1
I also found use of the … 0
Oooooh thank you Mr. … 0
Important concepts: Estimator
@elbruno
Comment
==RUDE== Dude, you …
Prediction Function
Predicted Label – Toxic? (Sentiment)
1
Run
Example
Important concepts: Prediction Function
@elbruno
Demo: Sentiment Analysis
MakeMagicHappen();
https://www.avanade.com/AI
Global AI Night – Machine Learning.Net
AutoML and Model Builder
@elbruno
AutoML
Model
Builder
ML.NET Tooling
ML.NET CLI global tool accelerates productivity
@elbruno
How much is the taxi fare for 1 passenger going from Burlington to Toronto?
ML.NET CLI global tool accelerates productivity
AutoML with ML.NET
@elbruno
Criterion
Loss
Min Samples Split
Min Samples Leaf
XYZ
Parameter 1
Parameter 2
Parameter 3
Parameter 4
…
Distance
Trip time
Car type
Passengers
Time of day
…
Gradient Boosted
Nearest Neighbors
SGD
Bayesian Regression
LGBM
…
Distance Gradient Boosted
Model
Car type
Passengers
Getting started w/machine learning can be hard
ML.NET takes the guess work out of data prep,
feature selection & hyperparameter tuning
Which algorithm? Which parameters?Which features?
Getting started w/machine learning can be hard
@elbruno
N Neighbors
Weights
Metric
P
ZYX
Criterion
Loss
Min Samples Split
Min Samples Leaf
XYZ
Which algorithm? Which parameters?Which features?
Distance
Trip time
Car type
Passengers
Time of day
…
Gradient Boosted
Nearest Neighbors
SGD
Bayesian Regression
LGBM
…
Nearest Neighbors
Model
Iterate
Gradient BoostedDistance
Car brand
Year of make
Car type
Passengers
Trip time
Getting started w/machine learning can be hard
ML.NET takes the guess work out of data prep,
feature selection & hyperparameter tuning
Getting started w/machine learning can be hard
@elbruno
Which algorithm? Which parameters?Which features?
Iterate
Getting started w/machine learning can be hard
ML.NET takes the guess work out of data prep,
feature selection & hyperparameter tuning
Getting started w/machine learning can be hard
@elbruno
25%40%70%
25%
95%
25% 25%
25%
25%
40%
40%
40%
40%
70%
70%
70%Enter data
Define goals
Apply constraints
Input Intelligently test multiple models in parallel
Optimized model
95%
ML.NET accelerates model development
@elbruno
70%95% Feature importance
Distance
Trip time
Car type
Passengers
Time of day
0 1
Model B (70%)
Distance
0 1
Trip time
Car type
Passengers
Time of day
Feature importance Model A (95%)
ML.NET accelerates model development
with model explainability
ML.NET accelerates model development
#insiderDevTour
# STEP 1: Load data
IDataView trainingDataView = mlContext.Data.LoadFromTextFile<TaxiTrip>( ... )
IDataView testDataView = mlContext.Data.LoadFromTextFile<TaxiTrip>( ... )
ConsoleHelper.ShowDataViewInConsole(mlContext, trainingDataView)
# STEP 2: Initialize user-defined progress handler that AutoML will invoke after each model
var progressHandler = new RegressionExperimentProgressHandler()
# STEP 3: Run AutoML regression experiment
ExperimentResult<RegressionMetrics> experimentResult = mlContext.Auto()
.CreateRegressionExperiment(ExperimentTime)
.Execute(trainingDataView, LabelColumnName, progressHandler: progressHandler)
PrintTopModels(experimentResult)
# STEP 4: Evaluate the model on test data
RunDetail<RegressionMetrics> best = experimentResult.BestRun
ITransformer trainedModel = best.Model
IDataView predictions = trainedModel.Transform(testDataView)
# STEP 5: Save trained model to a .ZIP file
mlContext.Model.Save(trainedModel, trainingDataView.Schema, ModelPath)
@elbruno
Demo: Auto ML
MakeMagicHappen();
https://www.avanade.com/AI
@elbruno
Try ML.NET today!
http://dot.net/ml
http://aka.ms/mlnetsamples
http://aka.ms/mlnetdocs
http://aka.ms/mlnet
https://aka.ms/mlnetprod
Machine Learning.Net and Auto ML
Bruno Capuano
Innovation Lead @Avanade
@elbruno | http://elbruno.com

More Related Content

PPTX
2019 09 05 Global AI Night Toronto - Machine Learning.Net
PPTX
2020 09 24 - CONDG ML.Net
PPTX
2020 04 04 NetCoreConf - Machine Learning.Net
PPTX
2020 02 29 TechDay Conf - Getting started with Machine Learning.Net
PPTX
2019 12 14 Global AI Bootcamp - Auto ML with Machine Learning.Net
PDF
Visual diagnostics at scale
PDF
The Incredible Disappearing Data Scientist
PPTX
2020 01 21 Data Platform Geeks - Machine Learning.Net
2019 09 05 Global AI Night Toronto - Machine Learning.Net
2020 09 24 - CONDG ML.Net
2020 04 04 NetCoreConf - Machine Learning.Net
2020 02 29 TechDay Conf - Getting started with Machine Learning.Net
2019 12 14 Global AI Bootcamp - Auto ML with Machine Learning.Net
Visual diagnostics at scale
The Incredible Disappearing Data Scientist
2020 01 21 Data Platform Geeks - Machine Learning.Net

Similar to 2019 12 19 Mississauga .Net User Group - Machine Learning.Net and Auto ML (20)

PPTX
2020 04 10 Catch IT - Getting started with ML.Net
PPTX
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
PPTX
2021 06 19 ms student ambassadors nigeria ml net 01 slide-share
PPTX
2020 11 19 MVP Days Israel 2020 - Introduction to Machine Learning.Net and Au...
PDF
Introduction to ML.NET
PDF
201909 Automated ML for Developers
PPTX
Machine Learning With ML.NET
PDF
201906 02 Introduction to AutoML with ML.NET 1.0
PPTX
2020 10 22 AI Fundamentals - Azure Machine Learning
PDF
Sentiment Analysis for .NET Developers using ML.net
PPTX
2018 08 01 C# Community - Introduction to Machine Learning.Net
PPTX
2019 05 23 Visual Studio 2019 Launch at mississauga - Machine Learning.Net
PPTX
Getting Started with Machine Learning.Net & Windows Machine Learning
PDF
Leverage the power of machine learning on windows
PDF
Dato Keynote
PPTX
Introducing ML.NET For Absolute Beginners - Part 1
PDF
The Data Science Process - Do we need it and how to apply?
PPTX
Machine Learning for .NET Developers - ADC21
PDF
Leverage the power of machine learning on windows
PDF
Machine learning for IoT - unpacking the blackbox
2020 04 10 Catch IT - Getting started with ML.Net
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
2021 06 19 ms student ambassadors nigeria ml net 01 slide-share
2020 11 19 MVP Days Israel 2020 - Introduction to Machine Learning.Net and Au...
Introduction to ML.NET
201909 Automated ML for Developers
Machine Learning With ML.NET
201906 02 Introduction to AutoML with ML.NET 1.0
2020 10 22 AI Fundamentals - Azure Machine Learning
Sentiment Analysis for .NET Developers using ML.net
2018 08 01 C# Community - Introduction to Machine Learning.Net
2019 05 23 Visual Studio 2019 Launch at mississauga - Machine Learning.Net
Getting Started with Machine Learning.Net & Windows Machine Learning
Leverage the power of machine learning on windows
Dato Keynote
Introducing ML.NET For Absolute Beginners - Part 1
The Data Science Process - Do we need it and how to apply?
Machine Learning for .NET Developers - ADC21
Leverage the power of machine learning on windows
Machine learning for IoT - unpacking the blackbox
Ad

More from Bruno Capuano (18)

PPTX
Let's code a drone to follow faces using Python 🐍
PPTX
Using Azure IoT to feed my squirrels ️
PPTX
2021 12 01 Global XR Conference - My experiences adapting a Digital Twin WebG...
PPTX
Global AI on Virtual Tour Oslo - Anomaly Detection using ML.Net on a drone te...
PPTX
2021 04 21 Azure Sydney User Group - Scaling a POC to an Enterprise using Azu...
PPTX
2021 02 13 CodeGen Verona - Let’s code a drone to follow faces syncing everyt...
PPTX
2020 08 06 Global XR Talks - Lessons Learned creating a multiplatform AI proj...
PPTX
2020 06 27 Global AI On Tour Virtual GTA
PPTX
2020 06 13 Best of Build 2020 - Canada Community Edition - Artificial Intelli...
PPTX
Global Azure AI Tour Buenos Aires Argentina, Drones and AI
PPTX
2020 04 18 Global AI On Tour Monterrey - Program a Drone using AI
PPTX
2020 04 09 Global AI Community Virtual Tour - Drones and AI
PPTX
2019 11 26 BotTO November 2019 Meetup at TD
PPTX
2019 10 27 Everyday Artificial Intelligence @ Hack4Heritage
PPTX
2019 05 11 Chicago Codecamp - Deep Learning for everyone? Challenge Accepted!
PPTX
2019 04 27 global azure bootcamp Machine Learning.Net
PPTX
2019 04 02 Global AI Night
PPTX
2019 02 27 How to earn an MVP Awards and what are the benefits
Let's code a drone to follow faces using Python 🐍
Using Azure IoT to feed my squirrels ️
2021 12 01 Global XR Conference - My experiences adapting a Digital Twin WebG...
Global AI on Virtual Tour Oslo - Anomaly Detection using ML.Net on a drone te...
2021 04 21 Azure Sydney User Group - Scaling a POC to an Enterprise using Azu...
2021 02 13 CodeGen Verona - Let’s code a drone to follow faces syncing everyt...
2020 08 06 Global XR Talks - Lessons Learned creating a multiplatform AI proj...
2020 06 27 Global AI On Tour Virtual GTA
2020 06 13 Best of Build 2020 - Canada Community Edition - Artificial Intelli...
Global Azure AI Tour Buenos Aires Argentina, Drones and AI
2020 04 18 Global AI On Tour Monterrey - Program a Drone using AI
2020 04 09 Global AI Community Virtual Tour - Drones and AI
2019 11 26 BotTO November 2019 Meetup at TD
2019 10 27 Everyday Artificial Intelligence @ Hack4Heritage
2019 05 11 Chicago Codecamp - Deep Learning for everyone? Challenge Accepted!
2019 04 27 global azure bootcamp Machine Learning.Net
2019 04 02 Global AI Night
2019 02 27 How to earn an MVP Awards and what are the benefits
Ad

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Big Data Technologies - Introduction.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
sap open course for s4hana steps from ECC to s4
PDF
KodekX | Application Modernization Development
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Electronic commerce courselecture one. Pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Review of recent advances in non-invasive hemoglobin estimation
Big Data Technologies - Introduction.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25 Week I
sap open course for s4hana steps from ECC to s4
KodekX | Application Modernization Development
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Network Security Unit 5.pdf for BCA BBA.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
“AI and Expert System Decision Support & Business Intelligence Systems”

2019 12 19 Mississauga .Net User Group - Machine Learning.Net and Auto ML

  • 1. Machine Learning.Net and Auto ML Bruno Capuano Innovation Lead @Avanade @elbruno | http://elbruno.com
  • 2. @elbruno DESKTOP CLOUDWEB MOBILE ML .NET IoTGAMING Your platform for building anything
  • 3. @elbruno Windows 10 (Windows Defender) Power Point (Design Ideas) Excel (Chart Recommendations) Bing Ads (Ad Predictions) + more Azure Stream Analytics (Anomaly Detection) Power BI (Key Influencers) ML.NET is proven at scale, enterprise ready
  • 4. @elbruno Proven & Extensible Open Source & Cross platform dot.net/ml Build your own Developer Focused ML.NET is a machine learning framework made for .NET developers
  • 5. @elbruno And many more examples @ https://github.com/dotnet/machinelearning-samples Customer segmentation Recommendations Predictive maintenance Forecasting Issue Classification Ranking news/topics Image classification Sentiment Analysis Machine Learning scenarios with ML.NET
  • 6. @elbruno Easy / Less Control Full Control / Harder Vision Speech Language Knowledge SearchLabs TextAnalyticsAPI client = new TextAnalyticsAPI(); client.AzureRegion = AzureRegions.Westus; client.SubscriptionKey = "1bf33391DeadFish"; client.Sentiment( new MultiLanguageBatchInput( new List<MultiLanguageInput>() { new MultiLanguageInput("en","0", "This is a great vacuum cleaner") })); e.g. Sentiment Analysis using Azure Cognitive Services 96% positive Pre-built machine learning models
  • 7. @elbruno Easy / Less Control Full Control / Harder TextAnalyticsAPI client = new TextAnalyticsAPI(); client.AzureRegion = AzureRegions.Westus; client.SubscriptionKey = "1bf33391DeadFish"; client.Sentiment( new MultiLanguageBatchInput( new List<MultiLanguageInput>() { new MultiLanguageInput("en","0", "This vacuum cleaner sucks so much dirt") })); e.g. Sentiment Analysis using Azure Cognitive Services 9% positive Vision Speech Language Knowledge SearchLabs Limitations with pre-built machine learning models
  • 8. @elbruno Easy / Less Control Full Control / Harder TextAnalyticsAPI client = new TextAnalyticsAPI(); client.AzureRegion = AzureRegions.Westus; client.SubscriptionKey = "1bf33391DeadFish"; client.Sentiment( new MultiLanguageBatchInput( new List<MultiLanguageInput>() { new MultiLanguageInput("en","0", "This vacuum cleaner sucks so much dirt") })); e.g. Sentiment Analysis using Azure Cognitive Services 9% positive Vision Speech Language Knowledge SearchLabs Limitations with pre-built machine learning models
  • 10. Global AI Night – Machine Learning.Net Getting Started with Sentiment Analysis
  • 11. @elbruno Comment Toxic? (Sentiment) ==RUDE== Dude, you are rude … 1 == OK! == IM GOING TO VANDALIZE … 1 I also found use of the word "humanists” confusing … 0 Oooooh thank you Mr. DietLime … 0 Wikipedia detox data at https://figshare.com/articles/Wikipedia_Talk_Labels_Personal_Attacks/4054689 Features (input) Label (output) Sentiment Analysis
  • 12. @elbruno Is this A or B? Is this a toxic comment? Yes or no Sentiment analysis explained
  • 13. @elbruno Prepare Your Data Example Comment Toxic? (Sentiment) ==RUDE== Dude, you are rude … 1 == OK! == IM GOING TO VANDALIZE … 1 I also found use of the word "humanists” confusing … 0 Oooooh thank you Mr. DietLime … 0 Important concepts: Data
  • 14. @elbruno Prepare Your Data Text Featurizer Featurized Text [0.76, 0.65, 0.44, …] [0.98, 0.43, 0.54, …] [0.35, 0.73, 0.46, …] [0.39, 0, 0.75, …] Example Text ==RUDE== Dude, you are rude … == OK! == IM GOING TO VANDALIZE … I also found use of the word "humanists” … Oooooh thank you Mr. DietLime … Important concepts: Transformer
  • 15. @elbruno Build & Train Example Estimator Comment Toxic? (Sentiment) ==RUDE== Dude, you … 1 == OK! == IM GOING … 1 I also found use of the … 0 Oooooh thank you Mr. … 0 Important concepts: Estimator
  • 16. @elbruno Comment ==RUDE== Dude, you … Prediction Function Predicted Label – Toxic? (Sentiment) 1 Run Example Important concepts: Prediction Function
  • 18. Global AI Night – Machine Learning.Net AutoML and Model Builder
  • 19. @elbruno AutoML Model Builder ML.NET Tooling ML.NET CLI global tool accelerates productivity
  • 20. @elbruno How much is the taxi fare for 1 passenger going from Burlington to Toronto? ML.NET CLI global tool accelerates productivity AutoML with ML.NET
  • 21. @elbruno Criterion Loss Min Samples Split Min Samples Leaf XYZ Parameter 1 Parameter 2 Parameter 3 Parameter 4 … Distance Trip time Car type Passengers Time of day … Gradient Boosted Nearest Neighbors SGD Bayesian Regression LGBM … Distance Gradient Boosted Model Car type Passengers Getting started w/machine learning can be hard ML.NET takes the guess work out of data prep, feature selection & hyperparameter tuning Which algorithm? Which parameters?Which features? Getting started w/machine learning can be hard
  • 22. @elbruno N Neighbors Weights Metric P ZYX Criterion Loss Min Samples Split Min Samples Leaf XYZ Which algorithm? Which parameters?Which features? Distance Trip time Car type Passengers Time of day … Gradient Boosted Nearest Neighbors SGD Bayesian Regression LGBM … Nearest Neighbors Model Iterate Gradient BoostedDistance Car brand Year of make Car type Passengers Trip time Getting started w/machine learning can be hard ML.NET takes the guess work out of data prep, feature selection & hyperparameter tuning Getting started w/machine learning can be hard
  • 23. @elbruno Which algorithm? Which parameters?Which features? Iterate Getting started w/machine learning can be hard ML.NET takes the guess work out of data prep, feature selection & hyperparameter tuning Getting started w/machine learning can be hard
  • 24. @elbruno 25%40%70% 25% 95% 25% 25% 25% 25% 40% 40% 40% 40% 70% 70% 70%Enter data Define goals Apply constraints Input Intelligently test multiple models in parallel Optimized model 95% ML.NET accelerates model development
  • 25. @elbruno 70%95% Feature importance Distance Trip time Car type Passengers Time of day 0 1 Model B (70%) Distance 0 1 Trip time Car type Passengers Time of day Feature importance Model A (95%) ML.NET accelerates model development with model explainability ML.NET accelerates model development
  • 26. #insiderDevTour # STEP 1: Load data IDataView trainingDataView = mlContext.Data.LoadFromTextFile<TaxiTrip>( ... ) IDataView testDataView = mlContext.Data.LoadFromTextFile<TaxiTrip>( ... ) ConsoleHelper.ShowDataViewInConsole(mlContext, trainingDataView) # STEP 2: Initialize user-defined progress handler that AutoML will invoke after each model var progressHandler = new RegressionExperimentProgressHandler() # STEP 3: Run AutoML regression experiment ExperimentResult<RegressionMetrics> experimentResult = mlContext.Auto() .CreateRegressionExperiment(ExperimentTime) .Execute(trainingDataView, LabelColumnName, progressHandler: progressHandler) PrintTopModels(experimentResult) # STEP 4: Evaluate the model on test data RunDetail<RegressionMetrics> best = experimentResult.BestRun ITransformer trainedModel = best.Model IDataView predictions = trainedModel.Transform(testDataView) # STEP 5: Save trained model to a .ZIP file mlContext.Model.Save(trainedModel, trainingDataView.Schema, ModelPath)
  • 29. Machine Learning.Net and Auto ML Bruno Capuano Innovation Lead @Avanade @elbruno | http://elbruno.com

Editor's Notes