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

455 questions
9
votes
2 answers

ML.Net retrain existing model rather than training new model

I am training a ML.Net machine learning model. I can train it and predict from it, and save/load it from the disk. But I need to be able to load it off the disk, then retrain it, or add to it with new information to improve it over time. Does anyone…
craig
  • 311
  • 2
  • 10
8
votes
1 answer

Correct pb file to move Tensorflow model into ML.NET

I have a TensorFlow model that I built (a 1D CNN) that I would now like to implement into .NET. In order to do so I need to know the Input and Output nodes. When I uploaded the model on Netron I get a different graph depending on my save method and…
Josh
  • 139
  • 6
8
votes
3 answers

How to predict integer values using ML.NET?

I'm looking at a the cs file here: https://www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started/windows and everything works well. Now I'd like to improve the example: I'd like to predict a number-only data set and not a…
Rowandish
  • 2,223
  • 3
  • 22
  • 45
8
votes
1 answer

How to translate the intro ML.Net demo to F#?

I'm looking at a the cs file here: https://www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started/windows and in my attempt to translate it to F# it compiles just fine but throws a System.Reflection.TargetInvocationException…
jks612
  • 1,068
  • 9
  • 19
7
votes
2 answers

Could not load file or assembly System.Numeric.Vectors in ML.NET

I created a new console application .net46, install the latest ML and tried a simple LDA. Got the error above. None of the fix that I found on the web seems to work. It is looking for a 4.1.3.0 version of the System.Numerics.Vectors that does not…
Marc Engher
  • 71
  • 1
  • 2
7
votes
1 answer

How to return transformed data from an ML.Net pipeline before a predictor is applied

Here is the creation of the ML.Net pipeline object copied from the TaxiFarePrediction example. LearningPipeline pipeline = new LearningPipeline { new TextLoader(TrainDataPath).CreateFrom(separator:','), …
7
votes
0 answers

Machine learning - Score column is missing

I'm trying out the ML.net framework with some random test data. My data exists of a DepartmentId (1-25) and a Body (string). I want my machine to predict the department that the body should be allocated (for example in a ticket system like…
Detilium
  • 2,590
  • 5
  • 22
  • 58
6
votes
2 answers

ML.Net 0.7 - Get Scores and Labels for MulticlassClassification

I'm using ML.NET 0.7 and have a MulticlassClassification model with the following result class: public class TestClassOut { public string Id { get; set; } public float[] Score { get; set; } public string PredictedLabel { get; set; } } I'd…
jondow
  • 504
  • 4
  • 14
5
votes
1 answer

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,314
  • 4
  • 22
  • 50
5
votes
1 answer

Microsoft.ML and Xamarin

Does Microsoft.ML work in Xamarin? I have followed many of the tutorials and videos at https://dotnet.microsoft.com/learn/ml-dotnet. The simple tutorial (here) sets out the core process, which I have followed (in a Xamarin project) but I cannot get…
nixop
  • 51
  • 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
6 answers

Unable to load DLL 'tensorflow' or one of its dependencies (ML.NET)

I have a .NET Core 3 app for image classification, using Microsoft's ML.NET framework. On my development machine, I can run the code and it all works fine. However, when I deploy it to my staging server, I get this error at…
Kevin Owens
  • 159
  • 1
  • 3
5
votes
0 answers

ML.NET: how to retrain a text classification model with new data

I am pretty new to machine learning in general, and to Microsoft ML.NET in particular. What I am trying to do is to create a re-trainable model for text classification. Suppose I have an Article (for training) and an ArticlePrediction (for the…
ripe_bananas
  • 820
  • 8
  • 11
5
votes
2 answers

Can't get input column name of ONNX model to work

I am using ML.NET to import an ONNX model to do object detection. For the record, I exported the model from the CustomVision.ai site from Microsoft. I inspected the model file in Netron and it clearly shows the input node as being named "data" and…
Michael Bedford
  • 1,478
  • 12
  • 40
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
  • 118,129
  • 14
  • 170
  • 241
1
2 3
30 31