Questions tagged [ml.net]

ML.NET is a machine learning framework built for .NET developers. Uses .NET and C# or F# to easily integrate custom machine learning into applications without the requirement of extensive prior expertise in developing or tuning machine learning models. Use this tag for discussion about the framework or apps built within.

Get started at dot.net/ml

Get involved at github.com/dotnet/machinelearning

View samples at github.com/dotnet/machinelearning-samples

632 questions
0
votes
1 answer

How can I convert R4 to U1 in a ML.Net Pipeline?

I have this code: Dim pipeline = ImageEstimatorsCatalog.LoadImages(mlContext.Transforms, imagesFolder, ("ImagePath", "ImageReal")). Append(ImageEstimatorsCatalog.Resize(mlContext.Transforms, "ImageReal", "ImageReal",…
0
votes
3 answers

Predict Value Not In Data Set

Given that I have training and testing data, that may be missing a logical sequential number. Is it possible to infer a value that wasn't present? For example: Training / Testing Data have values 1,2,3,4,5...7,8,9,10 specified for the label. Is it…
d_unique
  • 21
  • 1
  • 3
0
votes
0 answers

ML.Net - Normalizer syntax for VB.Net

Am using VB.Net Microsoft Visual Studio Community 2017 Version 15.8.1 & specifically VB.Net & ML.Met v0.7.0. Have found some documentation for Normalization on…
Stevie B
  • 1
  • 2
0
votes
1 answer

ML.Net array data input

I am having a hard time to Predict monthly sales with daily sales data input using Microsoft .ML class Data { [Column(ordinal: "0", name: "Label")] public float PredictedProfit; [Column(ordinal:…
Mario
  • 13,941
  • 20
  • 54
  • 110
0
votes
1 answer

Why does this ML.NET code fail to predict the correct output?

I'm an ML.NET newbie and want to learn more about ML.NET by solving the XOR problem. This is what I've come up with so far, but the output always appears to be the same (zero), regardless of input. No doubt I've made a rookie mistake, but…
0
votes
0 answers

ML.net prediction are always the same

So I have the following test 2 tests This test keeps returning the first answer it gives and mimics the way we predict with live data. if (_bModelPredictor is null) _bModelPredictor = bModel.MakePredictionFunction
Walter Verhoeven
  • 3,867
  • 27
  • 36
0
votes
2 answers

How to use LinearSvm?

Currently I'm using FastTree for binary classification, but I would like to give SVM a try and compare metrics. All the docs mention LinearSvm, but I can't find code example anywhere. mlContext.BinaryClassification.Trainers does not have public SVM…
Max Al Farakh
  • 4,386
  • 4
  • 29
  • 56
0
votes
1 answer

Real world scenario : which machine learning algorithm to choose best attributions

I am a .NET Developer and in my company we have developed an engine that attributes missions (transport those packages from A to B) to the best matching driver based on simple rules (pickup address, delivery address, driver's address, driver's…
0
votes
1 answer

Microsoft.ML rel 0.8.0 error in fitting model

I have a data set where I have 4 types of data The to be predicted enum (label) Trading hours enum Direction enum floating point values I load the data the following configuration method, I have highlighted the text fields. I fit my pipeline…
Walter Verhoeven
  • 3,867
  • 27
  • 36
0
votes
1 answer

Microsoft.ML rel 0.8.0 MLContext with a text file with different data types

I am trying to use ML.Net with a csv file. The file contains price data (decimal) Enum's (different types as string) Statistical data (float) I'm trying to follow the sample provided in MlNetCookBook however I can't use FeatureVector:…
Walter Verhoeven
  • 3,867
  • 27
  • 36
0
votes
1 answer

in Microsoft ML how does one configure a score and predict label output

We are evaluating ML.Net, release 0.6, I get frustrated with the error messages... My issue, perhaps some one know what I am doing wrong. I have a class that we created for ML.Net, it has features and a label. in the learning Pipeline I add var…
Walter Verhoeven
  • 3,867
  • 27
  • 36
0
votes
0 answers

ML.Net Bad value at line 7 in column Label

I am trying ML.NET for basic sentiment analysis as given in link https://learn.microsoft.com/en-us/dotnet/machine-learning/tutorials/sentiment-analysis . I have followed step by step and used same files given in the link for training. Also checked…
Sand T
  • 168
  • 1
  • 14
0
votes
1 answer

Adding "data" from new TextLoader into exisitng Pipeline (ver. 0.6)

Im trying to improve my model from ML.NET 0.5 to 0.6 and i have a question. I Copy-paste example from ML.NET Cookbook that says: // Create a new environment for ML.NET operations. It can be used for exception tracking and logging, // as well as…
michasaucer
  • 4,562
  • 9
  • 40
  • 91
0
votes
1 answer

Create a custom classifier that works with ML.Net Pipelines

I have an in house developed application and would like to incorporate the ML.Net machine learning library with a custom classifier. In particular, how do I make a custom classifier that works with the LearningPipeline class? How does one make a…
Gaspare Bonventre
  • 1,134
  • 11
  • 19
0
votes
1 answer

ML.net in Web API

I was trying to use ML.net since a Web API, I followed all the steps of the tutorial of ML.net in https://learn.microsoft.com/es-es/dotnet/machine-learning/tutorials/taxi-fare But, when I try to use the service I have the message : …