ml.net

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

◇◆丶佛笑我妖孽 提交于 2019-12-19 05:47:43
问题 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 when run: FormatException: One of the identified items was in an invalid format . What am I missing? Editted: Was using records before open Microsoft.ML open Microsoft.ML.Runtime.Api open Microsoft.ML.Trainers open Microsoft.ML.Transforms open

Is it possible to do one-class classification with Microsoft ML.NET?

送分小仙女□ 提交于 2019-12-14 03:23:23
问题 Is it possible to do one-class classification (wiki) with Microsoft ML.NET? I.e. in the training data set there is only one (the positive) class and I would like to tell if some test data belongs to this class or not. Can this be accomplished wiht ML.NET? Pobably I can try with binary classification (although the prediction will always be classified as that class in the training data set) and inspect the score of the prediction, but this doesn't seem like a robust solution. Thank you. 回答1:

ml.net sentiment analysis warning about format errors & bad values

痞子三分冷 提交于 2019-12-13 00:17:06
问题 I've been having a problem with my ml.net console app. This is my first time using ml.net in Visual Studio so I was following this tutorial from microsoft.com, which is a sentiment analysis using binary classification. I'm trying to process some test data in the form of tsv files to get a positive or negative sentiment analysis, but in debugging I'm receiving warnings there being 1 format error and 2 bad values. I decided to ask all you great devs here on Stack to see if anyone can help me

How to add calculated column into IDataView, and then included as a feature

烂漫一生 提交于 2019-12-11 19:26:55
问题 I have some data in a csv file: Survived Pclass Sex Age 0 3 male 22 1 1 female 38 1 3 male 26 1 1 female 35 ... I loaded the data using: context.Data.LoadFromTextFile(path: dataPath,...); Once I loaded the data, I need to add calculated column say, AgeName , so that the: if (Age < 18) AgeName ="Child" else if(Age < 55) AgeNAme = "Man" else AgeNAme = "Grandpa" Is there builtin method in the ML.NET in order to add the column, or do I need to implement it manually? 回答1: I think you would want to

ML.NET: strange runtime error on some machines

你离开我真会死。 提交于 2019-12-11 18:17:42
问题 I wrote a simple UWP app using the ML.NET framework, and it worked on one of my machines without installing any Nuget packages, without any additional setup etc. However, on my other machine, after running the application, I get this error: System.Runtime.InteropServices.COMException: 'Unspecified error No suitable kernel definition found for op Sub (node Minus675)' The error happens in this segment of code: public static async Task<modelModel> CreateFromStreamAsync

ML.NET, “Score Column” is missing

泪湿孤枕 提交于 2019-12-10 19:26:08
问题 I want to make my first app in ML.NET. I bet on Wisconsin Prognostic Breast Cancer Dataset. I generete .csv file by myself. One record of that file looks like this: B;11.62;18.18;76.38;408.8;0.1175;0.1483;0.102;0.05564;0.1957;0.07255;0.4101;1.74;3.027;27.85;0.01459;0.03206;0.04961;0.01841;0.01807;0.005217;13.36;25.4;88.14;528.1;0.178;0.2878;0.3186;0.1416;0.266;0.0927 And it get 31 diffrent features (columns). My CancerData.cs looks like this: class CancerData { [Column(ordinal: "0")] public

Machine learning - Score column is missing

落花浮王杯 提交于 2019-12-08 18:15:42
问题 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 Zendesk). Using the following code, I'm receving an error: ArgumentOutOfRangeException: Score column is missing I'm not sure why it says that the Score column is missing, as it's present in my prediction class. Here's my setup for training the model, as

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

这一生的挚爱 提交于 2019-12-08 06:11:25
问题 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 the model treats the Date column as a date. I enter in dates as strings to the prediction engine and the results are awful. The prediction engine can only predict values for the dates it trained on. Anything before or after is the same prediction over and

ML.net Add New Data to Exist Generated Model [closed]

倾然丶 夕夏残阳落幕 提交于 2019-12-08 00:21:52
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago . i generated a ML Model Using ML.Net V 0.7.0 last version i need to add a new learning data to this existing Model without regenerated it with the new and old data as i have a large data set that exceed 100 Million Record and i need to add 100 record without reload all last data

ML.net - Bad value at line 1 in column label

為{幸葍}努か 提交于 2019-12-07 20:40:34
问题 I am following the Iris tutorial for ML.Net, I typed out the instructions instead of copy/pasting them so I could learn the API better, but now I am getting some errors. When I run this line from the tutorial a System.Reflection.TargetInvocationException is thrown: var model = pipeline.Train<IrisData, IrisPrediction>(); The console errors I am getting during runtime are: Bad value at line 2 in column Label ... Bad value at line 8 in column Label Suppressing further bad value messages ...