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

Поділитися
Вставка
  • Опубліковано 2 сер 2022
  • 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 Рік тому +1

    Thank you Greg. That's very helpful.

  • @proterotype
    @proterotype Рік тому +1

    I’m using this for a CNN. Thanks for the clear presentation and walk through. You’re the man

  • @ithaca2076
    @ithaca2076 Рік тому

    actually incredibly useful thank you so much

    • @GregHogg
      @GregHogg  Рік тому

      Oh I'm really glad to hear that! :)

  • @Xnshau
    @Xnshau Рік тому

    Brilliant thanks Greg👍

  • @jeremiasvillalobos9950
    @jeremiasvillalobos9950 2 місяці тому

    Thank you!!

  • @hawaiisunkissselftanner4890

    Amazing Viedo! Thank you so much! Saved my ass of my assignment 😂

  • @sergiochavezlazo5362
    @sergiochavezlazo5362 Рік тому

    Great video! Thank u!

    • @GregHogg
      @GregHogg  Рік тому

      You're very welcome :)

  • @shantanukulkarni2413
    @shantanukulkarni2413 Рік тому +1

    Excellent topic

  • @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!

  • @LukasSkywalker_
    @LukasSkywalker_ 10 місяців тому

    Thanks a lot!

    • @GregHogg
      @GregHogg  10 місяців тому

      You're welcome!

  • @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

  • @gamuchiraindawana2827
    @gamuchiraindawana2827 5 місяців тому

    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?

  • @omar7613
    @omar7613 Рік тому

    this is 🔥

  • @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

  • @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)?

  • @juanete69
    @juanete69 3 місяці тому

    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?

  • @eranfeit
    @eranfeit Рік тому +2

    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 Рік тому +1

      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 Рік тому +1

      @@eranfeit Please share the link of the video. It would be helpful. Thank you : )

    • @eranfeit
      @eranfeit Рік тому

      @@mohammeddanishreza4902 please this playlist :
      ua-cam.com/play/PLdkryDe59y4ZO3WjBjcEUP1drjPcVvRBA.html
      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!

  • @asgardro4434
    @asgardro4434 Рік тому

    Hey Greg, do you prefer more tensorflow or pytorch and why? Sorry for bothering you

    • @GregHogg
      @GregHogg  Рік тому

      I haven't learned pytorch.

  • @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  5 місяців тому

      It should be I think?

  • @robottalks7312
    @robottalks7312 Рік тому

    Is there a way to get best number of layers also?

    • @GregHogg
      @GregHogg  Рік тому +1

      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 UA-cam channel

  • @juanete69
    @juanete69 2 місяці тому

    max_epochs is 10 but epochs is 50. Isn't it contradictory?