Kaggle's 30 Days Of ML (Day-4): Python Booleans and Conditionals

  Рет қаралды 9,468

Abhishek Thakur

Abhishek Thakur

2 жыл бұрын

This video is a walkthrough of Kaggle's #30DaysOfML. In this video, we learn about booleans and conditionals in #Python :)
Tutorial Link: www.kaggle.com/colinmorris/bo...
Note: this video is not sponsored by #Kaggle!
Please subscribe and like the video to help me keep motivated to make awesome videos like this one. :)
To buy my book, Approaching (Almost) Any Machine Learning problem, please visit: bit.ly/buyaaml
Follow me on:
Twitter: / abhi1thakur
LinkedIn: / abhi1thakur
Kaggle: kaggle.com/abhishek

Пікірлер: 40
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
Hi everyone! After taking a detailed look at the Blackjack problem, I don't think there is a need for any tutorial on it. The problem itself is quite simple. if you do "return player_total < 15", you will get a win rate of ~42%. Given that blackjack between 1 person and dealer is a lot of luck, its not possible to get a better win rate. Even if you use a machine learning model, you will end up with something that returns False most of the time. If you have a better solution, lemme know and we will discuss it!
@96515325
@96515325 2 жыл бұрын
It’s interesting that I referred to a blackjack single deck strategy and basically wrote it in code and the win rate is actually lower than 42%! It’s only 40%
@shravangowda3373
@shravangowda3373 4 ай бұрын
Please can you make a video if it is solved or please share the code .....
@Magsidun
@Magsidun Жыл бұрын
You are a rockstar for beginners, Abhishek. wonderful bro.
@milanmcgraw
@milanmcgraw 2 жыл бұрын
Love the detailed walk throughs!!!
@akshaychoudhary5770
@akshaychoudhary5770 2 жыл бұрын
you are simply outstanding. thank you
@kenken2942
@kenken2942 2 жыл бұрын
greatly thank you for your kind walk throughts!!! I just have started to study Python and Kaggle, but Kaggle is not supported by my first language, so there is almost no helpful web-sites by the language. Thanks to this channel, I am going to keep up with Kaggle for 30 days!!! :)
@mishrasidharth
@mishrasidharth 2 жыл бұрын
Very Detailed and Nicely Done
@kranthi6310
@kranthi6310 2 жыл бұрын
any one done with that optional excercise ?
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
if player count
@kranthi6310
@kranthi6310 2 жыл бұрын
@@abhishekkrthakur tqu for ur quick response
@ilhembekk8103
@ilhembekk8103 2 жыл бұрын
thank you very much , please how should we submit the lab ?
@Jeangirlbell
@Jeangirlbell Ай бұрын
Thank you SOOO much for making those videos to teach us!!!It's genuinely helpful for me to learn Python. There'is not enough resources for me as a high school student to learn and understand Python, but through your free vedios online I think I'm doing a good job studying it! Lots of thanks
@amitjethwani4708
@amitjethwani4708 2 жыл бұрын
i have written right code in the cell but not able to run the next cell to get the solution 23:46 check the time stamp
@sohampod
@sohampod 2 жыл бұрын
hey, your explanations are great but its been 2 days and I am still stuck at day 4 Optional question (blackjack one). Can you please take some time to explain that also. I am really confused and need help with that.
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
checkout the pinned comment :)
@pavneetkaur404
@pavneetkaur404 2 жыл бұрын
Hey please tell that after completing the exercise we have to save it or it save automatically??
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
you dont need to save it. just run everything. and get correct on everything
@pavneetkaur404
@pavneetkaur404 2 жыл бұрын
Ok thanks for replying
@singhsandeep
@singhsandeep 2 жыл бұрын
Hi Abhishek, I could not register in time for Kaggle 30 days of ML. Is there any way I can still access and try to solve the problems?
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
i mention the link to tutorial in each video. its in description box. follow that, do the exercises and you will get the certificate :)
@singhsandeep
@singhsandeep 2 жыл бұрын
​@@abhishekkrthakur Thanks, I didn't check.
@vamsi1327
@vamsi1327 6 ай бұрын
I was stucked at 88% i have done all excercise but cannot complete
@harishchandrasekaran6096
@harishchandrasekaran6096 2 жыл бұрын
I guess for splitting candies problem, we need to add statement below and then use if statement... " total_candiess=total_candies % 3 " if total_candiess == 1: print("Splitting", total_candiess, "candy") else: print("Splitting", total_candiess, "candies")
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
not really. why ? :)
@adogswimming1474
@adogswimming1474 2 жыл бұрын
I'm confused at 26:24. You have: False OR True AND True OR True AND True You said that equals to False OR True OR True = False OR True = False. I thought False OR True = True. Thank you to anyone who helps me!
@kagothipe4858
@kagothipe4858 2 жыл бұрын
I also have the same confusion. Hope he gets to see this.
@ramanpandey8
@ramanpandey8 2 жыл бұрын
You're right. I think that's a mistake on the tutorial. I have checked today in Kaggle course with the below. Hope it helps and also please let me know if I'm wrong. def prepared_for_weather(have_umbrella, rain_level, have_hood, is_workday): # Don't change this code. Our goal is just to find the bug, not fix it! # (false or true) and false or not false and false # -> true and false or not false and false # -> true and false or true and false #-> false or false -> false . That's the shown output in the tutorial. return (have_umbrella or rain_level < 5) and have_hood or not rain_level > 0 and is_workday # Change the values of these inputs so they represent a case where prepared_for_weather # returns the wrong answer. have_umbrella = False rain_level = 0.0 have_hood = False is_workday = False Also, please check the below one: def prepared_for_weather(have_umbrella, rain_level, have_hood, is_workday): # Don't change this code. Our goal is just to find the bug, not fix it! # false or true and false or not false and false # false or true and false or true and false # false or false or false # false return have_umbrella or rain_level < 5 and have_hood or not rain_level > 0 and is_workday # Change the values of these inputs so they represent a case where prepared_for_weather # returns the wrong answer. have_umbrella = False rain_level = 0.0 have_hood = False is_workday = False
@byronlovelace8379
@byronlovelace8379 2 жыл бұрын
Sorry, but you are ruining the whole concept. People should do the exercises themselves, otherwise they will not learn anything.
@sidkapoor9085
@sidkapoor9085 2 жыл бұрын
No one is forcing anyone to watch this video lol. the solutions are given anyway.
@aniruddhamandal6068
@aniruddhamandal6068 2 жыл бұрын
so what do you expect? No answers only questions? The answers are already there in the notebook bro. No one's coming here just to know the answers😂
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
Byron, I understand what you mean. But the solutions for exercises are available anyways. If someone wants to cheat, they can finish all days in less than 30 minutes just by looking into solution. In my walkthroughs, I explain a lot of other things that are not available in the tutorial and talk about alternative solutions. I must also mention that I am doing this after taking permission from Kaggle.
Kaggle's 30 Days Of ML (Day-5, Part-1): Python Lists and Tuples
33:51
Abhishek Thakur
Рет қаралды 8 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 12 МЛН
Me: Don't cross there's cars coming
00:16
LOL
Рет қаралды 13 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 28 МЛН
#3 - Learn Python with Kaggle - Booleans and Conditionals
1:20:26
CODE MENTAL
Рет қаралды 11 М.
Kaggle's 30 Days Of ML (Day-6): Python Strings and Dictionaries
45:14
Abhishek Thakur
Рет қаралды 9 М.
What Are Decision Trees And How Do They Work? (From Scratch)
49:54
Abhishek Thakur
Рет қаралды 11 М.
Рекурсия. Грокаем алгоритмы.
6:46
про АйТи | IT Pro
Рет қаралды 929
Kaggle's 30 Days Of ML (Day-12 Part-2): Handling Categorical Variables
55:43