Skip to content

Instantly share code, notes, and snippets.

View polinabee's full-sized avatar

Polina Berenstein polinabee

  • lvmh
  • paris
View GitHub Profile
@polinabee
polinabee / hypercube-classification-box.ipynb
Last active March 3, 2021 21:17
Hypercube binary classification algorithms
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@polinabee
polinabee / multi-d-knn.ipynb
Created February 18, 2021 18:49
Multi-dimensional KNN Classification Exploration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@polinabee
polinabee / mst_clustering.ipynb
Created December 21, 2020 23:02
MST clustering from a group project assignment
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@polinabee
polinabee / api-example.ipynb
Last active December 18, 2020 14:48
Some simple code to get data from an API, from a class project.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@polinabee
polinabee / length_of_stay.ipynb
Created December 18, 2020 14:38
Hospital length of stay: data exploration and prediction model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@polinabee
polinabee / kmeans-implementation.ipynb
Last active December 18, 2020 14:19
K-Means clustering algorithm from scratch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pandas as pd
import numpy as np
import datetime
from sklearn import preprocessing
import category_encoders as ce
from sklearn.impute import IterativeImputer
from sklearn.linear_model import BayesianRidge
@polinabee
polinabee / df_to_postgres.py
Last active March 9, 2021 07:58
Pandas Dataframe to PostgreSQL Quick Conversion
import os
import psycopg2
from psycopg2.extras import execute_batch
import pandas as pd
def get_tuples(d):
datadict = d.to_dict('records')
return [tuple(d.values()) for d in datadict]
@polinabee
polinabee / index.html
Created September 25, 2016 02:30
Test for QGIS to Leaflet plugin
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="css/leaflet.css" />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.