ml5.js: Train Your Own Neural Network

  Рет қаралды 105,169

The Coding Train

The Coding Train

Күн бұрын

Пікірлер
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
🚂🌈🧠Code and community contributions! thecodingtrain.com/Courses/ml5-beginners-guide/6.1-ml5-train-your-own.html
@planktonfun1
@planktonfun1 5 жыл бұрын
you can add a replay function so you don't have to click again
@masternobody1896
@masternobody1896 5 жыл бұрын
Yeah machine learning thank you very much
@pacoperico1109
@pacoperico1109 2 жыл бұрын
Hi! I really like your way to teach. It is brilliant. But, in neurals I have always doubts. For instances, Can I to use this kind of networks for predict a future result? Can I have an email for better explanation?
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
@@pacoperico1109 Come and join the coding train discord! thecodingtrain.com/discord
@pacoperico1109
@pacoperico1109 2 жыл бұрын
@@TheCodingTrain hi again, I follow your advice and I am into discord. How do I find the coding train community?
@ShreyAroraev3
@ShreyAroraev3 5 жыл бұрын
i really appreciate the fact that dan ALWAYS gives credit to original creators and researchers
@Jptoutant
@Jptoutant 5 жыл бұрын
No wonder he has so many friends, guy always doing a favor
@sonmangaking
@sonmangaking 5 жыл бұрын
He is a angel I wish I could work with him he inspires my work everyday
@freeshavaacadooo1095
@freeshavaacadooo1095 5 жыл бұрын
Unlike a man known as Siraj Rival...
@abeechr
@abeechr 5 жыл бұрын
Shrey Arora agreed. And that’s why he’s closing in on a million subscribers and nary a negative comment.
@ishanpradhan05
@ishanpradhan05 4 жыл бұрын
Siraj Rawal triggered! xD
@Cerzus
@Cerzus 5 жыл бұрын
6:02 Respect for flawlessly writing '0' and '1' while saying '1' and '2'.
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
😱
@vikramb183
@vikramb183 4 жыл бұрын
I took a long hiatus from programming, but I didn't realize how long until I looked at the date this was posted! I'm finally getting around to finishing this after over a year! Also I'm so happy new generations of programmers will have such amazing videos to learn from!
@williamlehmus5371
@williamlehmus5371 3 жыл бұрын
You got me into programming! Please never stop doing these videos!
@sonmangaking
@sonmangaking 5 жыл бұрын
I love how you stopped and saw changes UR channel has become the golden light for teaching great topics like these I appreciate your work and would love to one day work or help. Your journey as it has shaped mine to becoming a great scientist
@rkadi6540
@rkadi6540 4 жыл бұрын
If my teacher is as cheerful as you when teaching, class wont be boring as hell. Man good presentation
@grevel1376
@grevel1376 5 жыл бұрын
I made simmilar project about 2 weeks ago, and I am proud of myself, programm takes users clicks, left button makes red dots, middle button makes green dots and right button makes blue dots. Then a neural net trains on that input, and each 10 backprops it prints every pixel prediction, on rgb mix of confidences. It can be really beautiful, and it can find complex shapes. I made it in java awt.
@tipsstudio9707
@tipsstudio9707 5 жыл бұрын
can you give me link? so i can refer it.
@grevel1376
@grevel1376 5 жыл бұрын
It is not published, maybe I'll make something towards it
@tipsstudio9707
@tipsstudio9707 5 жыл бұрын
@@grevel1376 ok dude, thanks i like to watch it when you published..
@Akshatgiri
@Akshatgiri 4 жыл бұрын
There is no better teacher than Dan. Prove me wrong
@shubhrashukla7879
@shubhrashukla7879 5 жыл бұрын
So close to 100k!!!!!!!!!!! Dan I love your vids and have been watching your channel from 160k from different accounts Thank you for turning me into a computer geek!
@sarcasmasaservice
@sarcasmasaservice 5 жыл бұрын
Thanks Dan, this was great!
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Yay, glad you liked it!
@rsrini7
@rsrini7 5 жыл бұрын
All your videos are inherently number of views = number of likes. I don’t have a better way to appreciate your way of teaching. I love teaching. 🙏
@exxzxxe
@exxzxxe 4 жыл бұрын
Dan; you are a gentleman and scholar!
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
o-m-g south park The Toran Ra , with neural networking , he is the master
@AkhilsaiNo1
@AkhilsaiNo1 4 жыл бұрын
This world needs more people like Dan.
@TylerMatthewHarris
@TylerMatthewHarris 5 жыл бұрын
Your neural network is training my neural network to train a neural network. So Meta bro 🤪🤘🏻
@divyeshgaur
@divyeshgaur 5 жыл бұрын
your enthusiasm made me excited to do ML. thank you and amazing video.
@aarensan
@aarensan 5 жыл бұрын
This could be a great start into ML ans JS - thank you!
@jackal8004
@jackal8004 5 жыл бұрын
Oh my god, it's amazing! Really looking forward to the saving data part =)
@prosoftwebindia
@prosoftwebindia 5 жыл бұрын
Because of your the machine learning is easy for me.... big big thanks.. for nice 👍 contents.
@ShreyAroraev3
@ShreyAroraev3 5 жыл бұрын
i was WAITING for this!!
@IvanChernykh-vc1iv
@IvanChernykh-vc1iv Жыл бұрын
Absolutely mind blowing! Thanks Dan!!
@SimonTiger
@SimonTiger 4 жыл бұрын
We've not really only used pretrained models before. Instead, we did train our own models, but we always used a pretrained model as a basis. In this case, we're starting with a blank slate. No magic transfer learning or knn.
@Clinty_Stwood
@Clinty_Stwood 4 жыл бұрын
I say "wow"...super good explanation and video realization
@allex3842
@allex3842 5 жыл бұрын
Thank you so much for everything you do ❤️
@bafana_mhlamvu
@bafana_mhlamvu 5 жыл бұрын
Greetings Mr. Shiffman, I noticed the Programming With Text series has been removed from your channel's playlist and was wondering if that was intended?
@gamestv4875
@gamestv4875 5 жыл бұрын
I wish I had the passion for coding like this guy. Recently I have no passion for anything at all. Scary.
@hrrrvvyy
@hrrrvvyy 5 жыл бұрын
Wow, it's amazing 😻
@АнатолийП-я2н
@АнатолийП-я2н 4 жыл бұрын
Hi, how to stop learning in whileTraining function depending on loss?
@thomasgibson1028
@thomasgibson1028 5 жыл бұрын
Aww my life I had to fight to understand normalization☺️. Thank you!
@anteconfig5391
@anteconfig5391 3 жыл бұрын
22:44 you wrote '0.25' and I read '0.2J' and then I thought "what if I use complex numbers to calculate the weights and bias?" and stuff. I think I might try. I just came up with an idea to use a genetic algorithm that stores the starting state of the game of life and instead of doing a 2D space I use a 3D space.
@Dron008
@Dron008 3 жыл бұрын
Great demo!
@fbn7766
@fbn7766 5 жыл бұрын
Love your videos............
@micah7009
@micah7009 2 жыл бұрын
Can the input be an array, or do you need to list each item in the array?
@wtalkie
@wtalkie 3 жыл бұрын
Amazing as always!
@mamupelu565
@mamupelu565 5 жыл бұрын
this is getting good, go on please
@mobsean
@mobsean 5 жыл бұрын
So cool to watch this. Makes me wanna start coding RIGHT NOW !!! :-)
@grainfrizz
@grainfrizz 5 жыл бұрын
You're such a gift.
@EdMonk
@EdMonk 4 жыл бұрын
That was fun. It worked for me.
@jonathancoder
@jonathancoder 5 жыл бұрын
Muy clara la explicación 👲
@Manatoro
@Manatoro 2 жыл бұрын
duude you are too good!
@kisame_5331
@kisame_5331 5 жыл бұрын
Love your explanations!
@vilkillian
@vilkillian 5 жыл бұрын
26:50 i don't get it, why don't you normalized data before model.classify?
@mesutdogansoy
@mesutdogansoy 5 жыл бұрын
because isNormalized flag set true when training so it normalizes the sample automatically
@yamimzumara6291
@yamimzumara6291 5 жыл бұрын
We need more, and your videos and awesome.
@thisdot6205
@thisdot6205 5 жыл бұрын
Could you make a snakeAI with reinforcement learning?
@devorrahtester5439
@devorrahtester5439 5 жыл бұрын
Thank you! Awesome tutorial! Would you explain how the training and output data would be structured if you used your hands to play the sound but also wanted to modulate the output sound with your legs and head?
@satychary
@satychary 5 жыл бұрын
You are a nut, my kind :) Great video and project.
@konstantinosvasilakos1240
@konstantinosvasilakos1240 4 жыл бұрын
Is there a way to adjust the weights in the model using this example?
@shashidhara.g.m655
@shashidhara.g.m655 5 жыл бұрын
*YEEYYY ANOTHEERR VIDEOOO*
@guyincognito1985
@guyincognito1985 3 жыл бұрын
Nice haircut! 👌😍👍 (If you're watching this ML playlist in order) I too hope to get a haircut one day and get rid of this COVID-mullet. 😟
@scodemy1976
@scodemy1976 5 жыл бұрын
Am a web developer and I have my channel but your videos are awesome
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
it also has me thinking multiwii pro , yes arduino and all of this. i still just don't know what my drone would be doing with all this yet. but objects and sensors, they have some pretty intelligent drones for synchronous flying, i wonder what kind of intellagent drone could be made with this stuff? it can see, this really beats a proxy sensor . it can know what things are , maybe to pick up and sort xD
@nightshining5662
@nightshining5662 Жыл бұрын
This is a great overview! Anyone happen to know if there is a list of other open source ML 5 type libs for other languages like Python and C++? I want to run this type of stuff off google coral and Nvidia jetson without having to know TensorFlow
@enivaldobonelli
@enivaldobonelli 5 жыл бұрын
Great to start with 'tabula rasa.' Some artificial intelligence of previous codes did not work well for absence of human intelligence, in training the models. For example: a stretched hand shown to the program was identified as 'Band-aid!' Because some intelligent trainer showed her/his band-aid to the camera forgetting that more hand than band-aid were seen. Then if you make a fist, it is not a 'band-aid' anymore. Now it is a screw driver. Again, the trainer showed a small screw driver to the program, were mostly hand appeared.
@WeirdSide
@WeirdSide 5 жыл бұрын
can you use ml5.js to generate GAN images?
@stiqsify
@stiqsify 4 жыл бұрын
So exciting
@BarYamin
@BarYamin 5 жыл бұрын
Why not play all 3 notes in superposition based on their output probability according to the position of the mouse on the canvas?
@micah7009
@micah7009 2 жыл бұрын
I am getting an error when trying to train the data. "You are passing a target array of shape 91,1 while using a loss 'categorical_crossentropy'. 'categorical_crossentropy'expects targets to be binary matrices (1s and 0s) of shape [samples, classes]."
@FrancoCervigni
@FrancoCervigni 5 жыл бұрын
So what is loss? Me: That's a meme
@thomasgibson1028
@thomasgibson1028 5 жыл бұрын
Franco Cervigni 😁
@sebastiendeseille9890
@sebastiendeseille9890 5 жыл бұрын
Wonderful project ! Thanks !
@codefun3168
@codefun3168 5 жыл бұрын
Great dan!!appreciate it..really inspired by you man!trying my best on my channel as well
@codefun3168
@codefun3168 5 жыл бұрын
Need your help as well to improve coding channels on youtube..
@codefun3168
@codefun3168 5 жыл бұрын
I find there are very less channels that promote coding.few are inactive..we need to bring BACK THE ENERGY!!
@L76videos
@L76videos 5 жыл бұрын
Can we read a folder to get images files from a browser?
@abduljalilabdallah9578
@abduljalilabdallah9578 5 жыл бұрын
Hello everyone, I have a question, I need to run a Php code when my is condition is true in p5.js. unfortunately it doesn't work like in normal Js. If(number
@vadsavin
@vadsavin 5 жыл бұрын
Is it possible to train models using "Teachable machine with google" not only to classify images, but to recogize where the objects are in the picture. So I want to get something like bounding boxes and classes of them for self-driving car with Raspberry Pi.
@igotapochahontas
@igotapochahontas 4 жыл бұрын
Could you possibly do an offline version? A simple classification that does not require cloud services after being downloaded locally?
@igotapochahontas
@igotapochahontas 4 жыл бұрын
Normally I just locally host the min.js file.... But I couldn't find that for ml5
@hadiriazi
@hadiriazi 5 жыл бұрын
What about classifying accelerator data (x,y,z) and determine standing, bowing, sitting ? Can I use the same approach? how about the data? how do I batch them ?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Yes, this could work! If you save your data to CSV or JSON you can load it directly into ml5. There are options to specify batch size and more, but ml5 will choose defaults for you.
@hadiriazi
@hadiriazi 5 жыл бұрын
The Coding Train great! Could you give me a head start or even better do a sample video on human activity recognition ? My main concern is how do I differentiate between bowing down and the reverse ... I just don’t know what would be each window’s data ?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
You would have to label the data, i.e. record it somehow while you are also recording the classification (standing, sitting, etc.). The issue is that accelerometer data is 0 when you are still (or moving at a constant velocity). So it might work better for classifying a motion!
@williamlehmus5371
@williamlehmus5371 3 жыл бұрын
Have I found a bug or is ML5js supposed to work like this. If you add 10 data points and then check model before training you'll find them in: model.neuralNetworkData.data.raw If you then train the model, and check again, the data has been copied to model.data.training I was kind of expecting ML5js to move the data rather than copy them. In my understanding it's something like this: model.data.training = Data points that have been trained on. model.neuralNetworkData.data.raw = Data not trained on yet. I was expecting the data to be moved from raw to training, because if you now add more data to the model, the old data will still remain thus creating a weighting towards the old data since it's added twice.
@ameynaik2743
@ameynaik2743 4 жыл бұрын
Great videos! Thank you. What is the default structure of the neural network in this case? I.e., number of hidden layers etc?
@ameynaik2743
@ameynaik2743 4 жыл бұрын
learn.ml5js.org/#/reference/neural-network - never mind found it here. Thanks!
@dimasandhikasury6128
@dimasandhikasury6128 5 жыл бұрын
Nice to see you again.. :)))) can you make "NEAT" videos for your flappy brain??
@DigitalAlligator
@DigitalAlligator 4 жыл бұрын
model.addData() how much data it can hold?
@rizkimramdani
@rizkimramdani 3 жыл бұрын
is this the same proccess if i want to train .jpg image file?
@landonbrown2542
@landonbrown2542 5 жыл бұрын
I love this guy :)
@liavofra
@liavofra 5 жыл бұрын
Hello Mr coding Train, i have some math function that i am wondering about the geometry. the function is from a model i made, ill be happy to show you the model and hopefully you can help.
@HoLeeFuk97
@HoLeeFuk97 5 жыл бұрын
how we train our image but they are in a folder? Sorry for my bad English
@Akosiyawin
@Akosiyawin 2 жыл бұрын
Can I use 1000 images as an input? How?
@8followsonik
@8followsonik 5 жыл бұрын
You can't play c sharp note, because it's JS. Kappa
@Brahvim
@Brahvim 3 жыл бұрын
xD
@TRT_MOOSIC
@TRT_MOOSIC 3 жыл бұрын
Hey but I cant get a graph o'er there!!
@CptUhudini
@CptUhudini 4 жыл бұрын
I'm new to machine learning and I'm using ml5js for a current project. So I have a .csv file and an image folder with thousands of images (from @muxspace on GitHub). The .csv file maps every image in the image folder to a facial expression. I just don't understand what inputs and outputs I have to write in my options to train the model. Any ideas?
@alexandrecsu
@alexandrecsu 4 жыл бұрын
How can I classify if I have inputs: "first_name", "last_name" and output: "gender"... what I am asking, what do I do if I have strings as imputs?
@angelcaru
@angelcaru 3 жыл бұрын
function getNumberArrayFromString(str) { const result = []; for (const char of str) { const cc = char.charCodeAt(0); result.push(map(cc, 0, 255, 0, 1)); } return result; }
@moonaddict
@moonaddict 3 жыл бұрын
Same question, did you find any solution?
@PyroFlamingo
@PyroFlamingo 5 жыл бұрын
Is anybody else having issues with the training? Dan's debug graph is so smooth but mine is all over the place and therefore when I test the prediction it is usually quite wrong.
@ahmadooof
@ahmadooof 3 жыл бұрын
that's so cool man
@tawnyop7275
@tawnyop7275 4 жыл бұрын
I was following along with this and I legit spent like 20 mins trying to figure out why mine wasn't working. I just woke up and realised I didn't put the options into the neutral network smh
@shubhrashukla7879
@shubhrashukla7879 5 жыл бұрын
Coding challenge: maybe you use the teachable machine or ML5 to classify a chord made by your hand and then you make it play the classified chord! That would be like a virtual ukelele
@Zippka_
@Zippka_ 5 жыл бұрын
is there something like this that I could use with Pyhton?
@ReinaldoAssis
@ReinaldoAssis 5 жыл бұрын
Nino Orešković High level Tensorflow
@selmirmuminovic551
@selmirmuminovic551 5 жыл бұрын
Thanks man!
@aradhyamodi7761
@aradhyamodi7761 5 жыл бұрын
Thanks bro
@gilberttheregular8553
@gilberttheregular8553 5 жыл бұрын
Finally!
@moonaddict
@moonaddict 3 жыл бұрын
Oh man I'm so disappointed, I spent hours getting the data, organizing it, solving the training issues, and then when I went to classify... Boom: "expected dense_Dense1_input to have shape [null,90] but got array with shape [1,1]"... Apparently string inputs are not allowed? :(
@moonaddict
@moonaddict 3 жыл бұрын
My dataset is a bunch of hexadecimals concatenated as a string, it's the data from a 3D map of a game, something like this: [{"map": "123456789", "changes": "geometry"}, {"map": "113556789", "changes": "particles"}] So, my goal was to get the label ("changes") identifying map changes based on its data as an input.
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
it would be fun to make an Arduino sorting drone, maybe collects certain shells along a big beach
@johncerpa3782
@johncerpa3782 5 жыл бұрын
awesome vid
@dmc5835
@dmc5835 5 жыл бұрын
Dan, can we get a a video on S.O.L.I.D principles?
@harshaaddanki4606
@harshaaddanki4606 3 жыл бұрын
TF Lite plz
@flamexode
@flamexode 5 жыл бұрын
const coding = ml5.neuralNetwork(1, 1); coding.train(); If you don't get it you don't know what channel you are watching.
@flamexode
@flamexode 5 жыл бұрын
Dang, really appreciate how deep you go through the comments to get the best one
@52.yusrilihsanadinatanegar79
@52.yusrilihsanadinatanegar79 4 жыл бұрын
SyntaxError: ml5 is not defined
@abhaykashyapa
@abhaykashyapa 3 жыл бұрын
There is a hole in your laptop(green screen lol)
@Gilotopia
@Gilotopia 5 жыл бұрын
Is ml5js using the GPU?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Yes! It uses your local GPU via WEBGL. (This is not the work of ml5, but rather tensorflow.js underneath the hood.)
@KnakuanaRka
@KnakuanaRka 4 жыл бұрын
Idea for how to improve on this: instead of manually picking points to predict, once you have the training data, have it do predictions for the entire canvas, and color each pixel according to the prediction (say, C, D, and E being red, yellow, and blue), so we can more precisely see what the network predicts.
@fabiano-co
@fabiano-co 2 жыл бұрын
Man, I was playing with p5.js and the page just crashed, everything was gone and the page is blank, I lost my entire code. lol
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
I am so sorry to hear about this! It can happen with online editors like p5, I hope you aren't too discouraged! Try to save often :)
@fabiano-co
@fabiano-co 2 жыл бұрын
The same code, reducing the number of columns and removing those ones with zeros, worked very well.
@prachetass
@prachetass 5 жыл бұрын
Dn know if iam being rude but Match 3 game please........
@ex1strides715
@ex1strides715 4 жыл бұрын
I want you to be my professor!
@thevoyageof67
@thevoyageof67 5 жыл бұрын
Sup Dan
ml5.js: Save Neural Network Training Data
12:46
The Coding Train
Рет қаралды 26 М.
Coding Challenge 183: Paper Marbling Algorithm
32:10
The Coding Train
Рет қаралды 80 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
What are Neural Networks || How AIs think
12:14
Code Bullet
Рет қаралды 617 М.
Collisions Without a Physics Library! (Coding Challenge 184)
31:05
The Coding Train
Рет қаралды 132 М.
Evolving Genetic Neural Network Optimizes Poly Bridge Problems
9:59
10.2: Neural Networks: Perceptron Part 1 - The Nature of Code
44:39
The Coding Train
Рет қаралды 504 М.
ml5.js: What is a Convolutional Neural Network Part 1 - Filters
28:04
The Coding Train
Рет қаралды 56 М.
Image Classification with ml5.js
31:50
The Coding Train
Рет қаралды 25 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 1,1 МЛН
Machine Learning in JavaScript with ml5.js
54:04
freeCodeCamp.org
Рет қаралды 40 М.
Installing 100 Viruses - Calling Tech Support Scammers
12:55
Kitboga
Рет қаралды 6 МЛН
ml5.js: Training a Convolutional Neural Network for Image Classification
18:36