GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • All gists
  • Back to GitHub
  • Sign in
  • Sign up
  • All gists 16
  • Starred 5
  • Terms
  • Privacy
  • Security
  • Status
  • Community
  • Docs
  • Contact

This view

  • Original page
  • New address

GeezerVison is showing gist.github.com — polinabee’s gists

Instantly share code, notes, and snippets.

View polinabee's full-sized avatar

Polina Berenstein polinabee

software dev, all things data
18 followers · 40 following
  • paris
View GitHub Profile
    • Recently created
    • Least recently created
    • Recently updated
    • Least recently updated
  • 1 file
  • 0 forks
  • 0 comments
  • 0 stars
@polinabee
polinabee / retryable_client.py
Last active November 26, 2024 10:47
Retryable Client
import time
from functools import wraps
def retry_call(
max_retries: int = 5,
backoff_factor: int = 2,
retryable_exceptions: tuple = None
):
"""
  • 1 file
  • 0 forks
  • 0 comments
  • 0 stars
@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.
  • 1 file
  • 0 forks
  • 0 comments
  • 0 stars
@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.
  • 1 file
  • 0 forks
  • 0 comments
  • 0 stars
@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.
  • 1 file
  • 0 forks
  • 0 comments
  • 0 stars
@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.
  • 1 file
  • 0 forks
  • 0 comments
  • 1 star
@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.
  • 1 file
  • 0 forks
  • 0 comments
  • 1 star
@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.
  • 1 file
  • 0 forks
  • 0 comments
  • 1 star
@polinabee
polinabee / xg_booster.py
Created December 17, 2020 15:11
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
  • 1 file
  • 0 forks
  • 0 comments
  • 1 star
@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]
  • 1 file
  • 0 forks
  • 0 comments
  • 0 stars
@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" />
NewerOlder
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.