Image classification using CNN (CIFAR10 dataset) | Deep Learning Tutorial 24 (Tensorflow & Python)

  Рет қаралды 462,007

codebasics

codebasics

3 жыл бұрын

In this video we will do small image classification using CIFAR10 dataset in tensorflow. We will use convolutional neural network for this image classification problem. First we will train a model using simple artificial neural network and then check how the performance looks like and then we will train a CNN and see how the model accuracy improves. This tutorial will help you understand why CNN is preferred over ANN for image classification.
Code: github.com/codebasics/deep-le...
Exercise: Scroll to the very end of above notebook. You will find exercise description and solution link
Do you want to learn technology from me? Check codebasics.io/?... for my affordable video courses.
Deep learning playlist: • Deep Learning With Ten...
Machine learning playlist : kzbin.info?list...
#cnn #cnnimageclassification #imageclassificationpython #cnnmodel #deeplearning #tensorflowimageclassification #pythonimageclassification
🌎 My Website For Video Courses: codebasics.io/?...
Need help building software or data analytics and AI solutions? My company www.atliq.com/ can help. Click on the Contact button on that website.
#️⃣ Social Media #️⃣
🔗 Discord: / discord
📸 Dhaval's Personal Instagram: / dhavalsays
📸 Codebasics Instagram: / codebasicshub
🔊 Facebook: / codebasicshub
📱 Twitter: / codebasicshub
📝 Linkedin (Personal): / dhavalsays
📝 Linkedin (Codebasics): / codebasics
🔗 Patreon: www.patreon.com/codebasics?fa...
DISCLAIMER: All opinions expressed in this video are of my own and not that of my employers'.

Пікірлер: 330
@codebasics
@codebasics 2 жыл бұрын
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
@nagababuyerramsetti8715
@nagababuyerramsetti8715 3 ай бұрын
sir plese plese reply i am doing a project on pcb defect detection using cnn model please help me out i am not getting it please help me
@lucianoval903
@lucianoval903 3 жыл бұрын
From Brazil, you are the best ML teacher!!! Thank you.
@codebasics
@codebasics 3 жыл бұрын
Thanks Luciano for your kind words
@nilanjanap
@nilanjanap 2 жыл бұрын
Excellent tutorials much better than many highly paid course floating online..Thanks a lot sir ..your videos helped me lot ...
@albertoramos9586
@albertoramos9586 2 жыл бұрын
You are so much better than my university tutors :-D Thanks a lot for your help!
@rb4754
@rb4754 8 ай бұрын
Your tutorials are truly outstanding, surpassing many paid online courses. I want to express my deep appreciation for the invaluable support they've offered. Your detailed explanations of each code line have been incredibly helpful, particularly when I'm teaching machine learning to my students. Your videos provide a level of comprehension and utility that distinguishes them from other machine learning resources. Your efforts are greatly appreciated... Cheers!!!!!!!!!!!!!!!!💥💫💢
@Manojrohtela
@Manojrohtela 2 жыл бұрын
as you teach all concepts even a primary student can understand it easily. Seriously big fan of your teaching style
@ChessLynx
@ChessLynx 2 жыл бұрын
I am a young Ai and machine learning engineer from a IIIT and your videos are like food for me if i don't eat then I can't live .Great explanation ... finally I commented after watching tons of your videos daily . Salute to your spirit sir you will reach 10 M subs soon cause AI and ML is growing exponentially and your videos in this direction in serving as no. 1 you tube channel for simple explanations on Practical AI,ML coding and more people will join with you soon and soon...
@codebasics
@codebasics 2 жыл бұрын
Ha ha .. thanks for your kind words of appreciation my friend :)
@bumjunoh6233
@bumjunoh6233 2 жыл бұрын
From South Korea, Learning Much Faster, Accurate than Univ. Thanks
@codebasics
@codebasics 2 жыл бұрын
🤗🤗🙏
@SoulFrmTitanic
@SoulFrmTitanic 2 ай бұрын
We Asians are for us ❤
@tesfitgi7579
@tesfitgi7579 5 ай бұрын
Indeed you are an excellent tutor. Your efforts are greatly appreciated .I am fun of you. I AM an AI and machine learning outreach ,you pave me the way .Thanks a lot for you support
@mayankpatil7303
@mayankpatil7303 2 жыл бұрын
Thank you sir! Teaching is also a skill and you nailed it!
@bhaskargg6018
@bhaskargg6018 2 жыл бұрын
the important CNN concept is explained in superb and simple to understand , Thanks a lot
@rishavbhattacharjee7182
@rishavbhattacharjee7182 3 жыл бұрын
Exciting Times!! May this series long continue😁
@codebasics
@codebasics 3 жыл бұрын
yes it will. My goal is to cove all the topics and make this your one stop place for deep learning
@michelletan4249
@michelletan4249 Жыл бұрын
Excellent tutorials much better than my professor! You are the best! thank you so much! your videos helped me a lot....
@Lina-cy9ln
@Lina-cy9ln 2 жыл бұрын
You are the best teacher of mine. I'm grateful to you always. Thanks a lot, sir.
@codebasics
@codebasics 2 жыл бұрын
Zeenat, thanks for you kind words
@sabrinazahir01
@sabrinazahir01 3 жыл бұрын
I started to learn ml after getting inspirations from your videos. Thank you !
@codebasics
@codebasics 3 жыл бұрын
Happy to hear that sabrina!
@anishachakravorty1395
@anishachakravorty1395 2 жыл бұрын
@@codebasics lol lo
@anishachakravorty1395
@anishachakravorty1395 2 жыл бұрын
Plpp
@anishachakravorty1395
@anishachakravorty1395 2 жыл бұрын
Pl
@anishachakravorty1395
@anishachakravorty1395 2 жыл бұрын
@@codebasics pl
@santoshkumarmishra441
@santoshkumarmishra441 3 жыл бұрын
great job sir.....keep making videos love to watch and learn from your videos
@sandiproy330
@sandiproy330 Жыл бұрын
Very good explanation with a clear easily understandable video. Thank you for your tutorial. Loved it.
@archenemy49
@archenemy49 2 жыл бұрын
You are really inspirational and have so much to idolize. Thank you!
@codebasics
@codebasics 2 жыл бұрын
Glad it was helpful!
@prachidoshi9082
@prachidoshi9082 3 жыл бұрын
how come you tube did not recommend me this way before. Your videos are just perfect for people who want to learn Deep Learning and want to overcome the fear of AI
@pa5119
@pa5119 3 жыл бұрын
Such a Good Content. I am really exciting for upcoming videos.
@codebasics
@codebasics 3 жыл бұрын
Glad to hear that
@techguyz839
@techguyz839 Ай бұрын
REALLY A GOOD VIDEO , i finally understood implementing CNN using CIFAR10
@RadhakrishnanBL
@RadhakrishnanBL Жыл бұрын
Excellent demo, saved my time.
@ivoroupa2925
@ivoroupa2925 8 ай бұрын
Excellent content! Thank you very much.
@saadmuhammad4890
@saadmuhammad4890 3 жыл бұрын
Thank you so much! Your tutorials are very helpful
@codebasics
@codebasics 3 жыл бұрын
Glad you like them!
@yoverale
@yoverale 28 күн бұрын
Amazing tutorial, thanks a lot for sharing! Saludos desde Argentina! 🇦🇷
@user-ry5ks3hg6y
@user-ry5ks3hg6y 3 жыл бұрын
Thank you a lot! You helped me with my project!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@BhautikaPatel-gg3ij
@BhautikaPatel-gg3ij 2 ай бұрын
All the way superb!!!! All videos.
@lindadelalifiasam5878
@lindadelalifiasam5878 2 жыл бұрын
thank you soo much. from the knowledge i gained from this video, i decided to also increase the number of epochs in the first network(ann) from 5 to 10 and that led to a slight increase in the training accuracy(0.49 to 0.54). and for the cnn i intentionally decided first use the SDG optimizer and later the adam which also gave two different but better results than the ann. i also adjusted the epochs in each case. this has given me some more ideas to play around with, with regards to this model. once again thank you for bn such a great teacher
@ahmedhelal920
@ahmedhelal920 2 жыл бұрын
me too i searched for my issue accuracy was 10 % and no increase however i increased hidden layers epochs , but what help me is changing the softmax to sigmoid and the number of hidden units it was 4 on my project here i found it 3000 , it increase my accuracy too , but based on what he choosed 3000 and 1000 hidden units ?
@dheerajvasudevaraovelaga6006
@dheerajvasudevaraovelaga6006 7 ай бұрын
@@ahmedhelal920 More hidden units will recognize more patterns and more features, which will help if your images have many patterns and objects. It is always recommended to use more hidden units on layers and decrease it after every layer to reach a better solution.
@zainulabideen_1
@zainulabideen_1 9 ай бұрын
I love your way of teaching
@mohammadhosseinjafari5621
@mohammadhosseinjafari5621 Жыл бұрын
really good explanations. thanks for your great help
@jogadornumerozero3257
@jogadornumerozero3257 Жыл бұрын
someone give this man a life elixir, he must give this knowledge for all the future generations
@8shounak
@8shounak 3 жыл бұрын
very nicely explained brother. Loved the teaching style and followed the explanation
@codebasics
@codebasics 3 жыл бұрын
😊😊👍
@sankistudio1771
@sankistudio1771 17 күн бұрын
Thank you sir, excellent explanation
@priyanshujadon3442
@priyanshujadon3442 3 жыл бұрын
Your videos are very good...you explain every line of code...it really helps me a lot to teach ML to my students...your videos are even more useful then other ML videos...👌😊
@codebasics
@codebasics 3 жыл бұрын
Glad you like them!
@khanwali9672
@khanwali9672 3 жыл бұрын
Hi Thank you for all your tremendous work you make fall in love with Machine learning. don't you dare to stop;) Thank you so so so much.
@codebasics
@codebasics 3 жыл бұрын
Thanks for your kind words khan ☺️ and yes now after reading your comment I am not going to stop 😉
@khanwali9672
@khanwali9672 3 жыл бұрын
@@codebasics bless you.
@elma2577
@elma2577 2 жыл бұрын
Excellent explanation. 👏
@gauravshah8554
@gauravshah8554 3 жыл бұрын
You are superb in teaching. Please make video on how to deploy such trained models to production.
@JapiSandhu
@JapiSandhu 3 жыл бұрын
Awesome really like the face to face introduction
@codebasics
@codebasics 3 жыл бұрын
Glad you like it
@rishanVJrathne
@rishanVJrathne 6 ай бұрын
Thank you, It is a great tutorial😍 on CNN
@snehasneha9290
@snehasneha9290 3 жыл бұрын
Tq so munch sir for continuing this series amazing content supreb nice explantion
@codebasics
@codebasics 3 жыл бұрын
You're most welcome sathiya
@maxgriffiths6968
@maxgriffiths6968 3 жыл бұрын
Excellent video. Thank you
@codebasics
@codebasics 3 жыл бұрын
I am happy this was helpful to you.
@sukumarroychowdhury4122
@sukumarroychowdhury4122 3 жыл бұрын
Mr. Modi (Mr. Patel) is one side and rest Opposition (Data Science KZbinr) is on the other side. I really envy you (ONIDA TV) and you command that envy with your highest excellence. I am a retired Sr. Citizen and love data science (not because I understand it) but because of the amazing things that Amazon and Tesla and Google are doing.. Please keep going..and may God give you a very long life..
@AdityPai
@AdityPai 3 жыл бұрын
Thank you for the efforts you put in all these vedios, it is giving us a clear image of what is happening in each part. Thanks alot
@sohailali5741
@sohailali5741 3 жыл бұрын
Thank you so much for detailed tutorial. Can you please make a video on Object detection? Specially Faster RCNN and Yolo models.
@shuaibalghazali3405
@shuaibalghazali3405 7 ай бұрын
Thank you very much sir for this 😊
@sanooosai
@sanooosai 5 ай бұрын
great sir thank you
@payamtorna2
@payamtorna2 2 жыл бұрын
very nice videos thank you so much bro :)
@samirkouiderbouabdallah9392
@samirkouiderbouabdallah9392 3 жыл бұрын
thank you very much sir
@sandhyabansal5264
@sandhyabansal5264 Жыл бұрын
Very lucid explanation
@mainuddinali9561
@mainuddinali9561 Жыл бұрын
GREAT SIR
@mekdesmekonnen2242
@mekdesmekonnen2242 2 жыл бұрын
Brilliant!
@pawanagrawal7653
@pawanagrawal7653 3 жыл бұрын
sir I am really appreciated, the way you teach all the concepts related to CNN, and how to build it, sir how can get more accuracy using Keras tuner, please make a video on that.
@RanjitSingh-rq1qx
@RanjitSingh-rq1qx Жыл бұрын
Tq u 💯 much sir, this video is very helpful.😍❤️🌹👍🥰🇮🇳
@jeffallenmbaagborebob5869
@jeffallenmbaagborebob5869 3 жыл бұрын
You are the best by far
@codebasics
@codebasics 3 жыл бұрын
I am happy this was helpful to you.
@talesbyreza
@talesbyreza Ай бұрын
awesome
@jyotiprakashnayak2117
@jyotiprakashnayak2117 3 жыл бұрын
Realy sir I like your teaching way
@codebasics
@codebasics 3 жыл бұрын
Thanks and welcome
@notavailable3331
@notavailable3331 3 жыл бұрын
thanks a lot sir for your explanation. i got accuracy of 98.97% using cnn model
@codebasics
@codebasics 3 жыл бұрын
Great job
@rizabekkorabay108
@rizabekkorabay108 3 жыл бұрын
Can you share with your code?
@user-xy5sd8my2e
@user-xy5sd8my2e 3 жыл бұрын
I’m from Taiwan. It’s really helpful
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@amazighkab9904
@amazighkab9904 2 жыл бұрын
amazing
@shreyasb.s3819
@shreyasb.s3819 3 жыл бұрын
Really nice video...its helped me lot... I want you to start Audio, Video processing tutorial also because I like it your teaching skills.
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@AHMADKELIX
@AHMADKELIX 2 жыл бұрын
permission to learn sir. thanks you
@bassemessam3002
@bassemessam3002 3 жыл бұрын
Thank you so much for this great tutorial. It is really helpful. I have a question, you used 'sparse crossentropy' in prediction and it's supposed to return the class number but the output of y_pred is an array of the probability of each class, and to get the predicted class we used argmax function to get the index of maximum value?
@vaishalibalaji886
@vaishalibalaji886 2 жыл бұрын
Hello Bassem, "Sparse categorical cross entropy" is the loss function to be used when the actual output Y in the dataset is not in the one hot encoded format. And, sir has used "softmax" as the final activation function in the code showed in the video. It is because of this function that the final output, y_pred is an array of the probability of each class. Hence, finally in order to get the index position of the maximum probability value, which is typically the output class predicted by the CNN model, sir has used the np.argmax function.
@khalilturki8187
@khalilturki8187 2 жыл бұрын
Great Work! keep it up!
@codebasics
@codebasics 2 жыл бұрын
Thanks a lot!
@aloksheth7477
@aloksheth7477 2 жыл бұрын
Thanks for nice explanation. Easy to understand the concepts. Can you make video for region CNN and faster R CNN?
@moinafatima7990
@moinafatima7990 3 жыл бұрын
You are doing an amazing work.. I really get intrest in ml after watching your video explanation.. Sir I'm work on project "image classification using deep neural network" The data set is *CIFAR 10*. Paper on which I'm working it already has 80.2% of accuracy . So by using deep neural network algorithms can I make accuracy beyond 80%
@mehdisoleymani6012
@mehdisoleymani6012 2 жыл бұрын
Thanks a lot for your great courses, is it possible for you to explain my question? How should we add non-image features to our CNN model (features like cat and dog prices) to our flatten layer? Does the CNN model new added features belong to which input image?
@rulaalsamarie3607
@rulaalsamarie3607 2 жыл бұрын
Thank you 🙏
@codebasics
@codebasics 2 жыл бұрын
Glad it was helpful!
@debojyotisinha5031
@debojyotisinha5031 3 жыл бұрын
Your approach is very well. You can explain the topics so well and easy to understand the complex topic.
@codebasics
@codebasics 3 жыл бұрын
Glad to hear that, I am happy this was helpful to you.
@daggerdudes9211
@daggerdudes9211 3 жыл бұрын
Your classes are really beginner friendly and I have a doubt will adding more layers improves the accuracy
@codebasics
@codebasics 3 жыл бұрын
yes it might. you can try adding them. sometimes too many layers will overfit a model and while accuracy improves on training set, on test set it might perform poorly. You can use regularization techniques such as adding dropout layer to tackle these issues partially
@a57_nikeshsinghajaysinghba89
@a57_nikeshsinghajaysinghba89 3 жыл бұрын
Can you suggest some good final year project ideas related to image classification. I'll be grateful
@tomcat9761
@tomcat9761 2 жыл бұрын
Nice tutorial sir. Can you create a chatbot using ANN? I would like to know how you will test that. Thanks!
@sergiochavezlazo5362
@sergiochavezlazo5362 Жыл бұрын
I found something very important. When you reshape your y into 1 dimension, save it in a different variable and use the original one (2d) in the training and test process. Otherwise, the results change a lot
@umer_c0des330
@umer_c0des330 9 ай бұрын
Why results change alot?
@mrkrupeshpatel
@mrkrupeshpatel 2 ай бұрын
Very nice explanation on CNN.... how you can simplify such complex topics ? You must be having rich experience in this field...😊
@mach9libra
@mach9libra 3 жыл бұрын
Hello, can you please guide for the K-NN, MLP, CNN, Decision Tree, K-Mean Clustering, regression to solve this CIFAR-10 dataset problem. And compare the accuracies for each of the methodologies used.
@zaindurani8168
@zaindurani8168 3 жыл бұрын
No one in universe can teach like this
@codebasics
@codebasics 3 жыл бұрын
Thanks zain for your kind words
@alexandrosiii5676
@alexandrosiii5676 3 жыл бұрын
I want to use the weights in the hardware upper model in the model. So how do I print out that weight (I'm a beginner)
@shaantanukulkarni5668
@shaantanukulkarni5668 3 жыл бұрын
nice!!!
@codebasics
@codebasics 3 жыл бұрын
Thank you! Cheers!
@nikhildaram3354
@nikhildaram3354 5 ай бұрын
how to split the image data into training and testing in folders
@fitnessismypassion
@fitnessismypassion 4 ай бұрын
Hi, thanks for the clear explanation. I was wondering why you did not use softmax activation function in the last layer instead of sigmoid? As far as I know, softmax is preferred in multiclass problems (like in this case) and sigmoid is used for binary classification problems. Let me know and I appreciate your answer in advance.
@samruddhianikhindi7341
@samruddhianikhindi7341 Жыл бұрын
can i use a similar cnn for object recognition? I want to give multiple labels for each image and in the output i would need the bounding boxes and the corresponding predicted label. How to prepare the dataset accordingly if i were to implement a cnn implemented in the video?Or are there any other deep learning models i could build for this application?
@kmedia5759
@kmedia5759 2 жыл бұрын
Thank you model.evaluate:10000/10000 [==================] - 1s 57us/sample - loss: 0.0275 - accuracy: 0.9910
@tonyennis1787
@tonyennis1787 2 жыл бұрын
Great video. I was hoping you'd visualize the CNN kernels so we could see what they looked like. You specified 32 of them. Does this mean that all 32 are used in every image, and thus are meaningful in every case? that is, you won't have one what has a koala's eyes because the input images also include, say, rocks, buildings, and GPU cards?
@ajaykundu6446
@ajaykundu6446 3 жыл бұрын
Sometimes i have thoughts in my mind that is this really happening or is this valuable( i am not judging or not even assuming) as this type of course are paid and with huge amount of money with high demand but how you can give this for freeee ??????? How sir how ??? Hats off👍👍👍👍👍and big thanks 👌👌👌 🙏🙏🙏🙏 I think this learning won't be stopped ever from you.
@codebasics
@codebasics 3 жыл бұрын
ha ha... that's a nice way of appreciating my work Ajay. Thank you. Well this course is not free, the fee you need to pay is share this with as many as you can (via linkedin, watsapp, facebook groups, quora etc) :)
@ajaykundu6446
@ajaykundu6446 3 жыл бұрын
@@codebasics will do it definitely ✌✌Long live developers👍👍👍
@vishnucruz4529
@vishnucruz4529 11 ай бұрын
Could you explain in detail about the reshaping process, on why its necessary ?
@mukthaaa3506
@mukthaaa3506 3 жыл бұрын
Sir, can you please show us how to plot the accuracy curve for the cnn model
@biswajitpatra5411
@biswajitpatra5411 2 жыл бұрын
@codebasics why flattening again in model when reshape() is used to do it ??
@mrCetus
@mrCetus 2 жыл бұрын
Sir thanks for an amazing video. I am having a little trouble visualising the numpy array and how the pixel values are stored to eventually form the image, any video link you'd suggest for that please?
@sethlawson2389
@sethlawson2389 2 жыл бұрын
Hi, an image is represented by a numpy vector of shape 3 x Height x Width. The 3 is because color is represented by red, green, and blue intensity values. So each position in an array represents the intensity of one of three colors at a specified height and width location in the image. Here is a visual representation of a vectorized image being convolved over. i.stack.imgur.com/2ezvr.gif Fun to note that this is the same information that human brains work with. Cone cells in the eye are optimized to one of three regions in the electromagnetic spectrum corresponding to RGB, which activate impulses based on the intensity of that wavelength of light. Though the human brain also has to do some transformations on the data, namely flipping and reflecting it, since the human eye works like a pinhole camera.
@keshavgoyal3106
@keshavgoyal3106 3 жыл бұрын
sir how i convert the prediction into csv file with column names (filname and label)
@sanskartewatia4320
@sanskartewatia4320 2 жыл бұрын
convert to pandas dataframe and just execute - df.to_csv('df.csv')
@XChinaX00
@XChinaX00 2 жыл бұрын
Thank you for the awesome tutorial. I have one question. Is there a way so I could give a path to one folder and then it would classify images which are in it using this model?
@codebasics
@codebasics 2 жыл бұрын
Yes you can use tensorflow dataset pipeline for that watch TF data pipeline tutorial in this same playlist
@XChinaX00
@XChinaX00 2 жыл бұрын
@@codebasics Thank You, I'll definitely watch it.
@dariovicenzo8139
@dariovicenzo8139 2 жыл бұрын
Hi beautiful video! I have some special image in Black and white to be classified. I have two questions: 1. Do you think it is better to colorize them in order to improve the predicion? 2. If yes at the first question, what is a suitable technique to add colors? Thanks a lot.
@prvs2004
@prvs2004 2 жыл бұрын
Not necessary as long as your test or prediction is also B&W
@deepaliaggarwal6429
@deepaliaggarwal6429 2 жыл бұрын
I have one doubt.. like here we are working for colored images , we have 3 channels RGB , so do we need filters also different for all the channels or there will be only 1 filter?
@ahmedhelal920
@ahmedhelal920 2 жыл бұрын
Hi sir , based on what we can choose 3000 hidden units and 1000 hidden units on our project ?
@mahammadaliyev8345
@mahammadaliyev8345 Жыл бұрын
I love your lectures Sir ! Thank you for your efforts and works. I have question , how did you Get accuracy ~90% with 10 epochs while i get hardly 10% with 25+ epochs?
@kunalrastogi6530
@kunalrastogi6530 Жыл бұрын
facing same problem
@a57_nikeshsinghajaysinghba89
@a57_nikeshsinghajaysinghba89 3 жыл бұрын
Hey your content is great!! I just wanted to make a request that datasets of image classification are generally folder based like for example when we download a dataset from kaggle, so I request you to please share a video or any good resource to read the images from folders and use it like we have used it in this video for image classification. Thank you!
@codebasics
@codebasics 3 жыл бұрын
yes I have covered that in my sports celebrity classification project. Check it out. it is an entire playlist but the thing that you mentioned is covered in one of the videos.
@a57_nikeshsinghajaysinghba89
@a57_nikeshsinghajaysinghba89 3 жыл бұрын
@@codebasics Thank you very much!!
@pradyumsingh2638
@pradyumsingh2638 3 жыл бұрын
okay i got the procedure thanks, but what to do if we want to provide our own datasets
@kirankumarb2190
@kirankumarb2190 3 жыл бұрын
Sir, one small doubt.. you said that we can use categorical_crossentropy when there is one hot encoded output pattern.. but in this example we used sparse_categorical_crossentropy , but still we used 10 output neurons and output was considered as max of that...which is like one hot encoding only right..
@siddharthsingh2369
@siddharthsingh2369 2 жыл бұрын
The 10 output neurons gives the probability of each true possibility and its value will be ranging in 0 - 1 and in order to get the index position of the maximum probability value, which is typically the output class predicted by the CNN model, we used the np.argmax function. i got an answer from stackExchange - If your Yi's are one-hot encoded, use categorical_crossentropy. Examples (for a 3-class classification): [1,0,0] , [0,1,0], [0,0,1] But if your Yi's are integers, use sparse_categorical_crossentropy. Examples for above 3-class classification problem: [1] , [2], [3]. For complete explanation check this - stats.stackexchange.com/questions/326065/cross-entropy-vs-sparse-cross-entropy-when-to-use-one-over-the-other
@siddharthchaudhary2320
@siddharthchaudhary2320 6 ай бұрын
Great video thank you for your efforts in creating this , just a small doubt when I replicated the ANN model and ran the code without normalizing the data X_train and test Im getting 100% accuracy in train as well as test where as after normalizing it comes down to 50% and in this video you said then normalization is done to increase the accuracy then how is it happening? (Thank you in for your answer)
@ravitrivedi4208
@ravitrivedi4208 Жыл бұрын
if anyone is getting "ssl certificate verification failed" error then add following lines before it import ssl ssl._create_default_https_context = ssl._create_unverified_context
@wiekiangh.2542
@wiekiangh.2542 3 жыл бұрын
great tutorial and I enjoyed it! However, what if I want to classify new images which not in CIFAR dataset, for an instance, I want to classify a butterfly breed. Any suggestion?
@codebasics
@codebasics 3 жыл бұрын
For that you need to add images of butter fly breed in this dataset and train the model again.
@wiekiangh.2542
@wiekiangh.2542 3 жыл бұрын
@@codebasics Thanks for your reply. Can you give me some clue or code on how to add the new images into the existing dataset to re-train the model with CNN? Do I need to annotate those images if those are not in the cifar, imagenet, coco and google open images? I see that in your last video mentioned about these data source, however, I didn't see any info how to add and train custom dataset.
@bencyshaji7557
@bencyshaji7557 Жыл бұрын
We should use softmax for multiclass classification right?. But here we used sigmoid? How is it executing?
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
Каха ограбил банк
01:00
К-Media
Рет қаралды 9 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,7 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 59 МЛН
Image Classification using CNN Keras | Full implementation
17:56
Coding Lane
Рет қаралды 160 М.
What are Pooling Layers in Deep Neural Networks?
9:16
Machine Learning Explained
Рет қаралды 2,3 М.
Train Neural Network by loading your images |TensorFlow, CNN, Keras tutorial
18:29
When Maths Meet Coding
Рет қаралды 302 М.
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31