Automatic Neural Network Hyperparameter Tuning for TensorFlow Models using Keras Tuner in Python

  Рет қаралды 14,541

Greg Hogg

Greg Hogg

Жыл бұрын

The Colab Notebook: colab.research.google.com/dri...
Thank you for watching the video! You can learn Data Science FASTER at mlnow.ai/ :)
Master Python at mlnow.ai/course-material/python/!
Learn SQL & Relational Databases at mlnow.ai/course-material/sql/!
Learn NumPy, Pandas, and Python for Data Science at mlnow.ai/course-material/data...!
Become a Machine Learning Expert at mlnow.ai/course-material/ml/!
Don't forget to subscribe if you enjoyed the video :D

Пікірлер: 48
@GregHogg
@GregHogg 9 ай бұрын
Take my courses at mlnow.ai/!
@drjabirrahman
@drjabirrahman Жыл бұрын
Thank you Greg. That's very helpful.
@GregHogg
@GregHogg Жыл бұрын
Great to hear!
@proterotype
@proterotype Жыл бұрын
I’m using this for a CNN. Thanks for the clear presentation and walk through. You’re the man
@GregHogg
@GregHogg Жыл бұрын
Sounds great. No problem! Thanks!
@temmmbebkd2922
@temmmbebkd2922 20 күн бұрын
Did you get good results
@ithaca2076
@ithaca2076 Жыл бұрын
actually incredibly useful thank you so much
@GregHogg
@GregHogg Жыл бұрын
Oh I'm really glad to hear that! :)
@adaravivianagomezcruz8380
@adaravivianagomezcruz8380 Жыл бұрын
Hi Greg! I hope you are doing well, wanted to ask you if there is a way to use keras tunner with an stacked model, which comes from two models. And if there is which is the best way to do it
@bencekato4053
@bencekato4053 Жыл бұрын
If I want to add k-fold cross validation during hyperparameter tuning, do I add the tuner.search() (i.e. simply replacing model.fit() command with this) inside my loop for k-fold ? Thanks for the great vid!
@Xnshau
@Xnshau Жыл бұрын
Brilliant thanks Greg👍
@GregHogg
@GregHogg Жыл бұрын
You're very welcome!
@gamuchiraindawana2827
@gamuchiraindawana2827 6 ай бұрын
Hey Greg, I'm applying your techniques to model time series data and I'd like to ask when we call tuner.search() and pass it the training data and validation data, does it randomly shuffle the data? You probably already understand why I'm asking thank you. And if it does, how can we preserve the time series ordering?
@leiladarabi6438
@leiladarabi6438 Жыл бұрын
Hi, I want to know how can I get the name of AF and other info of the best model. for example for the best mode, which AF used
@shantanukulkarni2413
@shantanukulkarni2413 Жыл бұрын
Excellent topic
@GregHogg
@GregHogg Жыл бұрын
Thanks!
@sergiochavezlazo5362
@sergiochavezlazo5362 Жыл бұрын
Great video! Thank u!
@GregHogg
@GregHogg Жыл бұрын
You're very welcome :)
@hawaiisunkissselftanner4890
@hawaiisunkissselftanner4890 Жыл бұрын
Amazing Viedo! Thank you so much! Saved my ass of my assignment 😂
@GregHogg
@GregHogg Жыл бұрын
So glad to hear it :)
@jeremiasvillalobos9950
@jeremiasvillalobos9950 2 ай бұрын
Thank you!!
@juanete69
@juanete69 4 ай бұрын
Hello. What if I want to optimize the batch size, the number of epochs or use callbacks such as ReduceLROnPlateau or EarlyStopping? Can I use keras tuner for that? Or is it already included in the search procedure?
@alberro96
@alberro96 Жыл бұрын
How could I implement this with CNN? I'm working with my own dataset adn it seems like the keras tuners don't like the tf.data.Datasets yet. They're still expecting (x_train, y_train), (x_test, y_test). Is my thinking correct there? Essentially I'm loading my data using tf.keras.preprocessing.image_dataset_from_directory and would like to feed this into the tune. How could I split my own data in (x_train, y_train), (x_test, y_test)?
@AbuZaynab1
@AbuZaynab1 Жыл бұрын
This was a fantastic tutorial. I am curious to know if I could do the same with signal data using a 1D CNN Model? If so, how would the input shape differ in that scenario since I am not working with photo data?
@GregHogg
@GregHogg Жыл бұрын
Yes you could use something like this for 1d CNN's
@LukasSkywalker_
@LukasSkywalker_ 11 ай бұрын
Thanks a lot!
@GregHogg
@GregHogg 10 ай бұрын
You're welcome!
@asgardro4434
@asgardro4434 Жыл бұрын
Hey Greg, do you prefer more tensorflow or pytorch and why? Sorry for bothering you
@GregHogg
@GregHogg Жыл бұрын
I haven't learned pytorch.
@eranfeit
@eranfeit Жыл бұрын
Very nice. How can I extract the best parameters , for each layer. For example : how many filters in each cnn layer. What is chosen activation function , what is the size of the filters ? Etc. Basicly get the structure of the model. Thanks Eran
@mohammeddanishreza4902
@mohammeddanishreza4902 Жыл бұрын
Hello. Did you get the answer ? If yes, please share the answer. Thanks :)
@eranfeit
@eranfeit Жыл бұрын
@@mohammeddanishreza4902 No. I did not. However , I figured it out by myself. I uploaded some videos about it.
@mohammeddanishreza4902
@mohammeddanishreza4902 Жыл бұрын
@@eranfeit Please share the link of the video. It would be helpful. Thank you : )
@eranfeit
@eranfeit Жыл бұрын
@@mohammeddanishreza4902 please this playlist : kzbin.info/aero/PLdkryDe59y4ZO3WjBjcEUP1drjPcVvRBA The third video is dealing with this subject.
@commonsense1019
@commonsense1019 Жыл бұрын
your coding tutorial are way better than that review content
@GregHogg
@GregHogg Жыл бұрын
Thanks for the feedback!
@omar7613
@omar7613 Жыл бұрын
this is 🔥
@GregHogg
@GregHogg Жыл бұрын
Great to hear!
@royranggarofiulazmi9708
@royranggarofiulazmi9708 6 ай бұрын
Hi Greg! thanks for create this tutorial, it help me so much. but I'm currious about the possibility of implementing the keras-tuner, after i augmenting the number of image samples, by ImageDataGenerator. is it possible??
@GregHogg
@GregHogg 6 ай бұрын
It should be I think?
@robottalks7312
@robottalks7312 Жыл бұрын
Is there a way to get best number of layers also?
@GregHogg
@GregHogg Жыл бұрын
Yeah I didn't do it but I'm guessing you could mix the functional API with one of those random integers as the number of iterations of a loop. I don't think this is often done in practice though
@astronemir
@astronemir Жыл бұрын
Would have been nice to see model.summary()
@GregHogg
@GregHogg Жыл бұрын
You can run the colab code and do that if you'd like :)
@muhammadhafizi5953
@muhammadhafizi5953 Жыл бұрын
Hi may i know how to contact you?
@GregHogg
@GregHogg Жыл бұрын
Check the about section of my KZbin channel
@juanete69
@juanete69 2 ай бұрын
max_epochs is 10 but epochs is 50. Isn't it contradictory?
100❤️
00:19
Nonomen ノノメン
Рет қаралды 38 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,6 МЛН
A Review of Hyperparameter Tuning Techniques for Neural Networks
10:09
Keras Tuner | Hyperparameter Tuning a Neural Network
1:05:34
CampusX
Рет қаралды 29 М.
LSTM Time Series Forecasting Tutorial in Python
29:53
Greg Hogg
Рет қаралды 188 М.
Auto-Tuning Hyperparameters with Optuna and PyTorch
24:05
PyTorch
Рет қаралды 42 М.
Optimizing Neural Network Structures with Keras-Tuner
28:26
Image Classification using CNN Keras | Full implementation
17:56
Coding Lane
Рет қаралды 156 М.