Deep Networks with MNIST Data in R | Case Study with Keras & TensorFlow for Machine Intelligence

  Рет қаралды 8,181

Dr. Bharatendra Rai

Dr. Bharatendra Rai

Күн бұрын

Пікірлер: 72
@radosawpuakowski6982
@radosawpuakowski6982 2 жыл бұрын
What and excellent piece of work! Introduction is complete, allowed me to understand and conduct whole analysis. Author comments build background knowledge and explain how to solve potential problems. @Dr. Bharatendra Rai my complements on your didactic skills and quality of materials! Btw I had to do minor script adaptions (probably due to some changes in library) to work in my environment. ln56: WAS: pred % predict_classes(testx) / IS: pred % predict(testx) %>% k_argmax() ln59: WAS: prob % predict_proba(testx) / IS: prob % predict(testx) Have fun!
@bkrai
@bkrai 2 жыл бұрын
Thanks for the comments and code related update!
@tarasst6887
@tarasst6887 2 жыл бұрын
Great to see example with torch package
@bkrai
@bkrai 2 жыл бұрын
Thanks!
@lucasdemelo3
@lucasdemelo3 5 жыл бұрын
brilliant @ Bharatendra Rai !
@bkrai
@bkrai 5 жыл бұрын
Thanks!
@scottsara123
@scottsara123 5 жыл бұрын
Sir waiting for video related to GAN Thanks for easy explain guidance to all self learner's
@bkrai
@bkrai 5 жыл бұрын
Thanks, I've it on my list!
@farshidowrang2762
@farshidowrang2762 3 жыл бұрын
The problem is that the codes "predict_classes" and "predict_proba" according to the Error massage are deprecated and they are removed from tensorflow in version 2.6 (I have the latest version). The Error Massage suggests "predict() %>% k_argmax()" and "predict()" instead but they are not working for me.
@kunalchoudhary4063
@kunalchoudhary4063 2 жыл бұрын
same issue. please help
@michealajinaja7142
@michealajinaja7142 2 жыл бұрын
No one solved this
@adrianramos2989
@adrianramos2989 5 жыл бұрын
Terrific intro to the MNIST data set! Thank you for sharing such a quality content. I would like to ask you for the hand written pictures used in the example for replicability purposes. I've carefully followed your steps but have only achieved a very poor 30% accuracy when evaluating the MNIST trained model with my own handwritten numbers.
@bkrai
@bkrai 5 жыл бұрын
Here is the link: drive.google.com/open?id=1m_nKMCUZBP0O32Friuzck27QiiE9a7jz
@rebekahjardine8444
@rebekahjardine8444 Жыл бұрын
If I have an entirely different set of images: A folder that contains a test and train folder with each containing two additional subfolders with labeled images. How can I replicate the same structure as the mnist dataset?
@bkrai
@bkrai Жыл бұрын
You can use the same approach that is used with my own handwritten images at the time of testing.
@machinelearningzone.6230
@machinelearningzone.6230 4 жыл бұрын
Thanks for the tutorial and the code,but I faced the error"imensions must be equal, but are 32 and 320 for 'loss/dense_8_loss/softmax_cross_entropy_with_logits' (op: 'SoftmaxCrossEntropyWithLogits') with input shapes: [32,10], [320,10]." while fitting the model. Could you please help me out.
@bkrai
@bkrai 4 жыл бұрын
Are your working with the same data/code used here? If yes, let me know which line you are referring to?
@gawine
@gawine 8 ай бұрын
Hi! I followed every instruction given, but R studio still throws an error: No gradients provided for any variable. Does somebody have a clue why this occurs? Thanks!
@hammao
@hammao 5 жыл бұрын
Again thanks for referring me to this video... do you have any recording where you used flow_images_from_directory() to read in your images, the concept is still confusing to me because i couldn't find a way to look at the str of the object generated. Many Thanks .
@bkrai
@bkrai 5 жыл бұрын
I've not used flow_images_from_directory() so far.
@hammao
@hammao 5 жыл бұрын
Bharatendra Rai I figured it out already... many thanks
@bkrai
@bkrai 5 жыл бұрын
Thanks for the update!
@mannam5374
@mannam5374 5 жыл бұрын
Excellent video sir..your steps are very clear and easy to follow...please do a classification problem in deep learning keras using cloudml package....thanks Sir
@bkrai
@bkrai 5 жыл бұрын
Thanks for the suggestion, I've added this to my list.
@md.mahiuddin3097
@md.mahiuddin3097 5 жыл бұрын
This is a great lecture. Thank you so much. Sir, i want to predict a unlabeled data set by using labeled data set, then how can i proceed? Thanks in advance.
@bkrai
@bkrai 5 жыл бұрын
Train the network with labeled data and then use the model to predict from unlabeled data.
@md.mahiuddin3097
@md.mahiuddin3097 5 жыл бұрын
thank you @@bkrai
@Felixinhk08
@Felixinhk08 3 жыл бұрын
Hi, what is the activation ='relu' and 'softmax' means? Which one is better?
@kaihennig2323
@kaihennig2323 3 жыл бұрын
Hi, I hope that this late answer still helps you. relu is a activation function, which puts everything below 0 to 0 and is linear from 0 to + infinity. Softmax uses the sigmoid (1 / (1+e^-x)) function but divides everything by the highest neuron in the output layer to have values between 0 and 1 which add up to 1.
@bkrai
@bkrai 3 жыл бұрын
Thanks!
@send2milan
@send2milan 5 жыл бұрын
Sir, you are the one who inspired me choosing analytics career. Thank for sharing all the videos in KZbin.
@bkrai
@bkrai 5 жыл бұрын
Thanks for comments!
@flamboyantperson5936
@flamboyantperson5936 5 жыл бұрын
Great great tutorial on deep learning in R. Thank you very much Sir.
@bkrai
@bkrai 5 жыл бұрын
Thanks for comments!
@olcaybolat3452
@olcaybolat3452 2 жыл бұрын
Dear Dr. Rai, I'm having an error while I try to upload my own images. "cannot allocate vector of size 2.9 Mb" Do you have any suggestion with this ?
@bkrai
@bkrai 2 жыл бұрын
If you have any unnecessary data files loaded, you can remove them to create some space.
@olcaybolat3452
@olcaybolat3452 2 жыл бұрын
@@bkrai Thank you for replying, I have no data before I load my 7000 image for classification . I have 16gb ram also.
@bkrai
@bkrai 2 жыл бұрын
Try with less number of images or if possible, use gpu computer.
@olcaybolat3452
@olcaybolat3452 2 жыл бұрын
@@bkrai Is it possible to use Gpu of our computer in R ? İnstead of cpu and ram ? (Thank you for replying)
@johannaachhammer
@johannaachhammer 4 жыл бұрын
Great introduction! Isn´t it a problem that accuracy for validation data is better than for training data when using dropout layers? Why don´t you reduce the epochs at the point where the loss function of the training data is at its lowest point? Thanks in advance.
@bkrai
@bkrai 4 жыл бұрын
When difference is very small, it can happen sometimes.
@johannaachhammer
@johannaachhammer 4 жыл бұрын
Thanks. So that is no Problem? It is unintuitive for me. And why don't you stop the Training ehen overfitting starts (after loss function of Validation Data reachs Minimum)?
@bkrai
@bkrai 4 жыл бұрын
It's important to highlight the problem of over fitting and see how to identify it. And it is all the more important when it comes to deep learning.
@ashishsharp
@ashishsharp 4 жыл бұрын
Sir, Error in install_tensorflow() : could not find function "install_tensorflow", getting this error though I have tensor flow installed for Python. PN I am using R 3.6
@bkrai
@bkrai 4 жыл бұрын
Try this: kzbin.info/www/bejne/Y3q8iqSarcmMjs0
@ambertrivedi1502
@ambertrivedi1502 4 жыл бұрын
I'm getting an error that specified conda library does not exist
@bkrai
@bkrai 4 жыл бұрын
I'll do a video to install keras and tensorflow in coming weeks.
@ambertrivedi1502
@ambertrivedi1502 4 жыл бұрын
@@bkrai I already know how to install keras and tensorflow. 1. #install packages install.packages("keras") 2.load it into the library library("keras") 3. You can look where it is loaded or not by typing search() #Search will give all loaded packages Run this command 4.install_keras() #Another way is to install from github using devtools Since I'm running R in windows 10 I'm facing many issues. Python version 3.8.3 Anaconda Latest Version Installed it with admin rights to configure it properly. Updated and upgraded pip and conda Installed Tensorflow CPU version with pip command from stackoverflow. Everthing is going well. But when I'm trying to load keras dataset I'm getting an error. Either python module so and so found or conda does not exist /Anaconda3/Scripts. This is where I'm struck.
@bkrai
@bkrai 4 жыл бұрын
Probably it's something computer specific.
@ambertrivedi1502
@ambertrivedi1502 4 жыл бұрын
@@bkrai Yes. I guess so. Sir you are indeed an amazing and inspiring teacher. Recently I had requested you to please do make a video on Plant disease detection. I hope you soon get it off your as well as my bucket list.
@JacksonUNT
@JacksonUNT 2 жыл бұрын
Thank you for the video, but: 'Sequential' object has no attribute 'predict_classes'
@ravikumar-rz8uu
@ravikumar-rz8uu 5 жыл бұрын
Very Helpful machine learning concept ,Thanks you .. can you make video for image processing in R.
@bkrai
@bkrai 5 жыл бұрын
Here is the playlist of related videos: kzbin.info/aero/PL34t5iLfZddsaZKDeCK2RD8lrhxBxp4hP
@abhishekdas2640
@abhishekdas2640 4 жыл бұрын
Sir, One error is showing while running the code "mnist
@bkrai
@bkrai 4 жыл бұрын
Try this link: kzbin.info/www/bejne/Y3q8iqSarcmMjs0
@abhishekdas2640
@abhishekdas2640 4 жыл бұрын
@@bkrai thank you verymuch sir. 😃
@bkrai
@bkrai 4 жыл бұрын
Welcome!
@juanjosetorressanmartin1495
@juanjosetorressanmartin1495 5 жыл бұрын
can you help me?. every time when i want use mnist database. i have next error. please... i'm gonna go crazy. (Error in dir.exists(x) : file name conversion problem -- name too long?) this happens when I use keras library and I want to charge the data "mnist
@bkrai
@bkrai 5 жыл бұрын
I would suggest check your code again.
@juanjosetorressanmartin1495
@juanjosetorressanmartin1495 5 жыл бұрын
Yes!! Can you help me?
@ravikumar-rz8uu
@ravikumar-rz8uu 5 жыл бұрын
thank you, very nice response..
@bkrai
@bkrai 5 жыл бұрын
Thanks for comments!
@manjuyadavalwar3014
@manjuyadavalwar3014 5 жыл бұрын
Need your guidance as how we can solve sale prediction (Kaggle competition) . Below is problem snapshot - YYou are provided with daily historical sales data. The task is to forecast the total amount of products sold in every shop for the test set. Note that the list of shops and products slightly changes every month. Creating a robust model that can handle such situations is part of the challenge. File descriptions sales_train.csv - the training set. Daily historical data from January 2013 to October 2015. test.csv - the test set. You need to forecast the sales for these shops and products for November 2015. sample_submission.csv - a sample submission file in the correct format. items.csv - supplemental information about the items/products. item_categories.csv - supplemental information about the items categories. shops.csv- supplemental information about the shops.
@bkrai
@bkrai 5 жыл бұрын
Sorry I saw this today. I guess it's too late now.
@ravindarmadishetty736
@ravindarmadishetty736 5 жыл бұрын
Sir, expecting a video on recommendation system...thanks
@bkrai
@bkrai 5 жыл бұрын
Thanks, I've it on my list!
@manjuyadavalwar3014
@manjuyadavalwar3014 5 жыл бұрын
Simplly Great :)
@bkrai
@bkrai 5 жыл бұрын
Thanks for comments!
@shahidtufail1009
@shahidtufail1009 5 жыл бұрын
not all heroes wear caps
@bkrai
@bkrai 5 жыл бұрын
thanks for comments!
Transfer Learning with R | Artificial Intelligence & Deep Learning Applications
29:23
Feature Selection Using R | Machine Learning Models using Boruta Package
16:28
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
Deep Neural Networks  with TensorFlow & Keras in R | Numeric Response Variable
17:28
Handling Missing Values using R
16:07
Dr. Bharatendra Rai
Рет қаралды 44 М.
The New Outlook is TERRIBLE
20:19
Chris Titus Tech
Рет қаралды 13 М.
How to Perform Bayesian Analysis in R for beginners
23:56
Emmanuel Patrick Iwe
Рет қаралды 27
Naive Bayes Classification with R | Example with Steps
14:55
Dr. Bharatendra Rai
Рет қаралды 74 М.