SlideShare a Scribd company logo
1 of 8
Machine Learning .NetWorkshop – Singapore Polytechnics
1. Open your Visual Studio 2017.
2. Go File > New Project
3. Select Console App and Name of your application. Lastly, Click OK.
4. Go to your Solution , Right Click and Select Manage Nuget Packages.
5. Browse and Search for Microsoft.ML and Click Install.
6. Back to Solutions file, right click > Add > New Folder and Name the
Folder as “Data”.
7. Download the Data from My GitHub “custTrain.csv”and put into the
custTrain.csv
8. Select “custTrain.csv” and Select Properties. In the Copyto Output
Directory, Select “CopyAlways”.
9. Right Click your solution file again > Add > New Item > Select “Class”
& name the class as “CustData.cs”. and lastly paste the sourcecodeas
below.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.ML.Runtime.Api;
namespace MLClustering
{
class CustData
{
[Column("0")]
public float Male;
[Column("1")]
public float Female;
[Column("2")]
public float Before2010;
[Column("3")]
public float After2010;
}
public class ClusterPrediction
{
[ColumnName("PredictedLabel")]
public uint PredictedCustId;
[ColumnName("Score")]
public float[] Distancessdfsd;
}
}
10. Go to “Program.cs”and replace the codeas below.
using Microsoft.ML.Legacy;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.ML.Legacy.Data;
using Microsoft.ML.Legacy.Trainers;
using Microsoft.ML.Legacy.Transforms;
using MLClustering;
namespace SPMLnet
{
class Program
{
static readonly string _dataPath =
Path.Combine(Environment.CurrentDirectory, "Data", "custTrain.csv");
static readonly string _modelPath =
Path.Combine(Environment.CurrentDirectory, "Data", "custClusteringModel.zip");
static async Task Main(string[] args)
{
PredictionModel<CustData, ClusterPrediction> model = await Train();
var prediction = model.Predict(TestCustData.PredictionObj);
Console.WriteLine($"Cluster: {prediction.PredictedCustId}");
Console.WriteLine($"Distances: {string.Join(" ",
prediction.Distancessdfsd)}");
Console.ReadLine();
}
public static async Task<PredictionModel<CustData, ClusterPrediction>>
Train()
{
// Start Learning
var pipeline = new LearningPipeline();
// Load Train Data
pipeline.Add(new TextLoader(_dataPath).CreateFrom<CustData>(useHeader:
true, separator: ','));
// </Snippet6>
// Add Features columns
pipeline.Add(new ColumnConcatenator(
"Features",
"Male",
"Female",
"Before2010",
"After2010"));
// Add KMeansPlus Algorithm for k=3 (We have 3 set of clusters)
pipeline.Add(new KMeansPlusPlusClusterer() { K = 3 });
// Start Training the model and return the model
var model = pipeline.Train<CustData, ClusterPrediction>();
return model;
}
}
}
11.Right Click your solution file again > Add > New Item > Select “Class”
& name the class as “TestCustData.cs”. and lastly paste the sourcecodeas
below.
using MLClustering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SPMLnet
{
static class TestCustData
{
internal static readonly CustData PredictionObj = new CustData
{
Male = 300f,
Female = 100f,
Before2010 = 400f,
After2010 = 1400f
};
}
}
12.Right Click your solutions file and Select “Properties”> go to Build
Tab > change the Platform target to “x64”.
13.Scroll to the bottom and click Advanced. Change the Language version to
“C# 7.1”.
14. Press “F5” for Debug the solutions. The results shown as below.
References:
https://www.c-sharpcorner.com/article/getting-started-with-machine-
learning-net-for-clustering-model/
For other tutorial , you can refer to https://www.c-
sharpcorner.com/article/getting-started-with-machine-learning-dotnet-ml-
net/

More Related Content

More from Cheah Eng Soon

Microsoft Threat Protection Automated Incident Response Demo
Microsoft Threat Protection Automated Incident Response DemoMicrosoft Threat Protection Automated Incident Response Demo
Microsoft Threat Protection Automated Incident Response DemoCheah Eng Soon
 
Microsoft Secure Score Demo
Microsoft Secure Score DemoMicrosoft Secure Score Demo
Microsoft Secure Score DemoCheah Eng Soon
 
Microsoft Cloud App Security Demo
Microsoft Cloud App Security DemoMicrosoft Cloud App Security Demo
Microsoft Cloud App Security DemoCheah Eng Soon
 
M365 Attack Simulation Demo
M365 Attack Simulation DemoM365 Attack Simulation Demo
M365 Attack Simulation DemoCheah Eng Soon
 
Azure Active Directory - External Identities Demo
Azure Active Directory - External Identities Demo Azure Active Directory - External Identities Demo
Azure Active Directory - External Identities Demo Cheah Eng Soon
 
Azure Weekend 2020 Build Malaysia Bus Uncle Chatbot
Azure Weekend 2020 Build Malaysia Bus Uncle ChatbotAzure Weekend 2020 Build Malaysia Bus Uncle Chatbot
Azure Weekend 2020 Build Malaysia Bus Uncle ChatbotCheah Eng Soon
 
Microsoft Azure的20大常见安全漏洞与配置错误
Microsoft Azure的20大常见安全漏洞与配置错误Microsoft Azure的20大常见安全漏洞与配置错误
Microsoft Azure的20大常见安全漏洞与配置错误Cheah Eng Soon
 
20 common security vulnerabilities and misconfiguration in Azure
20 common security vulnerabilities and misconfiguration in Azure20 common security vulnerabilities and misconfiguration in Azure
20 common security vulnerabilities and misconfiguration in AzureCheah Eng Soon
 
Integrate Microsoft Graph with Azure Bot Services
Integrate Microsoft Graph with Azure Bot ServicesIntegrate Microsoft Graph with Azure Bot Services
Integrate Microsoft Graph with Azure Bot ServicesCheah Eng Soon
 
Azure Sentinel with Office 365
Azure Sentinel with Office 365Azure Sentinel with Office 365
Azure Sentinel with Office 365Cheah Eng Soon
 
3 Steps Integrate Microsoft Graph with Azure Bot Services
3 Steps Integrate Microsoft Graph with Azure Bot Services3 Steps Integrate Microsoft Graph with Azure Bot Services
3 Steps Integrate Microsoft Graph with Azure Bot ServicesCheah Eng Soon
 
Data Science - The Most Profitable Movie Characteristic
Data Science -  The Most Profitable Movie CharacteristicData Science -  The Most Profitable Movie Characteristic
Data Science - The Most Profitable Movie CharacteristicCheah Eng Soon
 
Modernize your Security Operations with Azure Sentinel
Modernize your Security Operations with Azure SentinelModernize your Security Operations with Azure Sentinel
Modernize your Security Operations with Azure SentinelCheah Eng Soon
 
Start Building Machine Learning Models Faster Than You Think
Start Building Machine Learning Models Faster Than You ThinkStart Building Machine Learning Models Faster Than You Think
Start Building Machine Learning Models Faster Than You ThinkCheah Eng Soon
 
Fast Track: Azure Certification Exam
Fast Track: Azure Certification ExamFast Track: Azure Certification Exam
Fast Track: Azure Certification ExamCheah Eng Soon
 
MITT Singapore - Journey to Azure Sentinel
MITT Singapore - Journey to Azure SentinelMITT Singapore - Journey to Azure Sentinel
MITT Singapore - Journey to Azure SentinelCheah Eng Soon
 

More from Cheah Eng Soon (20)

Microsoft Threat Protection Automated Incident Response Demo
Microsoft Threat Protection Automated Incident Response DemoMicrosoft Threat Protection Automated Incident Response Demo
Microsoft Threat Protection Automated Incident Response Demo
 
Microsoft Secure Score Demo
Microsoft Secure Score DemoMicrosoft Secure Score Demo
Microsoft Secure Score Demo
 
Microsoft Cloud App Security Demo
Microsoft Cloud App Security DemoMicrosoft Cloud App Security Demo
Microsoft Cloud App Security Demo
 
M365 Attack Simulation Demo
M365 Attack Simulation DemoM365 Attack Simulation Demo
M365 Attack Simulation Demo
 
Cloud Security Demo
Cloud Security DemoCloud Security Demo
Cloud Security Demo
 
Azure Active Directory - External Identities Demo
Azure Active Directory - External Identities Demo Azure Active Directory - External Identities Demo
Azure Active Directory - External Identities Demo
 
Azure WAF
Azure WAFAzure WAF
Azure WAF
 
Azure Weekend 2020 Build Malaysia Bus Uncle Chatbot
Azure Weekend 2020 Build Malaysia Bus Uncle ChatbotAzure Weekend 2020 Build Malaysia Bus Uncle Chatbot
Azure Weekend 2020 Build Malaysia Bus Uncle Chatbot
 
Microsoft Azure的20大常见安全漏洞与配置错误
Microsoft Azure的20大常见安全漏洞与配置错误Microsoft Azure的20大常见安全漏洞与配置错误
Microsoft Azure的20大常见安全漏洞与配置错误
 
20 common security vulnerabilities and misconfiguration in Azure
20 common security vulnerabilities and misconfiguration in Azure20 common security vulnerabilities and misconfiguration in Azure
20 common security vulnerabilities and misconfiguration in Azure
 
Integrate Microsoft Graph with Azure Bot Services
Integrate Microsoft Graph with Azure Bot ServicesIntegrate Microsoft Graph with Azure Bot Services
Integrate Microsoft Graph with Azure Bot Services
 
Azure Sentinel with Office 365
Azure Sentinel with Office 365Azure Sentinel with Office 365
Azure Sentinel with Office 365
 
3 Steps Integrate Microsoft Graph with Azure Bot Services
3 Steps Integrate Microsoft Graph with Azure Bot Services3 Steps Integrate Microsoft Graph with Azure Bot Services
3 Steps Integrate Microsoft Graph with Azure Bot Services
 
Data Science - The Most Profitable Movie Characteristic
Data Science -  The Most Profitable Movie CharacteristicData Science -  The Most Profitable Movie Characteristic
Data Science - The Most Profitable Movie Characteristic
 
Modernize your Security Operations with Azure Sentinel
Modernize your Security Operations with Azure SentinelModernize your Security Operations with Azure Sentinel
Modernize your Security Operations with Azure Sentinel
 
Azure Sentinel
Azure SentinelAzure Sentinel
Azure Sentinel
 
Start Building Machine Learning Models Faster Than You Think
Start Building Machine Learning Models Faster Than You ThinkStart Building Machine Learning Models Faster Than You Think
Start Building Machine Learning Models Faster Than You Think
 
Power Apps Connector
Power Apps ConnectorPower Apps Connector
Power Apps Connector
 
Fast Track: Azure Certification Exam
Fast Track: Azure Certification ExamFast Track: Azure Certification Exam
Fast Track: Azure Certification Exam
 
MITT Singapore - Journey to Azure Sentinel
MITT Singapore - Journey to Azure SentinelMITT Singapore - Journey to Azure Sentinel
MITT Singapore - Journey to Azure Sentinel
 

Recently uploaded

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 

Recently uploaded (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

ML.Net tutorial

  • 1. Machine Learning .NetWorkshop – Singapore Polytechnics 1. Open your Visual Studio 2017. 2. Go File > New Project 3. Select Console App and Name of your application. Lastly, Click OK. 4. Go to your Solution , Right Click and Select Manage Nuget Packages.
  • 2. 5. Browse and Search for Microsoft.ML and Click Install. 6. Back to Solutions file, right click > Add > New Folder and Name the Folder as “Data”.
  • 3. 7. Download the Data from My GitHub “custTrain.csv”and put into the custTrain.csv 8. Select “custTrain.csv” and Select Properties. In the Copyto Output Directory, Select “CopyAlways”.
  • 4. 9. Right Click your solution file again > Add > New Item > Select “Class” & name the class as “CustData.cs”. and lastly paste the sourcecodeas below. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.ML.Runtime.Api; namespace MLClustering { class CustData { [Column("0")] public float Male; [Column("1")]
  • 5. public float Female; [Column("2")] public float Before2010; [Column("3")] public float After2010; } public class ClusterPrediction { [ColumnName("PredictedLabel")] public uint PredictedCustId; [ColumnName("Score")] public float[] Distancessdfsd; } } 10. Go to “Program.cs”and replace the codeas below. using Microsoft.ML.Legacy; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.ML.Legacy.Data; using Microsoft.ML.Legacy.Trainers; using Microsoft.ML.Legacy.Transforms; using MLClustering; namespace SPMLnet { class Program { static readonly string _dataPath = Path.Combine(Environment.CurrentDirectory, "Data", "custTrain.csv");
  • 6. static readonly string _modelPath = Path.Combine(Environment.CurrentDirectory, "Data", "custClusteringModel.zip"); static async Task Main(string[] args) { PredictionModel<CustData, ClusterPrediction> model = await Train(); var prediction = model.Predict(TestCustData.PredictionObj); Console.WriteLine($"Cluster: {prediction.PredictedCustId}"); Console.WriteLine($"Distances: {string.Join(" ", prediction.Distancessdfsd)}"); Console.ReadLine(); } public static async Task<PredictionModel<CustData, ClusterPrediction>> Train() { // Start Learning var pipeline = new LearningPipeline(); // Load Train Data pipeline.Add(new TextLoader(_dataPath).CreateFrom<CustData>(useHeader: true, separator: ',')); // </Snippet6> // Add Features columns pipeline.Add(new ColumnConcatenator( "Features", "Male", "Female", "Before2010", "After2010")); // Add KMeansPlus Algorithm for k=3 (We have 3 set of clusters) pipeline.Add(new KMeansPlusPlusClusterer() { K = 3 }); // Start Training the model and return the model var model = pipeline.Train<CustData, ClusterPrediction>(); return model; } } } 11.Right Click your solution file again > Add > New Item > Select “Class” & name the class as “TestCustData.cs”. and lastly paste the sourcecodeas below. using MLClustering; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SPMLnet {
  • 7. static class TestCustData { internal static readonly CustData PredictionObj = new CustData { Male = 300f, Female = 100f, Before2010 = 400f, After2010 = 1400f }; } } 12.Right Click your solutions file and Select “Properties”> go to Build Tab > change the Platform target to “x64”. 13.Scroll to the bottom and click Advanced. Change the Language version to “C# 7.1”.
  • 8. 14. Press “F5” for Debug the solutions. The results shown as below. References: https://www.c-sharpcorner.com/article/getting-started-with-machine- learning-net-for-clustering-model/ For other tutorial , you can refer to https://www.c- sharpcorner.com/article/getting-started-with-machine-learning-dotnet-ml- net/