GridSearchCV | Hyperparameter Tuning | Machine Learning with Scikit-Learn Python

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • In this Scikit-Learn learn tutorial I've talked about hyperparameter tuning with grid search. You'll be able to find the optimal set of hyperparameters for any machine learning model using this method!
    #machinelearning #python #scikitlearn
    For more videos please subscribe -
    bit.ly/normaliz...
    Support me if you can ❤️
    www.buymeacoff...
    www.paypal.com...
    Source Code -
    github.com/Suj...
    Data Source -
    www.kaggle.com...
    Facebook -
    / nerdywits
    Instagram -
    / normalizednerd
    Twitter -
    / normalized_nerd

Комментарии • 64

  • @KayYesYouTuber
    @KayYesYouTuber 2 года назад +4

    Thanks. Nice video. But why are you doing GS.fit (X_train, Y_train) when you already have cross validation with cv = 5. Shouldn't you just do GS.fit (X, Y) ?

    • @lukehamilton8285
      @lukehamilton8285 Год назад +2

      you should train on x_train and y_train because this allows you to further test the model once the optimal hyperparameters have been found with an unseen test set which the model has not seen stopping data-leakage

  • @jessemutiga6055
    @jessemutiga6055 2 года назад +1

    there'll alway be a random indian out there who will help you get your assignment done on time.

    • @NormalizedNerd
      @NormalizedNerd  2 года назад

      lol...at least you are not outsourcing your assignments!

  • @krimsonsun10
    @krimsonsun10 Год назад +3

    DUDE!!! You are the Guru among common minds. This was the best explanation ever. Simple succinct and easily understandable for a newbie like me. I also like you give extra homework, and nuggets of knowledge related to the topic that I can look into afterwards. Now time to study the rest of your videos 👍⭐⭐⭐⭐⭐

  • @shwetabhat9981
    @shwetabhat9981 2 года назад +4

    Hope you are doing well sir . Kindly continue your video series as it greatly helps and is just amazing!! 🙂

  • @philipbutler
    @philipbutler 3 года назад +13

    I learned about grid search for a course last semester, it was for a final project on sklearn that I waited to start 3 days before it was due, so I rushed to learn a lot of concepts that I promised myself I’d go back and understand more thoroughly (and probably will need to for upcoming courses/career). So this was an awesome refresher on this topic! Love your videos, keep up the great work!

    • @NormalizedNerd
      @NormalizedNerd  3 года назад +1

      Thanks mate! It's always useful to revisit an old topic.

  • @ZirothTech
    @ZirothTech 2 года назад

    Great video, thanks again!

  • @bassamdaou2908
    @bassamdaou2908 2 года назад +1

    Thank you. Please can you make a video explaining how we can make prediction from different regression models: regression tree, random forest, artificial neural network, SVM, Bagged CART, Generalized boosting, Extreme Gradient boosting

  • @ikramed
    @ikramed 2 месяца назад

    Random state why = 2021

  • @chongzhang871
    @chongzhang871 7 месяцев назад

    What about the the testing data? It seems u have not used them.

  • @raselsheikh5800
    @raselsheikh5800 3 года назад +1

    This is my first comment at youtube. I came here because of your video quality and realize your explanation also fanstastic. I think you are using manim. For me it's a great chanel.

    • @NormalizedNerd
      @NormalizedNerd  3 года назад

      Welcome to my channel! I'm really glad you that liked my content :D :D
      Yes, I use manim.

  • @onestopzz6446
    @onestopzz6446 2 года назад +1

    Bro, even without hyper parameter tuning, I am getting more than 0.99 r2_score. But I am getting 0.96 r2_score with tuning. So how exactly this tuning is helpful?

    • @achin_sharma
      @achin_sharma 6 месяцев назад

      it means default values are best fit for your dataset

  • @MessiasBatista
    @MessiasBatista Год назад

    Hello, congratulations for video.
    I have a question. You have a example that discovers the best hyper-parameters using Swarm Intelligence?

  • @anurajms
    @anurajms Год назад

    ty

  • @fosheimdet
    @fosheimdet Год назад

    From now on, I identify as a person from the future😊

  • @Junistz
    @Junistz 2 года назад

    Thanks for your video it is going to help me ! :D
    Invalid parameter "max_depth " contains whitespace.
    I got error kind of this ..

  • @tinanajafpour7214
    @tinanajafpour7214 2 года назад

    thank you for the video it was really helpful. I had a question, could you please help me? when I want to download data from kaggle, I receive 403 forbidden Error!

  • @viniciuslazzeri3019
    @viniciuslazzeri3019 Год назад

    Amazing! How can I implement this on fastercnns?

  • @mikeboudhabhay6082
    @mikeboudhabhay6082 11 месяцев назад

    thanks for your work and dedication . your vid is very useful for my final project in DS bootcamp.

  • @jamalnuman
    @jamalnuman 8 месяцев назад

    great

  • @amirhosseinrahimi3964
    @amirhosseinrahimi3964 Год назад

    Thanks, one queation, after tuining the model and finding the best hyper parameter, is it necessary to run the model with found best parameter for moel training right and prediction? i mean after using GridSearchCV, model is already configured by best parameter? can you please elaborate?

  • @ramblingsofadegenerate1174
    @ramblingsofadegenerate1174 4 месяца назад

    Recently found your channel very grateful

  • @samikshakolhe5086
    @samikshakolhe5086 2 года назад

    Awesome Explaination! appreciate your work and subscribed;)

  • @madstolyar
    @madstolyar 2 года назад

    How does GridSearch work with pickeld data?

  • @excursion5246
    @excursion5246 2 года назад

    thanks. Can you make a video about deep neural network regression predictions. Like multiple inputs and one output prediction by using this gridsearch. Thanks a lot.

  • @yusufpradanaajisurya9176
    @yusufpradanaajisurya9176 6 месяцев назад

    Thank you!! This is the best video on this subject!

  • @idrissjairi
    @idrissjairi Год назад

    thank you so much for the great video

  • @grumpy_techo
    @grumpy_techo Год назад

    I have just stumbled upon you channel. you videos are well communicated. Well done. Another good video could be - how do you settle on a model that is generalised to test data.

  • @shoaibsh2872
    @shoaibsh2872 3 года назад +1

    I knew about grid search, but in the end the technique you shared was new to me and it will be really helpful in the future when I'm going to use grid search, thank you for sharing. Great vid as always 😊

  • @cvrbcheppali8214
    @cvrbcheppali8214 9 месяцев назад

    Very nice and one of the best video on Hyperparameter Tuning

  • @antonellars22
    @antonellars22 Год назад

    Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @LeE-yr7lp
    @LeE-yr7lp 2 года назад

    Could you do a video about boosting models please? Thanks

  • @PythonArms
    @PythonArms Год назад

    Great video. thank you

  • @10955356
    @10955356 8 месяцев назад

    amazing video my friend!

  • @karlopoljancic
    @karlopoljancic 10 месяцев назад

    Thanks! Gonna try this out!

  • @lukehamilton8285
    @lukehamilton8285 Год назад

    great video helped me alot!

  • @736939
    @736939 2 года назад

    Where are you? We miss you :(

  • @parulkhattar28
    @parulkhattar28 2 года назад

    1:53 -> 2D arrays not lists 😀

  • @cyberpunk_edgerunners
    @cyberpunk_edgerunners Год назад

    thanks , my friend

  • @saurabhjoshi8776
    @saurabhjoshi8776 Год назад

    keep up the good work..😀

  • @collinspo
    @collinspo Год назад

    Great content. Thanks

  • @rijwanapatel6942
    @rijwanapatel6942 2 года назад

    Hey buddy how old are your 😁

  • @harshavardhanm9481
    @harshavardhanm9481 Год назад

    Nice, clean animations 👍

  • @tomliao6667
    @tomliao6667 2 года назад

    thanks for sharing especially for the last part that how to choose an efficient model with low computer resource wasting haha

  • @nachomacho7027
    @nachomacho7027 2 года назад

    Thank you bro

  • @gouthamansaravanan7692
    @gouthamansaravanan7692 2 года назад

    Best one! Thanks!!

  • @deniskoala3131
    @deniskoala3131 2 года назад

    Thank you for this beautiful work.
    I have a question: what happens if we run the same code several times? Will the best_estimator always be the same?
    Thank you for your answer.

    • @tomliao6667
      @tomliao6667 2 года назад

      if you keep random_state the same number, I guess there will be the same best_estimator

  • @ganeshnaik6503
    @ganeshnaik6503 3 года назад

    This is awesome. Thanks!

  • @krepker
    @krepker 3 года назад

    Awesome video. tnx man!!

  • @kolboy2028
    @kolboy2028 3 года назад

    which software do you use for your animation?

    • @NormalizedNerd
      @NormalizedNerd  3 года назад +2

      I used manim for intro animation

    • @kolboy2028
      @kolboy2028 3 года назад

      @@NormalizedNerd and for the rest of the video?

  • @bzaruk
    @bzaruk 3 года назад

    Great vid! Thanks!

  • @im4485
    @im4485 Год назад

    Nice