See accessibleai.dev/post/ml_net_2_0_text_classification/ for this content in written form and github.com/IntegerMan/MattEland.AI.MLNet.TextClassificationTurtles for the relevant code.
@vincentvanderkruit3195 Жыл бұрын
Enjoyed this - thanks for this. Working on this topic as well, trying to find optimal tokenization and engine settings
@MattEland Жыл бұрын
Let me know what tips you have after you've gotten there.
@lovol2 Жыл бұрын
Really well explained. Thanks
@MattEland Жыл бұрын
Thank you! I had fun with that one. I plan to explore ML.NET more in the new year.
@vishoek69 Жыл бұрын
Hi Matt, Thank you for the great information! The sentence 'Heroes in a half shell' gave me the correct match with intent 'Ninjitsu' (with a score of 3,19) I created a new Intents file (using your sentences) by asking chatGPT to do the classification for the 500 sentences 😄 This new input file gave me the following confusion table as result: Confusion table ||======================================== PREDICTED || 0 | 1 | 2 | 3 | 4 | Recall TRUTH ||======================================== 0 || 23 | 5 | 0 | 0 | 0 | 0,8214 1 || 0 | 18 | 0 | 0 | 0 | 1,0000 2 || 0 | 0 | 17 | 0 | 0 | 1,0000 3 || 0 | 0 | 0 | 19 | 0 | 1,0000 4 || 0 | 0 | 2 | 0 | 20 | 0,9091 ||======================================== Precision ||1,0000 |0,7826 |0,8947 |1,0000 |1,0000 |
@MattEland Жыл бұрын
That's super cool!
@frankholiday8671 Жыл бұрын
torch sharp cuda on update causes the load exception for method call not implemented...ITransformer model = pipeline.Fit(trainData); TorchSharp-cuda-windows .99.1 works
@Kamas88 Жыл бұрын
Hello! Im facing problem "System.MissingMethodException: 'Method not found: 'Tensor functional.softmax(Tensor, Int64)'.'" have no idea how to fix that. Have you any ideas?
@Kamas88 Жыл бұрын
was in my csproj. I needed to change it to 0.99.1. Looks like someone removed this method :)
@MattEland Жыл бұрын
Thanks so much for sharing this! The problem with some of this stuff is that it can change so frequently and I've been busy recently with a new class of students.
@antonm8860 Жыл бұрын
Matt, I need an advice. I plan to learn some ML in upcoming holidays. I have zero knowledge of python and ML but long experience with C#. Should I learn pytorch bc more popular or ML. Net can be OK? Should I buy a computer with lot of ram and gpu? Final advice should I buy the ebook "introducing ML" by Ms press or it's outaded now? (pub 2020) thanks. Your voice is clear I can understand from a phone and I am not native English
@MattEland Жыл бұрын
Thanks for your comment! I would recommend scikit-learn as a first ML library for those familiar with Python and ML .NET if your comfort with C# is larger. Introducing ML is a great book, but it gets pretty advanced pretty quickly. You may have better luck with some of the white cover O'Reilly books. As far as your computer goes, as long as you're working with small datasets your computer doesn't matter too much. When you start getting into the bigger tasks and datasets, you may want to use cloud ML on Azure or Spark clusters or similar - areas where your computer doesn't matter either.
@ctomz. Жыл бұрын
How do you match the score with the predicted label? I am writing some software involving image classification and want to provide a percentage score for the label the model has predicted. I can't work out what order the score array is in so I can't match the predicted label with the score it was given. For example if my classes are fish, horse, cow, eagle, cat and I input an image of a fish, how can I get the program to output: fish 86%. Thanks for the informative video!
@MattEland Жыл бұрын
The predictions for multi class classification come in an array ordered by the order the training process encounters each class, by default. That way you get the % chance something is each category, not just the highest likely category. I suspect there's a way to fix the order of the classes, but I believe the default is just the order encountered in training data.
@ctomz. Жыл бұрын
@@MattEland Amazing thank you so much!
@KptKaracho3 Жыл бұрын
Hi I have an understanding issue: If I trained the model via Fit method I will save the model. In the next step I can load this model again to predict something. What about retraining? How can I add new data to the model so that the predictions will be more exact over time? Is it the predict method itself, and I just have to save the model again? Do you have an example how to handle this? kind regards, Christian
@MattEland Жыл бұрын
To retrain a model, typically you run the fit process again with an updated data set that includes your new data points. This way your code to train your model is re-used, but the source data changes and the new model replaces the old one. In this manner, what you do as a data scientist is more of creating a pipeline that can repeatably train, evaluate, and even deploy or save the resulting models for usage. This is typically what is done with model training and replacement though specialized models may be exceptions to this rule.
@_AutoCoder Жыл бұрын
Great vid thanks. How do you export the model to file and then load again? Would love to bust these out into train, evaluate, and use classes.
@caseylee6985 Жыл бұрын
I received an error: Unable to load DLL 'LibTorchSharp' ... I didn't see anything about needing this lib in the docs or how to install it.
@lucasbianchezzioliveira7664 Жыл бұрын
Did you find How to resolve it?
@MattEland Жыл бұрын
Apologies on the delay. What operating system are you running on?
@lucasbianchezzioliveira7664 Жыл бұрын
@@MattEland i don't know he, but i had the same error and i was using windows 11
@mhrezash Жыл бұрын
@@lucasbianchezzioliveira7664 hey bro did you find any solution for this error?
@lucasbianchezzioliveira7664 Жыл бұрын
@@mhrezash no, i guess it's a problem in LibtTorchSharp's library, maybe compative problems. I already gave up
@strangerPasserby Жыл бұрын
can I use it to extract data from text instead ? like give it sentences and it extract emails, or phones etc .. ?
@deepakkarmaDK6 ай бұрын
Could you make same code with different example other then turtle ? Like health care or e-commerce
@MattEland6 ай бұрын
I'm making a few examples around Football for the book I'm writing, but will consider e-commerce or health care for the course I'm creating
@0saurabhit Жыл бұрын
Hi. Loved your video, I am very new to ml topic , could you please guide me how can I generate a model text to c# suggestion , like openai does. Thanks.
@MattEland Жыл бұрын
I'm not fully sure I understand what you're describing. If you're talking about taking some text prompt and generating C# code from it, your best bet would be to use the OpenAI service on Azure or direct with OpenAI at the moment.
@fredbailey9528 Жыл бұрын
This would have been a pretty good video, but the speaker mumbles when he speaks. Just about every sentence is mumble, mumble, mumble. I find this often when viewing these kinds of KZbin videos. People are so eager to share their knowledge, but they don't stop to consider that they need to present it well, which includes speaking clearly, emphasizing key words when appropriate, slowing down your cadence when a point being made might be misunderstood, adding some redundancies to reinforce a concept, and so forth. Don't just rattle off stuff using your mumble voice.
@MattEland Жыл бұрын
Thanks for your valuable feedback! Have a great week!
@adamattia512 Жыл бұрын
Bro turn on captions
@dadtier564 Жыл бұрын
Not only do I disagree with this comment, but his clear enunciation changed my life. Even as I sit here in awe, my own data models, which are written in C# btw, are telling me how many pepperonis are worth going on an optimal pizza. While the feedback is still valuable I am sure, I would suggest to the original commenter that they turn on captions or try to watch the video again but this time with a heart that is open regardless of what pizza toppings are on their pie while learning about open source ML libraries. I mean sure pineapple is fine on a pizza, but are pepperonis? P.S. after years of training my data models, there are overwhelming results suggesting 0 pepperonis are the optimal number to put on a pizza.