Skip to content

Instantly share code, notes, and snippets.

View awmatheson's full-sized avatar
🏠
Working from home

Zander awmatheson

🏠
Working from home
View GitHub Profile
@awmatheson
awmatheson / visualizing-streaming-data.ipynb
Last active December 16, 2022 17:03
visualizing-streaming-data.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@awmatheson
awmatheson / PyData_Global_2022_slides.pdf
Last active April 21, 2024 01:37
pydata-2022.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@awmatheson
awmatheson / streaming_impute.py
Created June 21, 2022 19:44
Impute values on a stream of data.
import random
import numpy as np
from bytewax import Dataflow, inputs, parse, run_cluster
def random_datapoints():
for epoch in range(100):
if epoch % 5 == 0:
yield f'data', np.nan
#!/bin/bash
cat >Dockerfile <<EOL
FROM docker.registry.github.com/github/virga-wrapper/base-flask:latest
ADD model.py /working
EOL
curl -L https://gist.githubusercontent.com/awmatheson/f9fd5394e7addf962aabd29ff68b5035/raw/a65218b404fd6fee5dbabb12f506180e2c9a22ea/model.py -o model.py -s
@awmatheson
awmatheson / model.py
Created November 30, 2018 02:28
template for model.py file for model deployment
class Model():
"""This defines the necessary attributes for the model object
"""
def __init__(self):
# specify your data for fitting here
self.X_fit = []
self.Y_fit = []
self.model_store = "really.awesome.fast.model.store"
self.feature_store = "really.awesome.fast.feature.store"