Тёмный

Deep Neural Networks with TensorFlow & Keras in R | Numeric Response Variable 

Dr. Bharatendra Rai
Подписаться 45 тыс.
Просмотров 37 тыс.
50% 1

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 222   
@bhoomisuthar2884
@bhoomisuthar2884 3 года назад
Simple language u explained sir.Thank you for making video
@bkrai
@bkrai 3 года назад
You are most welcome!
@rexvm
@rexvm Год назад
I'm digging the music professor!
@bkrai
@bkrai Год назад
:)
@ashwinaeroz
@ashwinaeroz 3 года назад
Thank you for Nice videoas on Neural Networks. I request for multivariate forecasting using Neural Networks in R. This would be helpful.
@bkrai
@bkrai 3 года назад
Thanks, I've added it to my list.
@animeshkumar1684
@animeshkumar1684 3 года назад
Thx a lot 👍
@bkrai
@bkrai 3 года назад
You are welcome!
@mohsinfayaz8103
@mohsinfayaz8103 3 года назад
Please make a video on Fuzzy logic using R. Thank you
@bkrai
@bkrai 3 года назад
Thanks, I've added it to my list.
@mohsinfayaz8103
@mohsinfayaz8103 3 года назад
@@bkrai Thank you
@bkrai
@bkrai 3 года назад
Welcome!
@张zp
@张zp Год назад
Thank you very much! I learned a lot from this video. By the way, how do I choose the number of hidden layers before running the model each time? Thank you very much.
@bkrai
@bkrai Год назад
Hyperparameter tuning is needed. See link below: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FscOZT0_ObA.html
@andreaponti6359
@andreaponti6359 3 года назад
Dr. Rai I wish to thank you deeply for these easy explanations about NN. Again thank you very much
@bkrai
@bkrai 3 года назад
You are most welcome!
@muhyideanaltarawneh7287
@muhyideanaltarawneh7287 5 лет назад
One of the best tutorials I ever watched, Thank you so much, you are awesome!
@bkrai
@bkrai 5 лет назад
Thanks for your comments and feedback!
@neilwalker3204
@neilwalker3204 3 года назад
Recently found your video's. Thank you so much for doing these, they are clear and thorough. You sir are my new best friend.. :)
@bkrai
@bkrai 3 года назад
Welcome aboard!
@fit_sarthi
@fit_sarthi 3 года назад
Thank you so much, you actually helped me sir. LOVE YOU !!!!!
@bkrai
@bkrai 3 года назад
Thanks for comments!
@amirgharavi8820
@amirgharavi8820 5 лет назад
Fantastic video. Thank you so much Dr Rai.
@bkrai
@bkrai 5 лет назад
Thanks for your comments!
@jean-lucfanny4210
@jean-lucfanny4210 4 года назад
Your videos are amazing. Thank you for exposing us to your knowledge.
@bkrai
@bkrai 4 года назад
Thanks for comments!
@ibrahimalabi6162
@ibrahimalabi6162 4 года назад
You just made my work easier, thank you very much indeed!
@bkrai
@bkrai 4 года назад
Glad to hear that!
@muratgenc2424
@muratgenc2424 2 года назад
Thank you for the video. If the factor variable has more than two levels, will we use dummy coding or something else?
@bkrai
@bkrai 2 года назад
You can refer to this example where response has 3 levels: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4KfiQRqn_vA.html
@nicolaroche3260
@nicolaroche3260 4 года назад
Thank you so much, this helped me a lot! You explained everything really well
@bkrai
@bkrai 4 года назад
You're very welcome!
@AnantaPradhan
@AnantaPradhan 3 года назад
Could you explain how to run dNN using raster data?
@petertrcka9990
@petertrcka9990 5 лет назад
It was a very good explanation
@bkrai
@bkrai 5 лет назад
Thanks for comments!
@parasrai145
@parasrai145 6 лет назад
Very useful and very well explained!
@bkrai
@bkrai 6 лет назад
Thanks for comments!
@jasonyao3762
@jasonyao3762 3 года назад
Dear Rai,You have made a series of outstanding deep learning videos, which helped me a lot. Thank you for your contribution and look forward to your more instructional videos on deep learning ( Long short-term memory network)
@bkrai
@bkrai 3 года назад
Thanks! I'll soon do LSTM too.
@jasonyao3762
@jasonyao3762 3 года назад
@@bkrai Looking forward to your next video
@bkrai
@bkrai 3 года назад
Thanks!
@marcoesteves4367
@marcoesteves4367 3 года назад
How did you get to c(10,5)? Is There a rule to find how many hídden layers and how many neurons per hidden layer?
@bkrai
@bkrai 3 года назад
It needs experimentation. You can refer to this: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FscOZT0_ObA.html
@novilax27
@novilax27 4 года назад
you rock, Dr. Rai.
@bkrai
@bkrai 4 года назад
Thanks!
@ricardozuniga7372
@ricardozuniga7372 3 года назад
Amen
@bkrai
@bkrai 3 года назад
Thanks
@user-jp7se5ch5t
@user-jp7se5ch5t 2 года назад
Thank you for your video. Is there any reason using the command ' dimnames(data)
@bkrai
@bkrai 2 года назад
Just wanted to remove dimension names. But if it works without this line, you can ignore.
@user-jp7se5ch5t
@user-jp7se5ch5t Год назад
@@bkrai Thank you for your reply😍
@engr.abdullahazzamsafi4515
@engr.abdullahazzamsafi4515 Год назад
Dear Professor. My question is that Why every time the model gives different performance results without changing any parameters in the model?
@waelbadawy2857
@waelbadawy2857 2 года назад
Dear Dr. Rai. thanks a lot for your informative video. I am trying to install keras in r on Mac Pro M1 . but it does not work and gives a fatal error each e=time I run the code. I used your video as an examples for my data. may I ask you if you have a step by step install and configure keras and tensforflow on Mac Pro M1? Thanks in advance!
@blackstars7191
@blackstars7191 5 месяцев назад
I have a problem when I try to run the model at 7:40. The error says : Error in py_call_impl(callable, call_args$unnamed, call_args$named) : ValueError: Only input tensors may be passed as positional arguments. The following argument value should be passed as a keyword argument: (of type ) Run `reticulate::py_last_error()` for details. Can you help me ?
@prasantbarla9263
@prasantbarla9263 7 месяцев назад
it is asking to install python package for sequential analysis
@hapvideolar7957
@hapvideolar7957 2 года назад
Sir, I need to calculate rsquared value of the model. How can I get the r squared or accurate ration?
@stg2031991
@stg2031991 4 года назад
This very interesting but complex process was simplified by this video. Easy to understand and replicate. What about forecasting? how does one forecast the prediction for future dates?
@bkrai
@bkrai 4 года назад
For forecasting deep learning network LSTM is very popular. Probably I'll do a lecture video on it some time.
@stg2031991
@stg2031991 4 года назад
@@bkrai looking forward to it.
@bkrai
@bkrai 4 года назад
Thanks!
@Booggie7
@Booggie7 6 лет назад
Thank you, I've learned a lot watching your videos ! Please can you do a tutorial to build a recurrent neural network (RNN) on R for data prediction ? An LSTM/GRU one would be awesome !
@bkrai
@bkrai 3 года назад
Thanks for the suggestion. I'm seeing this very late, but it should happen in about a month.
@Booggie7
@Booggie7 3 года назад
@@bkrai Thank you Sir !
@yurinabestify
@yurinabestify 3 года назад
do you have convul+lstm tutorial vedio?
@bkrai
@bkrai 3 года назад
You can find it in the book titled "Advanced Deep Learning with R" by me. But I'll certainly do a video in future.
@yurinabestify
@yurinabestify 3 года назад
@@bkrai thank you!!! i will look it up!
@jean-lucfanny4210
@jean-lucfanny4210 4 года назад
Again Dr. Bharatendra, Do you know why I am getting an error when I am creating the model. Please, guide me otherwise I am can't go forward using this code "model %>% + layer_dense(units = 5, activation = 'relu', input_shape = c(13)) %>% + layer_dense(units = 1) Error in eval(lhs, parent, parent) : object 'model' not found"
@bkrai
@bkrai 4 года назад
The error is either in this or previous line of code.
@vishnukirant4025
@vishnukirant4025 2 года назад
Thank you for great explanation, could you help me with this error in model creation model1
@evelynyemu9524
@evelynyemu9524 4 года назад
I am using rstudio cloud, but for some reason I get an error when I run the last bit of my code i.e Fit Model, would you be able to help where I may be missing it, here is the code and error >> model = keras_model_sequential() model %>% layer_dense(units = 5, activation = 'relu', input_shape = c(18)) %>% layer_dense(units = 1) #Compile model %>% compile(loss = 'mse', optimizer = 'rmsprop', metrics = 'mae') #Fit model mymodel = model %>% fit(training, trainingtarget, epochs = 50, batch_size = 10, validation_split = 0.2) Error Error in py_call_impl(callable, dots$args, dots$keywords) : ValueError: in user code: /home/rstudio-user/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:571 train_function * outputs = self.distribute_strategy.run( /home/rstudio-user/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:951 run ** return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs) /home/rstudio-user/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2290 call_for_each_replica return self._call_for_each_replica(fn, args, kwargs) /home/rstudio-user/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2649 _call_for_each_replica return fn(*args, **kwargs) /home/rstudio-user/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site-pac Please assist. Thanks
@bkrai
@bkrai 4 года назад
Have you tried this? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--IYYqdxdYXk.html
@evelynyemu9524
@evelynyemu9524 4 года назад
@@bkrai thanks much, will look at it.
@bkrai
@bkrai 4 года назад
welcome!
@redarabie7098
@redarabie7098 6 лет назад
thank you for this helpful tuto and please we need more tuto for using keras in deep leruning for regression case
@bkrai
@bkrai 6 лет назад
Thanks for the suggestion, I've added this to my list.
@dr.lakshmananravi9708
@dr.lakshmananravi9708 Год назад
Prof., understood the principles. Excellent lecture. Could you please let us know how to use the selected model for forecasted vales for future period. Regards
@xruan6582
@xruan6582 3 года назад
what is the purpose of neuralnet package when you have keras loaded?
@bkrai
@bkrai 3 года назад
Just for the plot.
@xruan6582
@xruan6582 3 года назад
@@bkrai Thank you for clarifying
@farhatiqb
@farhatiqb 3 года назад
One of the best and simple explanation of DNN. Can you please make a tutorial on time series forecasting using a combination of DL models such as CNN-LSTM?
@bkrai
@bkrai 3 года назад
Thanks, I've added it to my list.
@mohdzaid6533
@mohdzaid6533 4 года назад
Please tell me what is the difference between the two method I.e one solved by neuralnet package and second with keras package.
@bkrai
@bkrai 4 года назад
For deep networks go with keras as it will run much faster.
@mohdzaid6533
@mohdzaid6533 4 года назад
@@bkrai I have install keras and tensorflow bit is not working install.packages("keras") install_keras() install.packages("tensorflow") install_tensorflow() miniconda package also installed .All library are also loaded But I am getting this error > model - keras_model_sequential() Error: Installation of TensorFlow not found. Python environments searched for 'tensorflow' package: C:\Users\User\AppData\Local -miniconcja\envs -reticulate\python.exe You can install TensorFlow using the install_tensorflow() function.
@bkrai
@bkrai 4 года назад
Refer to this link: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--IYYqdxdYXk.html
@hansmeiser6078
@hansmeiser6078 4 года назад
Should be the results uncaled? And if so how?
@bkrai
@bkrai 4 года назад
Target is not scaled, so you don't need to unscale.
@hansmeiser6078
@hansmeiser6078 4 года назад
@@bkrai It's seems my predictions are scaled (pred). Did I forgot something?
@zulhajrizki3000
@zulhajrizki3000 3 года назад
Thank you very much, this is very clear and helpful. Do you maybe also have a similar tutorial related to the one with multiple numeric responses?
@bkrai
@bkrai 3 года назад
I've added it to my list. Thanks!
@ramp2011
@ramp2011 6 лет назад
Great video as usual. As time permits love to see a video on AutoEncoders. Thank you
@bkrai
@bkrai 6 лет назад
Thanks for the suggestion, I've added it to my list.
@mehdi1270
@mehdi1270 3 года назад
Thank you very much Dr. Rai for your informative videos. Your tutorials are like compressed 3 months of work in 20 minutes!!! Is there a chance you could post a multivariate forecasting and tuning example with LSTM.
@viveksohal9415
@viveksohal9415 3 года назад
Many Thanks Dr Rai, i wanted your guidance to predict 14th Variable for fresh dummy data 'newdata' that i created to see if i can use this for a similar problem. Code attached below, pls help where am i going wrong. Used exactly your code which ran fine. Post which created newdata in same format/class. Below attached is additional code. Getting error: ValueError: No data provided for "dense_2_input". Need data for each key in: ['dense_2_input'] when trying to fit model. Appreciate your support. val
@bkrai
@bkrai 3 года назад
It says "no data provided". Make sure your data is available.
@arnabsarma
@arnabsarma 4 года назад
Thank you Sir, this video is very useful to me...Sir, in different datasets how can we know whether a variable is dependent or independent?
@bkrai
@bkrai 4 года назад
When you go over several examples, it will become more clear.
@mintuboruah1
@mintuboruah1 5 лет назад
Sir, very nicely explained tutorial..thanks. requested you to kindly make tutorial for multi target regression model in R-keras. in advance thanks.
@bkrai
@bkrai 3 года назад
Thanks, I've added it to my list.
@ufcwolf4605
@ufcwolf4605 4 года назад
I have a question, how can I set the weight initialization at keras?
@bkrai
@bkrai 4 года назад
It randomizes weights, each time you run model.
@ufcwolf4605
@ufcwolf4605 4 года назад
@@bkrai Thank you for your answer and your great video. But I have the following question: How can I fix the choice of weights in Keras? Perhaps there is a function like set.Sees () in Keras that. enables this?
@ufcwolf4605
@ufcwolf4605 4 года назад
I need this to compare which training starting point is better to determine.
@thejll
@thejll Год назад
Thank you for a very clear and interesting video! About overfitting: should you stop when train and test error curves cross or can you keep training? What if both errors are still decreasing with continued iteration? Is the danger of over fitting mainly in thinking the training error is valid for the model applied to new data?
@ufcwolf4605
@ufcwolf4605 4 года назад
Thanks for the video! Can you show me how to plot the neural net for recognition the digits?
@bkrai
@bkrai 4 года назад
Here is the link: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5bso_5X7Zu4.html
@gdal49
@gdal49 3 года назад
Hi there, How do we inteprete the results of the prediction ? I am not sure I understood it well. Really good video btw. Thanks for sharing your knowledge.
@bkrai
@bkrai 3 года назад
You can refer to this series that has many examples: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hd81EH1g1bE.html
@jean-lucfanny4210
@jean-lucfanny4210 4 года назад
When I used this piece of code I am getting this error from your own code and dataset. I didn't change anything. Do you know why? "> model %>% + layer_dense(units = 5, activation = 'relu', input_shape = c(13)) %>% + layer_dense(units = 1) Error in eval(lhs, parent, parent) : object 'model' not found" Thank you so much
@bkrai
@bkrai 4 года назад
It says "model" not found. Can you share this as well as previous line of code?
@jean-lucfanny4210
@jean-lucfanny4210 4 года назад
@@bkrai, Ok I am sharing the whole code previous and a preceding line of code after so that you see, Thank you so much for your answer. "# Libraries library(keras) library(mlbench) library(dplyr) library(magrittr) library(neuralnet) # Data data("BostonHousing") data
@bkrai
@bkrai 4 года назад
In your original message you had ">" before model. I don't see that in the entire code sent. See below for reference: Do you know why? "> model %>%
@jean-lucfanny4210
@jean-lucfanny4210 4 года назад
@@bkrai: I was just copying your code and run as you present it. Does it mean that I have to create the "model" somewhere else? I was going to your ode as it's so that I could apply it to my own dataset. I got the code from as it's. Thank you.
@jean-lucfanny4210
@jean-lucfanny4210 4 года назад
Dr. Bharatendra Rai: I think this is my issue" model model
@neerajraut6473
@neerajraut6473 6 лет назад
All your videos are very informative and everything is so well explained. I have been working on time series data. Your video on facebook's prophet library was amazing, although prophet only works well on an ideal dataset. I have a request sir, please do a tutorial for time series forecasting using lstm in R, would be really helpful
@bkrai
@bkrai 6 лет назад
Thanks for comments and suggestion! I've added it to my list.
@netmarketer77
@netmarketer77 4 года назад
Thank you very much Dr. Your videos are amazing as usual. Unfortunately, I can not use this technique to predict the prices of used cars since not all variables are numeric, so Deep NN will not work.
@bkrai
@bkrai 4 года назад
to_categorical() function can be used to convert categorical variables to have integer values.
@netmarketer77
@netmarketer77 4 года назад
@@bkrai Ok .. Thank you very much.
@mohamedgomaa2645
@mohamedgomaa2645 6 лет назад
Thanks so much! It will be great, if you can do autoencoders
@bkrai
@bkrai 6 лет назад
Thanks for the suggestion!
@sudhakarsingha283
@sudhakarsingha283 4 года назад
Thank you sir for your nice video about deep learning method. Kindly suggest how to extract the k-fold 'cv' results. It will be very much helpful for better presentation of results. Kindly suggest Sir
@stelluspereira
@stelluspereira 4 года назад
Dr Rai, Thankyou very much for sharing your knowledge & educating the data science professionals, quick question, What would be your recommendation for saving trained Model & exporting to other machines , formats Something like JSON, or XML, Or CSV (more generic), or do we need to stick to just '.RDS' ?
@bkrai
@bkrai 3 года назад
RDS should work fine.
@rajeevbhattarai7396
@rajeevbhattarai7396 3 года назад
Thank you very much for this informative video, How can we use it for classification instead of regression?
@bkrai
@bkrai 3 года назад
Many videos in this playlist are for classification: ru-vid.com/group/PL34t5iLfZddtC6LqEfalIBhQGSZX77bOn
@rajeevbhattarai7396
@rajeevbhattarai7396 3 года назад
@@bkrai Thank you very much. Could you make a video for satellite image classification using neural nets?
@bkrai
@bkrai 3 года назад
Send me data that I can look at.
@rajeevbhattarai7396
@rajeevbhattarai7396 3 года назад
@@bkrai Thanks a lot. Can I send it through email? Could I get a way to send it to you?
@bkrai
@bkrai 3 года назад
seemabharat@gmail.com
@antonblabla726
@antonblabla726 4 года назад
how to prediction future values?thank very much for your response
@bkrai
@bkrai 4 года назад
Future values can be part of data such as test data.
@henninghoffmann7598
@henninghoffmann7598 3 года назад
First of all, thank you! This video is awesome. Everythings works fine except the viewer. I installed the packages tfruns but I dont have a diagram of the fit. I get this message: /session/tfruns-metrics381c56414d7e/index.html?viewer_pane=1&capabilities=1&host=http%3A%2F%2F127.0.0.1%3A43071 not found Do anyone know what is wrong and how I can solve the problem? Thank you!
@celsofernando9244
@celsofernando9244 5 лет назад
Thank you. I have learned a lot from this video. by the way, how can I reproduce the result of the neural network every time I run the model? Thank you so much.
@bkrai
@bkrai 5 лет назад
That’s a bit complicated. It is suggested to run a model several times and then take average of results.
@chandradeepsingh.8661
@chandradeepsingh.8661 3 года назад
.it's backpropogation neural network which becomes more acurate and smarter every time we train it
@durdamdas1960
@durdamdas1960 4 года назад
Thank you very much for such a nice tutorial. I have a question though, I want to make a neural network with custom connections between the neurons of the input and hidden layers, how to do that ? Basically, I am trying to apply prior knowledge to the neural net architecture and remove all those connections that do not satisfy the particular conditions. Please indicate a source or any other tutorial where I can find something like this. Many thanks in advance.
@bkrai
@bkrai 3 года назад
See if this helps: www.r-bloggers.com/2020/07/creating-custom-neural-networks-with-nnlib2rcpp/
@ramp2011
@ramp2011 5 лет назад
I am curious why you choose Adam versus RMSPROPS. Also for the learning rate, is there any guidance on how to pick the learning rate? Thank you for your help.
@bkrai
@bkrai 5 лет назад
It may be better to try both. For learning rate, it is better to start with a lower value and gradually increase to find the best level.
@flamboyantperson5936
@flamboyantperson5936 6 лет назад
Great tutorial Sir. After a long time you have uploaded a new video. Are you busy Sir? I have been waiting for your video for a long a time. Thank you so much for this one.
@bkrai
@bkrai 6 лет назад
Thanks for comments! You are right, this one took some time.
@flamboyantperson5936
@flamboyantperson5936 6 лет назад
How soon we can expect your new video Sir?
@bkrai
@bkrai 6 лет назад
Probably in a week or so.
@flamboyantperson5936
@flamboyantperson5936 6 лет назад
I'll be waiting for your next video Sir. This video took almost a month which is a very long period for all of us who eagerly wait to learn from you. Thank you so much Sir.
@bkrai
@bkrai 6 лет назад
It will be quicker this time.
@jameszouris3850
@jameszouris3850 3 года назад
Great Example but every time I try to fit the model I get the following error. I was wondering if you have insight. Again thanks for your amazing well articulated R training! Epoch 1/200 Error in py_call_impl(callable, dots$args, dots$keywords) : ValueError: in user code:
@jameszouris3850
@jameszouris3850 3 года назад
Never mind I figured it out! Thanks again for the amazing training!
@bkrai
@bkrai 3 года назад
Thanks for the update!
@sapnachaudhary5967
@sapnachaudhary5967 4 года назад
when I execute the line model
@immaculatesahai
@immaculatesahai 4 года назад
was there a fix? i am facing the same issue!
@bkrai
@bkrai 4 года назад
There could be some computer specific issue. You can try RStudio cloud that runs from the browser, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SFpzr21Pavg.html
@bkrai
@bkrai 4 года назад
Try RStudio cloud that runs from the browser, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SFpzr21Pavg.html
@poladali1657
@poladali1657 4 года назад
install_keras() tensorflow::install_tensorflow(method = "conda",version = "2.0.0").
@Rossboe1
@Rossboe1 3 года назад
Hi, thanks for the great tutorials. Can this model be used with and ordinal dependent variable. Like a horse race first, second, third, lose? Thanks again.
@ramp2011
@ramp2011 6 лет назад
Awesome video. Thank you. Two quick questions 1. Curious why you remove all the column names? 2. For converting chas shouldn't you be creating two columns using to_categorical(...) similar to what you did in one of your previous videos? Thank you
@bkrai
@bkrai 6 лет назад
1. This is not mandatory. I had done this for other purpose and kept the same code for this example. 2. Chas has only 2 levels, so one column with 0 and 1 values is fine here. We can use that earlier method when a factor variable has more levels.
@delt19
@delt19 6 лет назад
Great video as always. Does this model produce a linear equation (similar to lm.fit) that can be extracted out?
@bkrai
@bkrai 6 лет назад
For calculations with a simple example, you may refer to this link: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--Vs9Vae2KI0.html
@davidtegano1112
@davidtegano1112 4 года назад
Great Video! Are there any current ways to plot the Keras model similar to how the neural net package plotted the original node map? I've been doing some research on this, and I'm coming up empty handed.
@bkrai
@bkrai 4 года назад
I'll look into this.
@MultiGreeklover
@MultiGreeklover 4 года назад
Thank yoy very much Dr. Rai , I am getting this message "your cpu supports instructions that this tensorflow binary was not compiled to use avx2" can you please help me ?
@bkrai
@bkrai 4 года назад
It could be a computer specific issue. You can try rstudio cloud: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SFpzr21Pavg.html
@timurwintergoller7467
@timurwintergoller7467 5 лет назад
Great Video. Question: In the other video you used the min max normalization, would it work here too? How do I know which normalization method to use? Thanks
@bkrai
@bkrai 5 лет назад
It is important to do normalization. However there may not be much difference when it comes to model performance. So any one of the 2 methods will work fine.
@revenez
@revenez 5 лет назад
Hi sir, thanks for your videos. May I ask you why you set to NULL (ie V1, V2 etc) the names of the columns? Thanks.
@bkrai
@bkrai 3 года назад
I wanted to have simple variable names such as V1, V2, .. etc.
@larbihouichi8942
@larbihouichi8942 5 лет назад
I wonder why you did not normalize the dependent variable "medv".
@bkrai
@bkrai 5 лет назад
No harm in trying that.
@RahulSingh-ul6vv
@RahulSingh-ul6vv 5 лет назад
There are so many elements to tune the model and hence so many ways, how is one supposed to understand which element need to be modified, is it the extra hidden layer or number of neurons or the learning rate?
@bkrai
@bkrai 5 лет назад
After some practice with different datasets, you will automatically start getting ideas as to what modification is likely to help.
@RahulSingh-ul6vv
@RahulSingh-ul6vv 5 лет назад
@@bkrai Thank you sir, I just have one last question and quite basic but I am still confused. In case of quantitative variable error is MSE for neural networks but in case of qualitative variable the data is in 0,1 format ans y_predicted is generally a probability value so what is the error that is calculated and propagated back to neurons through gradient descent for updating weights??
@bkrai
@bkrai 5 лет назад
For qualitative variable we can make use of 'accuracy' which is higher the better.
@jean-lucfanny4210
@jean-lucfanny4210 4 года назад
Even when the library(keras) is there I get the same error. Thank you
@bkrai
@bkrai 4 года назад
share codes for model architecture so that I can have a look at it.
@bikhtiyarameen9443
@bikhtiyarameen9443 6 лет назад
Thank you so much for your useful tutorials. A quick question how we can obtain an exactly same result for the same model after running several times. I tried with (set.seed(1234)) but the results were different. Could you provide any suggestion for that?
@bkrai
@bkrai 3 года назад
It is a bit complex process. It will be easier to simply save the model.
@jonimatix
@jonimatix 6 лет назад
Am curious, when you applied the training's mean and sd for the Test's centre and scale, are'nt you introducing data leakage in this case?
@bkrai
@bkrai 6 лет назад
This will minimize data leakage.
@juliusamialheri
@juliusamialheri 3 года назад
Respect sir for all that you're doing here it makes a lot of differences. I'm wondering how I can deploy this exact model on a shiny app?
@bkrai
@bkrai 3 года назад
I've added it to my list, thanks!
@fowobajek
@fowobajek 5 лет назад
The error message below is what i got when i try to run the model > model
@bkrai
@bkrai 5 лет назад
Probably keras is not installed or running library line was missed.
@fabiominatto4650
@fabiominatto4650 5 лет назад
Hi! Congrats for the great video! Do you have any recommendation of packages to use in a recurrent neural network for classification purposes? If you have a tutorial for that it is going to be amazing! Thanks!
@bkrai
@bkrai 5 лет назад
I have added RNN to my list for future.
@BuildInAmerica
@BuildInAmerica 5 лет назад
Great video, thank you. I am having problem un-scaling the prediction value using unscale function (Error: Error in scale.default(data, center = FALSE, scale = 1/scale) : length of 'scale' must equal the number of columns of 'x'). Is there a way to unscale with keras function or some other way?
@RustuYucel
@RustuYucel 6 лет назад
How someone can get prediction value (dependent) for independent variable values with model for future? I think many newbies are wondering how to get an estimation after model is ok. Any help?
@bkrai
@bkrai 6 лет назад
Line 68 in the video does prediction using the model and store the values in "pred".
@BuildInAmerica
@BuildInAmerica 5 лет назад
@@bkrai can you provide steps how to unscale.........having issues with unscaling using unscale() function
@usmanliaqat0321
@usmanliaqat0321 5 лет назад
Dear Sir, Thanks for good video. I am facing following error when, I am trying to excutse "keras_model_sequential()". Error: Installation of Python not found, Python bindings not loaded. Kindly guide me. Thanks
@bkrai
@bkrai 5 лет назад
make sure keras is installed.
@usmanliaqat0321
@usmanliaqat0321 5 лет назад
@@bkrai I installed KERAS but when I execute then it is showing following error
@bkrai
@bkrai 5 лет назад
I would suggest start with the 1st video in this playlist: ru-vid.com/group/PL34t5iLfZddtC6LqEfalIBhQGSZX77bOn
@ramp2011
@ramp2011 6 лет назад
Quick question, When does one use Tensorflow Estimator API for regression problems versus Keras? Thank you
@bkrai
@bkrai 6 лет назад
For key differences, see: tensorflow.rstudio.com/tensorflow/
@ramp2011
@ramp2011 6 лет назад
Also, curious when calling Tensorflow from Keras R, is it running inside R memory space or is it running in its own memory space / remote machine? Thank you...
@bkrai
@bkrai 6 лет назад
It runs inside R.
@AnantaPradhan
@AnantaPradhan 5 лет назад
I am getting this message -Warning message: algorithm did not converge in 1 of 1 repetition(s) within the stepmax.
@bkrai
@bkrai 5 лет назад
You can increase it to a higher number.
@kavyashree228
@kavyashree228 5 лет назад
Great Video. I am getting error in model
@jitendraupadhyay6218
@jitendraupadhyay6218 5 лет назад
Me too
@IrinaMax
@IrinaMax 5 лет назад
@@jitendraupadhyay6218 You guys need to have Python already installed on your computer. Then you may need restart your R studio and reinstall all required libraries. Or possible even reinstall R studio to make sure all connections are updated.
@bkrai
@bkrai 3 года назад
Thanks for the update!
@Gius3pp3K
@Gius3pp3K 5 лет назад
Hi, I love your videos! Whilst trying to execute keras_model_sequential I get the following error: Error in initialize_python(required_module, use_environment): Installation of Python not found, Python bindings not loaded. I installed R but haven’t installed Python. Please can you advise if there are any easy fixes for this? Thanks 🙃
@bkrai
@bkrai 5 лет назад
Make sure you install keras and tensorflow.
@Gius3pp3K
@Gius3pp3K 5 лет назад
Hi, thanks for your reply. I managed to get this working eventually. One thing I feel is missing from this video, is to show how you would get the probability of an outcome using some new data? For example, a file that contains the same data every week. This would make the video complete as it fully walks through the process for creating a model and testing from a sample of data and results using the training/testing partition method, together with how to test on new data, and how to export the results from the new data, into a flat file, for example. I feel your viewers would benefit from this additional content.
@bkrai
@bkrai 5 лет назад
Thanks for the suggestion!
@parthiban2800
@parthiban2800 5 лет назад
when I execute this line, m
@bkrai
@bkrai 5 лет назад
make sure you run library(keras).
@immaculatesahai
@immaculatesahai 4 года назад
@@bkrai ... i ran keras and am still facing the same issue
@profach1
@profach1 5 лет назад
thank you sir for the vedio plz i have i question when i create the model in R show me that Python module keras was not found.even that the library of keras works
@bkrai
@bkrai 5 лет назад
did you run install_keras()?
@profach1
@profach1 5 лет назад
@@bkrai yes i do solve the problem by install tensorflow in code it work know but the problem in the evaluation i get big number 1234567 like this i don't know why? And thank you sir
@bkrai
@bkrai 5 лет назад
Thanks for the update!
@profach1
@profach1 5 лет назад
@@bkrai in this case how to fix that to show that the loss increase ? that thank you sir
@bkrai
@bkrai 5 лет назад
For that you need to experiement with different number of neurons and different hidden layers.
@JackDaniels-ei1ds
@JackDaniels-ei1ds 5 лет назад
Nice job. Clean and crisp!
@bkrai
@bkrai 5 лет назад
Thanks for comments!
Далее
Inside Out 2: BABY JOY VS SHIN SONIC
00:19
Просмотров 1,6 млн
Recurrent Neural Networks (RNNs), Clearly Explained!!!
16:37
Why Neural Networks can learn (almost) anything
10:30
Naive Bayes Classification with R | Example with Steps
14:55