Skip to content

Instantly share code, notes, and snippets.

View pietz's full-sized avatar

Paul-Louis Pröve pietz

View GitHub Profile
@YohanObadia
YohanObadia / knn_impute.py
Last active January 25, 2024 14:23
Imputation of missing values with knn.
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):
# coding: utf-8
import logging
import re
from collections import Counter
import numpy as np
import torch
from sklearn.datasets import fetch_20newsgroups
from torch.autograd import Variable
@baldassarreFe
baldassarreFe / MixedScaleDenseNetwork.ipynb
Created March 12, 2018 16:36
Mixed-Scale Dense Network
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.