Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Ilya Jackson Jackil1993

🌴
On vacation
View GitHub Profile
@YohanObadia
YohanObadia / knn_impute.py
Last active Mar 25, 2021
Imputation of missing values with knn.
View knn_impute.py
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
def weighted_hamming(data):