application_vnd.jupyter.stderr_output_1.png
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier

from sklearn.naive_bayes import GaussianNB

from sklearn.svm import SVC

import pandas as pd

data_train = pd.read_csv('../input/train.csv')
data_test = pd.read_csv('../input/test.csv')
data_train.sample(5)

data_train.sample(5)

train_x = data_train[['Pclass', 'Sex', 'Family_Size']]
train_x.sample(5)

train_y = data_train['Survived']
train_y.sample(4)

from sklearn.naive_bayes import GaussianNB
from sklearn.svm import SVC
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
model = GaussianNB()
model1 = SVC()
model2 = RandomForestClassifier()
model3 = GradientBoostingClassifier()

model.fit(train_x, train_y)