## Predicting Survival of a Passenger on Titanic with Scikit-Learn | Python | Pandas | LinearSVC

Github : https://github.com/zed41/tutorials/tree/master/Sklearn_Titanic_Basic
Sklearn Linear SVM : http://scikit-learn.org/stable/modules/generated/sklearn.svm.LinearSVC.html

Source

### Comment List

• arijit mukherjee
December 29, 2020

How can we predict our own value? like according to age, fare, embarked.I want to calculate do i survive or not

• arijit mukherjee
December 29, 2020

Thank you so much, Arijit. Please make some more videos on simple linear, multi-linear, and polynomial Regression.

• arijit mukherjee
December 29, 2020

for anyone wondering, lambda is just some type of a function, it is used here to change "male-female" values from "male" "female" to "0" "1". you can use "for" and "if" too.

• arijit mukherjee
December 29, 2020

good video for beginners.

• arijit mukherjee
December 29, 2020

• arijit mukherjee
December 29, 2020

lol, if you take only one column ' sex ' and programmed as if sex == male , then not Survived and if sex==female then Survived. accuracy 0.78

• arijit mukherjee
December 29, 2020

very well explained, thank you!

• arijit mukherjee
December 29, 2020

can anyone telll me how X['Sex']=X['Sex'].apply(lambda x:d[x]) works

• arijit mukherjee
December 29, 2020

Wheb i do the spilt function from sklearn.model.selection import train test….etc it gives me that the module not found could you help me?

• arijit mukherjee
December 29, 2020

Can somebody help me with the Fare feature!! Why exactly is Fare significant??

• arijit mukherjee
December 29, 2020

How to encode the cabin column as Dummy variables? Because people who had cabin survived more when I visualized it. Help if possible. Thanks!

• arijit mukherjee
December 29, 2020

Amazing bro…keep up the good work

• arijit mukherjee
December 29, 2020

Thanks for the video. the github link doesn't work

• arijit mukherjee
December 29, 2020

i am getting an error bad input shape in the step clf=svm.LinearSVC()

clf.fit(X_train,Y_train)

• arijit mukherjee
December 29, 2020

clf.score(x_test,y_test) gives me a syntax error

• arijit mukherjee
December 29, 2020

Hello, @arijit mukherjee it gave me different accuracy every time I ran it. But it has nothing to do with random. I wonder why ? Does anybody else have the same issue?

• arijit mukherjee
December 29, 2020

Very easy to follow and well explained. Thank you!

• arijit mukherjee
December 29, 2020

Perfect example of how a tutorial should be!!!!!! 😀

• arijit mukherjee
December 29, 2020

easy and simple
thanks 🙂

• arijit mukherjee
December 29, 2020

The github page don't seem to work, and I'm getting error "Missing parentheses in call to 'print'", but if i put in parentheses its not printing the prediction. Can you tell me what I'm missing here. python 3 the syntax is with " ?