Visualisation of House Prices

Visualization is the presentation of data in a pictorial or graphical format. It enables decision-makers to see analytics presented visually, so they can grasp difficult concepts or identify new patterns.…

Continue Reading Visualisation of House Prices

4 different ways to predict survival on Titanic – part 2

continued from part 1 Classification KNeighborsClassifier In [16]: from sklearn.neighbors import KNeighborsClassifi alg_ngbh = KNeighborsClassifier(n_neighbors=3) scores = cross_validation.cross_val_score(alg_ngbh, train_data_scaled, train_data_munged["Survived"], cv=cv, n_jobs=-1) print("Accuracy (k-neighbors): {}/{}".format(scores.mean(), scores.std())) Accuracy (k-neighbors): 0.7957351290684623/0.011110544261068086 SGDClassifier In [17]:…

Continue Reading 4 different ways to predict survival on Titanic – part 2

Submission for Kaggle’s Titanic Competition

Following is my submission for Kaggle's Titanic Competition In [361]: import pandas as pd import numpy as np In [362]: df_train = pd.read_csv(r'C:UserspiushDesktopDatasetTitanictrain.csv') In [363]: df_train.head(2) Out[363]: PassengerId Survived Pclass Name Sex Age…

Continue Reading Submission for Kaggle’s Titanic Competition