From 8697bec3e9c78beb2c3c4d3f915551c85bcdcb39 Mon Sep 17 00:00:00 2001 From: Luis Quintanilla <46974588+luisquintanilla@users.noreply.github.com> Date: Thu, 16 Apr 2020 02:01:42 -0400 Subject: [PATCH] Added front-matter for samples (#805) --- .../Controllers/ClassificationController.cs | 2 +- .../Controllers/WeatherForecastController.cs | 39 ------------------- .../LandUseAPI/WeatherForecast.cs | 15 ------- .../README.md | 16 ++++++++ 4 files changed, 17 insertions(+), 55 deletions(-) delete mode 100644 samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/WeatherForecastController.cs delete mode 100644 samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/WeatherForecast.cs diff --git a/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/ClassificationController.cs b/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/ClassificationController.cs index ce0197ca3..7e8050c17 100644 --- a/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/ClassificationController.cs +++ b/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/ClassificationController.cs @@ -40,7 +40,7 @@ public async Task ClassifyImage([FromBody] Dictionary in lock (_predictionEngineLock) { - // Use Prediction to classify image + // Use PredictionEngine to classify image ModelOutput output = _predictionEngine.Predict(new ModelInput { ImageSource = imagePath }); prediction = output.Prediction; } diff --git a/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/WeatherForecastController.cs b/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/WeatherForecastController.cs deleted file mode 100644 index 9cd3db934..000000000 --- a/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; - -namespace LandUseAPI.Controllers -{ - [ApiController] - [Route("[controller]")] - public class WeatherForecastController : ControllerBase - { - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - private readonly ILogger _logger; - - public WeatherForecastController(ILogger logger) - { - _logger = logger; - } - - [HttpGet] - public IEnumerable Get() - { - var rng = new Random(); - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateTime.Now.AddDays(index), - TemperatureC = rng.Next(-20, 55), - Summary = Summaries[rng.Next(Summaries.Length)] - }) - .ToArray(); - } - } -} diff --git a/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/WeatherForecast.cs b/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/WeatherForecast.cs deleted file mode 100644 index 74ba244c3..000000000 --- a/samples/modelbuilder/ImageClassification_Azure_LandUse/LandUseAPI/WeatherForecast.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace LandUseAPI -{ - public class WeatherForecast - { - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string Summary { get; set; } - } -} diff --git a/samples/modelbuilder/ImageClassification_Azure_LandUse/README.md b/samples/modelbuilder/ImageClassification_Azure_LandUse/README.md index 3b909ed3c..36eb31d52 100644 --- a/samples/modelbuilder/ImageClassification_Azure_LandUse/README.md +++ b/samples/modelbuilder/ImageClassification_Azure_LandUse/README.md @@ -1,3 +1,19 @@ +--- +page_type: sample +name: "Train a deep learning image classification model in Azure with ML.NET Model Builder" +description: "Use ML.NET Model Builder to train a deep learning image classification model in Azure" +urlFragment: "mlnet-image-classification-azure-model-builder" +languages: +- csharp +products: +- dotnet +- dotnet-core +- aspnet-core +- vs +- windows +- windows-uwp +--- + # Image Classification in Azure with Model Builder | ML.NET version | Status | App Type | Data type | Scenario | ML Task | Algorithms |