No video

155 - How many hidden layers and neurons do you need in your artificial neural network?

  Рет қаралды 53,427

DigitalSreeni

DigitalSreeni

Күн бұрын

Пікірлер: 87
@JoaoPedro-px5sx
@JoaoPedro-px5sx 3 жыл бұрын
Those were some of the best explanations about hidden layers and numbers of neurons I could find, also making it very easy to see in your python plots. Keep up the good work!
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Great to hear!
@Samb12331
@Samb12331 Ай бұрын
You are an amazing teacher, I hope this comment reaches you well! This is some top class free content! Thank you!
@dinhh4248
@dinhh4248 3 жыл бұрын
16:36 is the answer for how many layers do you need
@NM-el6ps
@NM-el6ps 3 жыл бұрын
Thank you so much
@nate4511
@nate4511 3 жыл бұрын
Finally, someone who speaks math. Thank you sir
@poffer31
@poffer31 3 жыл бұрын
The approach to explaining it trough linear regression was very useful for me, thank you!
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Great to hear!
@andrewkicha1628
@andrewkicha1628 Жыл бұрын
Such a wonderful explanation to the really fundamental question. I wonder why there is so little accessible information for beginners on this topic. Thanks a lot for the video.
@PatrickBateman12420
@PatrickBateman12420 Жыл бұрын
Finally, an explanation that goes straight into code. Awesome!
@abhilashchaturvedi1479
@abhilashchaturvedi1479 2 жыл бұрын
I really loved your approach. You are explaining the technicalities and discussing the various possibilites while staying on the subject. It's thorough. With other youtubers, I felt like they were too basic and missing the crucial implementation part. Thankyou!
@AdobadoFantastico
@AdobadoFantastico 2 жыл бұрын
This is a fantastic explanation. I really appreciate how you involved the math as you walked through your implementation. A lot of people hand wave the math.
@wuzark
@wuzark Жыл бұрын
This is such an intuitive and helpful video. I can see that there is a lot of hard work behind this video. Great job!
@vaibhavs2522
@vaibhavs2522 4 жыл бұрын
I don't know why there are too few likes on such an awesome video..you are really great sir.
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
So nice of you
@3DComputing
@3DComputing 3 жыл бұрын
Strange isnt it, so many people asking THIS question, and so few people can answer it, THANK YOU
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Well, I try to answer it but in reality it is difficult to definitively answer this question as so much depends on the nature of input data.
@HK-jw2et
@HK-jw2et 2 жыл бұрын
@@DigitalSreeni kzfaq.info/get/bejne/pqqIl8-J0cenk6M.html Hey. Can you pls help me in understanding how many nodes he used in this project. It's a project based on recognising sign language
@WahranRai
@WahranRai 2 жыл бұрын
22:55 Rule 3 contradiction with rule 2 : input = 50, output = 50 . rule 2 gives hidden
@devishaarunadevitiwari3988
@devishaarunadevitiwari3988 2 жыл бұрын
Thanks for giving clarity on such an important notion. worth it.
@error220.5v5
@error220.5v5 7 ай бұрын
great video. inlike ecuations.
@pramishprakash
@pramishprakash Жыл бұрын
Great video sir
@troupebase2292
@troupebase2292 2 жыл бұрын
Thank you for this decent explanation
@vanithas4336
@vanithas4336 Жыл бұрын
Amazing..helps me lot for my research work. Thanks
@yacineyacine2951
@yacineyacine2951 2 жыл бұрын
this video is like finding gold ... thannnk youuu
@HK-jw2et
@HK-jw2et 2 жыл бұрын
kzfaq.info/get/bejne/pqqIl8-J0cenk6M.html Hey. Can you pls help me in understanding how many nodes he used in this project. It's a project based on recognising sign language
@aqibfayyaz1619
@aqibfayyaz1619 3 жыл бұрын
Awesome video that is what i was looking for.
@madhumitagiribabu
@madhumitagiribabu 3 жыл бұрын
thanks much sir found right content after long search
@cyruskavwele5304
@cyruskavwele5304 2 жыл бұрын
Fantastic explanation.
@momchi2
@momchi2 2 жыл бұрын
many good hints and insights here
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Thanks
@neerav302
@neerav302 3 жыл бұрын
You are awesome .. you taught me this topic like pro
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Glad to hear that
@tahseen4790
@tahseen4790 4 жыл бұрын
Thanks a lot. I regularly watch your Videos.
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Thanks for watching my videos, I donate all money from KZfaq advertisements to charity so please thanks for your contribution by watching part of the advertisements.
@RajeshSharma-bd5zo
@RajeshSharma-bd5zo 4 жыл бұрын
Great video and well explained!!
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Thanks
@shubhamsongire6712
@shubhamsongire6712 2 жыл бұрын
Powerful explination
@rfreeman057
@rfreeman057 2 жыл бұрын
Excellent video!
@ahmedmoayadalhasani
@ahmedmoayadalhasani Жыл бұрын
Hi Sreeni, I had a significant mistake and training and test data differences. This, in my opinion, is due to the huge values of the output response numbers, which have increased from 64 to over a thousand. Please, how can I resolve this issue? Can I divide them by their maximum value to fix the issue? What do you prefer, please?
@surajshah4317
@surajshah4317 4 жыл бұрын
wow, thank you so much for the great video. Sir can you make videos on segmentation using GAN and UNet ??
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
They are already on my channel. Please explore videos on my channel.
@danielniels22
@danielniels22 2 жыл бұрын
thanks sir, this is such an enlightenment 😂 ive been using 4 or even 6 layers by thinking that the model could learn very deep, like some unrecognized patterns 🤣🤣 but turns out just use 1 to 2 😭😭 thanks sir, im new to your channel this week btw 🙏
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Great to hear!
@heliyahasani6859
@heliyahasani6859 2 жыл бұрын
Least Squares Optimizer is same as Analytical Solution.(Wrote this comment to avoid confusion :) )
@lakeguy65616
@lakeguy65616 2 жыл бұрын
adding hidden layers without activation functions is essentially linear regression. If the problem is linearly separable, you can find a solution. complex problems with non-linear solutions require hidden layers with activation functions. A more complex solution requires a higher number of hidden layers and activation functions. The "magic" is in the activation function.
@grdev3066
@grdev3066 3 жыл бұрын
"If your problem can be solved with linear fitting..." Me: trying to survive 2020 ...
@mojoway9379
@mojoway9379 3 жыл бұрын
Thanks for the video very helpful
@shivamsingh-fn8vz
@shivamsingh-fn8vz 2 жыл бұрын
ok so my doubt is i read on stack exchange and also ur 3 rd point in node section that neuron size should be 2/3 of input size so here the input size is equals to number of unique features or length of features input (len of dataset) and also 2/3 neuron = all the neurons in all the layers or only in single layer
@tso8761
@tso8761 3 жыл бұрын
17:53 we can use dropout technique to reduce overfitting btw
@ssonicmoumed
@ssonicmoumed 3 жыл бұрын
Thank you, great explanation.
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Glad it was helpful!
@abderrahmaneherbadji5478
@abderrahmaneherbadji5478 4 жыл бұрын
Many thanks
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
You're welcome.
@pallavi_4488
@pallavi_4488 2 жыл бұрын
you are worth listening
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Thank you very much.
@tharindukanchana2077
@tharindukanchana2077 3 жыл бұрын
Thank you sir, very nice explanation
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
You're most welcome
@hahavv7058
@hahavv7058 3 жыл бұрын
excellent vedio that give me great help!think you sir~
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
You are most welcome
@shipengxu
@shipengxu 2 жыл бұрын
Thanks!
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Thank you for your kind contribution. Keep watching.
@aomo5293
@aomo5293 Жыл бұрын
error again when calculating mean squared error ! line 71 you should use: np.mean((y_test--pred)**2) not np.mean(y_test-y_pred)**2 !! Thank you for good content
@kakshah
@kakshah 4 жыл бұрын
Hi, thank you, may I know which tool is used to make this video?
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Not sure what you are asking... can you be a bit specific?
@SomenathChakraborty
@SomenathChakraborty 2 жыл бұрын
Could you provide the data source details but it is very small dataset with very limited parameter. But I appreciate your video for clear clarification of the concept.
@tesfayeabera4978
@tesfayeabera4978 3 жыл бұрын
please I need an explanation of how to increase the layer of deep belief network from three-layer to more than 6 and its advantages and disadvantage .
@tehpson
@tehpson 2 жыл бұрын
OMG thank you, I finallyu understand
@ad.donielson
@ad.donielson Жыл бұрын
How about neural network without hidden layer for classification?
@lerneninverschiedenenforme7513
@lerneninverschiedenenforme7513 3 жыл бұрын
I didn't understand what's happenning, when the number of hidden nodes increase. Does that also lead to overfitting?
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Yes, increasing the number of nodes will also lead to overfitting. Anything that increases the nonlinearity in the model and makes it easy for the model to map training data will lead to overfitting.
@lerneninverschiedenenforme7513
@lerneninverschiedenenforme7513 3 жыл бұрын
@@DigitalSreeni Thank you!
@domenicobezuidenhout1587
@domenicobezuidenhout1587 3 жыл бұрын
For my thesis I am using weather data to predict future values using the CNN but for my loss and Val loss I get nan values? Do you know of a way I could fix this sir?
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
There are many reason why you’d get a NaN for loss and the most probably reason is high learning rate. If your learning rate is 0.01 try changing it to 0.001 and see if that helps.
@somewhereinparallelunivers4226
@somewhereinparallelunivers4226 3 жыл бұрын
I have 7lakhs data.so can you suggest me how many neuron can i use for my neural network.. i am using curve fitting neural network.
@dikshitlenka
@dikshitlenka 3 жыл бұрын
Can't we use Keras Tunner to find the exact number of layers and neurons required in the network?
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Keras is for hyperparameter tuning and I don't think it is for defining models. I may be wrong as I haven't explored Keras tuner much. If your goal is to find the best model for you problem I recommend AutoKeras.
@pfever
@pfever 2 жыл бұрын
10:43 I think that if the learning rate is too small it could get 'stuck' in a local minima, isn't it?
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Depends on the problem.
@TheConsoleMania
@TheConsoleMania 2 жыл бұрын
the number of neurons in both hidden layer, should be the same?
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
No, they can be anything.
@TheConsoleMania
@TheConsoleMania 2 жыл бұрын
@@DigitalSreeni yeah, but if I follow the rules in the video, i obtain about 12 neurones. This number should be the same on both hidden layer ? Or maybe the second one should be smaller ?
@TheConsoleMania
@TheConsoleMania 2 жыл бұрын
@@DigitalSreeni I have 12 input and 1 output
@NoamRathaus
@NoamRathaus 3 жыл бұрын
TLDR; 1 or 2 hidden layers - or just guess because he doesnt know
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
This is an educational video intended to train the viewer on the implications of number of neurons and hidden layers. In fact, I try to design my content such a way that the viewer gains incremental knowledge on a specific topic. I am sorry if the title set a different expectation to you.
@user-mb6mv2do6g
@user-mb6mv2do6g 2 жыл бұрын
سلام.Hi
156 - How to limit GPU memory usage for TensorFlow?
5:58
DigitalSreeni
Рет қаралды 13 М.
154 - Understanding the training and validation loss curves
27:47
DigitalSreeni
Рет қаралды 104 М.
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 48 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 86 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 166 МЛН
How Many Hidden Layers and Neurons does a Neural Network Need
4:35
I Built a Neural Network from Scratch
9:15
Green Code
Рет қаралды 261 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 282 М.
Residual Networks and Skip Connections (DL 15)
17:00
Professor Bryce
Рет қаралды 40 М.
Batch Normalization - EXPLAINED!
8:49
CodeEmporium
Рет қаралды 105 М.
Why Neural Networks can learn (almost) anything
10:30
Emergent Garden
Рет қаралды 1,2 МЛН
The Wrong Batch Size Will Ruin Your Model
7:04
Underfitted
Рет қаралды 16 М.
Neural Network Architectures & Deep Learning
9:09
Steve Brunton
Рет қаралды 785 М.
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 48 МЛН