Forum Widgets
Latest Discussions
Best practice to fill one column with manipulated values from another (DataFrame)?
C# 10 / .NET 6 / Microsoft.Data.Analysis Given a Microsoft.Data.Analysis DataFrame with two columns, what is the idiomatic way to take values from one column, manipulate them, then use the resulting value to fill the rows of the second column element-wise? // Create a DateTime column. PrimitiveDataFrameColumn<DateTime> dateTimeCol = new("Dates", 0); // Fill it. dateTimeCol.Append(DateTime.Now + TimeSpan.FromDays(1)); dateTimeCol.Append(DateTime.Now + TimeSpan.FromDays(2)); dateTimeCol.Append(DateTime.Now + TimeSpan.FromDays(3)); // Create a Ticks column. PrimitiveDataFrameColumn<long> ticksCol = new("Ticks", dateTimeCol.Length); // Create a DataFrame of the above two columns. DataFrame df = new(); df.Columns.Add(dateTimeCol); df.Columns.Add(ticksCol); At this point, what I want to do is df["Ticks"] = df["Dates"].Ticks. Of course, this doesn't work. I could do this: for (int i = 0; i < df.Rows.Count; i++) { DateTime tempDate = (DateTime) df[i, df.Columns.IndexOf("Dates")]; df[i, df.Columns.IndexOf("Ticks")] = tempDate.Ticks; } But... is there a better way?SolvedchrisxfireApr 27, 2022Copper Contributor2.6KViews0likes4CommentsModel Builder - Image classification - shifting from CPU to GPU
I'm trying to classify images based on 14 different categories. Currently I have about 40.000 images, but I'm planning to add more to try and get a better dataset. Initially I have trained my dataset with my CPU and has pretty decent accuracy (90-98% in most cases), but the training and prediction speed is rather slow. Now I'm trying to use my GPU to speed up this task. The speed is amazing when it's training through the model builder, however the accuracy is terrible. I get about 8% accuracy and the expected category isn't even listed in some cases. The only thing I changed is the CPU to GPU in the Model Builder GUI. Is there something I'm missing here? Do I require even more images to get the same results with my GPU vs my CPU? I'm at a loss here so any help would be really appreciated!FaithlessDboJan 29, 2023Copper Contributor820Views0likes2CommentsMachine Learning Community Standup | May 11, 2022
Topic: Office Hours YouTube Recording Community Links Normalization - Machine Learning Glossary (ML.NET) Introducing Channel Suggestions (Kliptok) Can ML.NET Save Dr. Who? Probably not, but let's give it a go! ( YouTube) Deep Learning with ML.NET (YouTube) Sound Classification using ML.NET - Practical ML.NET User Group 04/14/2022 (YouTube) Serverless Deep Neural Network(DNN) with Azure Functions and ML.Net (YouTube) Feedback We want to hear from you. Do you have topics you'd like to hear more about or have ideas on how we can improve the show? Take a few minutes to fill out our feedback form. Stay Connected Join the Virtual ML.NET Community Discord and the #machine-learning channel on the .NET Development Discord. Find recordings from previous shows on .NET Live TV.LuisQuintanillaMay 12, 2022Microsoft2.1KViews1like2CommentsML.Net CLI Example Fails
On following the instructions here: https://learn.microsoft.com/en-us/dotnet/machine-learning/tutorials/sentiment-analysis-cli at this step mlnet classification --dataset "yelp_labelled.txt" --label-col 1 --has-header false --train-time 10 I get this error: System.InvalidOperationException: Unable to resolve service for type 'Microsoft.ML.AutoML.IDatasetManager' while attempting to activate 'Microsoft.ML.AutoML.SweepablePipelineRunner'. at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, Type serviceType, Type implementationType, CallSiteChain callSiteChain) ... ... mlnet --version says 16.15.0 Anyone know what's wrong?DaleC975Apr 20, 2023Copper Contributor974Views0likes1CommentTrain Machine Learning Models with ML.NET Model Builder on ARM64
Visual Studio 2022 17.3 Preview 2 is now available as a native ARM64 application on Windows 11. This is the first version of Visual Studio that natively supports building and debugging ARM64 apps on ARM-based processors. .NET workloads are one of the prioritized workloads. What is Model Builder? Model Builder is a Visual Studio extension that uses ML.NET, an open-source, cross-platform machine learning framework for .NET developers to train and deploy custom machine learning models into .NET apps. Get started To get started with Model Builder on ARM64 devices: Install ARM64 Visual Studio Enable Model Builder Note: For image classification scenarios, we recommend using Azure since it's not supported for local environments on ARM devices. For more information, see the tutorial on how to train an image classification model in Azure using Model Builder. We want to hear from you Let us know about your experiences. If you have any feedback or issues running Model Builder on ARM, file an issue in the dotnet/machinelearning-modelbuilder GitHub repository.LuisQuintanillaJun 15, 2022Microsoft2.7KViews0likes1CommentAutoML
Hi, I was looking for some answers on training. I like how the AutoML works, especially when the parameters are auto tweaked for a better fit. Is there a way to select a specific algorithm and have the automl iterate over that for X minutes, like the autoML wizard but for a specific algorithm? thank you__James__May 25, 2022Copper Contributor954Views0likes1Comment