Skip to content

Instantly share code, notes, and snippets.

@ocoyawale
ocoyawale / knn_impute_example.py
Created January 28, 2018 01:52 — forked from YohanObadia/knn_impute_example.py
Example of use for the knn_impute function
knn_impute(target=df['Age'], attributes=df.drop(['Age', 'PassengerId'], 1),
aggregation_method="median", k_neighbors=10, numeric_distance='euclidean',
categorical_distance='hamming', missing_neighbors_threshold=0.8)
@ocoyawale
ocoyawale / knn_impute.py
Last active January 28, 2018 01:53 — forked from YohanObadia/knn_impute.py
Imputation of missing values with knn.
# Modified the print statement slightly to allow for use in python 3 coding
import numpy as np
import pandas as pd
from collections import defaultdict
from scipy.stats import hmean
from scipy.spatial.distance import cdist
from scipy import stats
import numbers
@ocoyawale
ocoyawale / HrDataser.ipynb
Created January 29, 2018 03:31 — forked from Keerthivasan-A/HrDataser.ipynb
Kaggle HR Dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ocoyawale
ocoyawale / titanic_seaborn.ipynb
Created January 29, 2018 03:41 — forked from mwaskom/titanic_seaborn.ipynb
Exploring the Kaggle Titanic dataset with seaborn.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ocoyawale
ocoyawale / titanic.ipynb
Created January 29, 2018 04:09 — forked from gcnit/titanic.ipynb
Titanic Kaggle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ocoyawale
ocoyawale / k insurance.ipynb
Created January 29, 2018 04:26 — forked from roberttreichler/k insurance.ipynb
pandas scikit learn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ocoyawale
ocoyawale / Outbrain_click_analysis.ipynb
Created January 29, 2018 05:07 — forked from Inquisitive-Geek/Outbrain_click_analysis.ipynb
A Python Notebook with explains how Outbrain data was loaded into Spark
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ocoyawale
ocoyawale / Project Amazon Fine Food Reviews.ipynb
Created January 29, 2018 05:07 — forked from abhigrover101/Project Amazon Fine Food Reviews.ipynb
Sentiment Classification : Amazon Fine Food Reviews Dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.