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
5
votes
2 answers

Using placeholder on empty string when training model with ML.NET

I have a question regarding training an ML.NET that can predict if a name is female or not. The model can be trained with a pipeline like this: var mlContext = new MLContext(); IDataView trainingDataView =…
ThomasArdal
  • 4,999
  • 4
  • 33
  • 73
5
votes
1 answer

C# ML.Net Image classification: Does GPU acceleration help improve the performance of predictions and how can I tell if it is?

I'm currently working on a desktop tool in .NET Framework 4.8 that takes in a list of images with potential cracks and uses a model trained with ML.Net (C#) to perform crack detection. Ideally, I'd like the prediction to take less than 100ms on 10…
miguel millan
  • 53
  • 1
  • 4
5
votes
2 answers

Can ML.NET Image Classification Transfer Learning be resumed from a saved model .zip file or checkpoint? How?

I am using the NuGet packages Microsoft.ML (1.4.0) and SciSharp.TensorFlow.Redist (1.15.0) Initial training and saving the model works fine var options = new Microsoft.ML.Vision.ImageClassificationTrainer.Options() { FeatureColumnName =…
5
votes
0 answers

ML.NET - Schema mismatch for feature column 'Features': expected Vector, got Vector

I just try to make my first ML.NET project, that I have built before with Azure ML, Visual Interface, Python and so on, but now I wanted to do it with C#. I was following this tutorial, but with a totally different dataset and purpose. The dataset…
Eve
  • 604
  • 8
  • 26
5
votes
1 answer

How to predict multiple columns with ML.NET

I’m trying to create an application which predicts time to take a medicine depending on user lifestyle and medicine's restrictions. I mean: From a patient I take informations like: • How many times and when does he/she eat his/her meals • When…
Killua94
  • 51
  • 1
  • 2
5
votes
1 answer

ML.NET: How to solved "Column with role MatrixColumnIndex should be a known cardinality U4 key, but is instead 'UInt32'"

I am trying to adapt the following ML.NET F# Product Recommender example to my own use case: https://github.com/dotnet/machinelearning-samples/tree/master/samples/fsharp/getting-started/MatrixFactorization_ProductRecommendation However, in my…
Nathaniel Elkins
  • 719
  • 1
  • 9
  • 16
5
votes
0 answers

How to get Vocabulary with weights for tf-idf word bags in ml.net?

The documentation of ML.NET shows how to use context.Transforms.Text.ProduceWordBags to get word bags. The method takes Transforms.Text.NgramExtractingEstimator.WeightingCriteria as one of the parameters, so it's possible to request TfIdf weights to…
MarcinJuraszek
  • 124,003
  • 15
  • 196
  • 263
5
votes
1 answer

How to predict multiple labels with ML.NET using regression task?

I'm very new to machine learning and I've stumbled upon the following problem. Considering an official NYC Taxi fare amount prediction tutorial, let's say I'd like to predict another real value, e.g. TripTime. I've modified my code as…
Jan Bońkowski
  • 538
  • 9
  • 22
5
votes
5 answers

ML.NET Show which score relates to which label

With ML.Net I am using a classifier for text interpretation. The prediction has a score column as float[] and a predicted label. This works in that the highest score relates to the predicted label, but the other scores are just floats in no…
craig
  • 421
  • 4
  • 13
5
votes
1 answer

How do I specify a target architecture when building projects in Visual Studio code?

I am new to VS code/F# and I am trying to build a F# console app (on both Windows workstation and on my Linux computer). I installed the Ionide extension together with FAKE. The code I am considering is the Iris example (see How to translate the…
Davide Fiocco
  • 5,350
  • 5
  • 35
  • 72
4
votes
1 answer

Using a model created from python in ML.NET

We have a scenario where we need to use Machine learning algorithm to predict a value. We want to do it in ML.NET because of some issues. We tried AutoML in a project and trained it with almost 80k records of data. We trained the data for more than…
4
votes
3 answers

How to view data inside IDataView

In ML.net, I want to view the data in the IDataView to verify whether the right data is loaded. I cannot see any visualizer/debugging tool to view them just like we view in System.Data.DataTable as a table var mlContext = new MLContext(); IDataView…
Beingnin
  • 2,288
  • 1
  • 21
  • 37
4
votes
1 answer

ML.Net 'TransformsCatalog' does not contain a definition for 'LoadRawImageBytes'

I am trying to implement one of the examples of ML.Net. The project in the example is targeting .Net core 2.1 and I am building the my project in .NET 4.7 Framework. The issue I have is that the line below does not…
Vasilis
  • 53
  • 5
4
votes
1 answer

C# Machine Learning and Multi-label Classification

I am an apprentice and I just finished my first .NET web application that main premise is to parse group and visualize logs from ELmah.io(Error Logging Modules and Handlers). I had a look in to ML.NET Model Builder and multi-class classification…
4
votes
0 answers

Using ML.NET Model Builder to predict value at Date gives strange results

I am trying to predict home values in the future near my. Here is a sample of the data set. after choosing the price prediction preset I let the model train after setting value as the label. Here are the results: The issue is I don't think…
Scott Clark
  • 608
  • 6
  • 21
1
2
3
42 43