Titanic Dataset Analysis (Classification) | Kaggle | Machine Learning | Python

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

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

  • @anamaposadar
    @anamaposadar 2 года назад +2

    I really liked your explanation, everything was so clear!

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

    55:56 i'm wondering why you delete the cv=5 on cross_val_score ? is it no longer neccesary? as few second before that it still exist. btw great video, i'm learning much from it, and oddly enough, when i tried your logistic regression it work just fine.

  • @nidhik5270
    @nidhik5270 Год назад +1

    Thankyou so much..... It was so helpful ❤️

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

    Hi , while fitting the model, we use X and y where y = ['Survived'] . Now X has has no NaN values but Y does . So it throws an error. Since y is our target varable , is it appropriate to fill the missing values with mode?

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

      no, we can't use mode for the target, you could drop those rows from the dataset.

  • @jerryvictor3583
    @jerryvictor3583 Год назад +1

    Thank you for this. Pls I have a little challenge, when I get to LogisticRegression, I get error, it says ' X is not defined'.... Pls how do I solve this?

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

      try to run the cells in order to avoid any errors!!!

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

    when I am using a sns for survival visual graph it returns with and
    a graph filled with only blue color

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

      Same Issus
      Did you understand what is the probles

    • @patrick.bateman.psy1
      @patrick.bateman.psy1 5 месяцев назад

      Yes same issue

    • @Akashvardhan._
      @Akashvardhan._ 4 месяца назад +1

      Actually the problem is that the method he did is kind of old where it automatically detects 'X' axis to be 'Survived' column
      but when we try to do it now it won't work
      instead in the function call itself we should mention as sns.countplot(x=train['Survived']) ...('We are now manually mentioning that the X axis should be of the specified column')

  • @SaniaShaikh9202
    @SaniaShaikh9202 Год назад +1

    sns.countplot(train['Sex']) i get an error saying that it cannot convert string to float: 'male' and also during the exploratory data analysis i am only getting output graph for one value as in Axes: ylabel='count' it does not show the xlabel pls help

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

      Same happened with me in survived graph did you find any solution?

  • @alexnieto5036
    @alexnieto5036 Год назад +1

    very good work !

  • @ST-nu6ib
    @ST-nu6ib 2 года назад +2

    How to fill NaN in age with respect to Survived column. Suppose if I want to fill age of a survived human with mean age of all survived humans, and fill age of a not survived human with age of not survived human, then how to do it?

    • @HackersRealm
      @HackersRealm  2 года назад +2

      you can use groupby function or pivot table function to get the mean of the category. you can check bigmart sales or black friday sales project videos for the methods

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

    waiting !!!

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

    why are you dropping the survived column in the last

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

    Can you please explain why you use lower case (model x , y ) for CV whereas for LR ( model , X, y).

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

      Both are in same case only, Please check!!!

  • @patrick.bateman.psy1
    @patrick.bateman.psy1 5 месяцев назад

    When I run the sns.countplot(train['Survived']) then only the blue graph is showing with value of 800.... What's the solution of this or this is the bug from the dataset itself..

    • @HackersRealm
      @HackersRealm  5 месяцев назад

      Could you double check the column values whether it has 2 classes

    • @patrick.bateman.psy1
      @patrick.bateman.psy1 4 месяца назад

      No it has only 1 class

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

      @@patrick.bateman.psy1 it should be 2 classes, survived and not survived, I think some issue in the dataset

    • @patrick.bateman.psy1
      @patrick.bateman.psy1 4 месяца назад

      @@HackersRealm Yes it's the issue with the dataset, Is anyway to fix it)

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

      @@patrick.bateman.psy1 try the dataset in my github or use the kaggle link to download it. You could also try from other websites as well

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

    waiting

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

    Sir I am getting values of passengers in 800 's sir what can I do now

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

      I didn't get you, value of passengers means?

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

    ks stats kab perfrom krte h

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

    Fare null should be replaced with median

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

    im getting an error i dont understand why
    TypeError: Singleton array array(891) cannot be considered a valid collection.

  • @Sumer-zt5cu
    @Sumer-zt5cu 2 года назад

    Input Nan Contains NaN ...
    How to deal with it brother plzz explain

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

      drop the null values or replace the null values with some stats or negatives

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

      you can also check this video ruclips.net/video/FEQpdgoH_pM/видео.html

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

    My 'Age' data is float too but when I am trying to solve it it cant execute. The error shows- TypeError: unsupported operand type(s) for +: 'float' and 'method'
    Can anyone help?

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

      what method you are trying to use on age?