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.
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?
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?
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')
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
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?
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
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..
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?
I really liked your explanation, everything was so clear!
Glad you liked it!!!😄
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.
Thankyou so much..... It was so helpful ❤️
Happy to h3lp!!!
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?
no, we can't use mode for the target, you could drop those rows from the dataset.
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?
try to run the cells in order to avoid any errors!!!
when I am using a sns for survival visual graph it returns with and
a graph filled with only blue color
Same Issus
Did you understand what is the probles
Yes same issue
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')
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
Same happened with me in survived graph did you find any solution?
very good work !
Glad you liked it!!!
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?
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
waiting !!!
why are you dropping the survived column in the last
before the model training part?
Can you please explain why you use lower case (model x , y ) for CV whereas for LR ( model , X, y).
Both are in same case only, Please check!!!
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..
Could you double check the column values whether it has 2 classes
No it has only 1 class
@@patrick.bateman.psy1 it should be 2 classes, survived and not survived, I think some issue in the dataset
@@HackersRealm Yes it's the issue with the dataset, Is anyway to fix it)
@@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
waiting
Sir I am getting values of passengers in 800 's sir what can I do now
I didn't get you, value of passengers means?
ks stats kab perfrom krte h
Fare null should be replaced with median
im getting an error i dont understand why
TypeError: Singleton array array(891) cannot be considered a valid collection.
Are you using the same code?
Input Nan Contains NaN ...
How to deal with it brother plzz explain
drop the null values or replace the null values with some stats or negatives
you can also check this video ruclips.net/video/FEQpdgoH_pM/видео.html
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?
what method you are trying to use on age?