diff --git a/machine-learning/tutorials/IrisClustering.sln b/machine-learning/tutorials/IrisClustering.sln deleted file mode 100644 index fc02d696c46..00000000000 --- a/machine-learning/tutorials/IrisClustering.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27703.2035 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IrisClustering", "IrisClustering\IrisClustering.csproj", "{626364D7-6F00-47B1-B1AA-D85B195E58C3}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {626364D7-6F00-47B1-B1AA-D85B195E58C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {626364D7-6F00-47B1-B1AA-D85B195E58C3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {626364D7-6F00-47B1-B1AA-D85B195E58C3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {626364D7-6F00-47B1-B1AA-D85B195E58C3}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {2E510D78-AEA0-4CC3-B923-A48B130618DD} - EndGlobalSection -EndGlobal diff --git a/machine-learning/tutorials/IrisClustering/IrisClustering.csproj b/machine-learning/tutorials/IrisClustering/IrisClustering.csproj deleted file mode 100644 index 70a0a4e39fc..00000000000 --- a/machine-learning/tutorials/IrisClustering/IrisClustering.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - Exe - netcoreapp2.2 - - - - 7.1 - - - - - - - - - - - - - PreserveNewest - - - - diff --git a/machine-learning/tutorials/IrisClustering/IrisData.cs b/machine-learning/tutorials/IrisClustering/IrisData.cs deleted file mode 100644 index 2a50711276b..00000000000 --- a/machine-learning/tutorials/IrisClustering/IrisData.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -using Microsoft.ML.Runtime.Api; -// - -namespace IrisClustering -{ - // - public class IrisData - { - [Column("0")] - public float SepalLength; - - [Column("1")] - public float SepalWidth; - - [Column("2")] - public float PetalLength; - - [Column("3")] - public float PetalWidth; - } - - public class ClusterPrediction - { - [ColumnName("PredictedLabel")] - public uint PredictedClusterId; - - [ColumnName("Score")] - public float[] Distances; - } - // -} diff --git a/machine-learning/tutorials/IrisClustering/Program.cs b/machine-learning/tutorials/IrisClustering/Program.cs deleted file mode 100644 index 9d177743098..00000000000 --- a/machine-learning/tutorials/IrisClustering/Program.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -using System; -using System.IO; -// -// -using System.Threading.Tasks; -// -// -using Microsoft.ML.Legacy; -using Microsoft.ML.Legacy.Data; -using Microsoft.ML.Legacy.Trainers; -using Microsoft.ML.Legacy.Transforms; -// - -namespace IrisClustering -{ - public static class Program - { - // - static readonly string _dataPath = Path.Combine(Environment.CurrentDirectory, "Data", "iris.data"); - static readonly string _modelPath = Path.Combine(Environment.CurrentDirectory, "Data", "IrisClusteringModel.zip"); - // - - // - private static async Task Main(string[] args) - // - { - // - PredictionModel model = Train(); - // - - // - await model.WriteAsync(_modelPath); - // - - // - var prediction = model.Predict(TestIrisData.Setosa); - Console.WriteLine($"Cluster: {prediction.PredictedClusterId}"); - Console.WriteLine($"Distances: {string.Join(" ", prediction.Distances)}"); - // - } - - private static PredictionModel Train() - { - // - var pipeline = new LearningPipeline(); - // - - // - pipeline.Add(new TextLoader(_dataPath).CreateFrom(separator: ',')); - // - - // - pipeline.Add(new ColumnConcatenator( - "Features", - "SepalLength", - "SepalWidth", - "PetalLength", - "PetalWidth")); - // - - // - pipeline.Add(new KMeansPlusPlusClusterer() { K = 3 }); - // - - // - var model = pipeline.Train(); - return model; - // - } - } -} diff --git a/machine-learning/tutorials/IrisClustering/TestIrisData.cs b/machine-learning/tutorials/IrisClustering/TestIrisData.cs deleted file mode 100644 index 252f59645a3..00000000000 --- a/machine-learning/tutorials/IrisClustering/TestIrisData.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace IrisClustering -{ - // - static class TestIrisData - // - { - // - internal static readonly IrisData Setosa = new IrisData - { - SepalLength = 5.1f, - SepalWidth = 3.5f, - PetalLength = 1.4f, - PetalWidth = 0.2f - }; - // - } -} \ No newline at end of file