Skip to content

Instantly share code, notes, and snippets.

View tabsciy's full-sized avatar

Jason tabsciy

View GitHub Profile
@tabsciy
tabsciy / asdf.py
Created October 19, 2023 20:30
asdf.py
DataFrame.resample(rule, axis=0, closed=None, label=None, convention='start', kind=None, loffset=None, base=None, on=None, level=None)
@tabsciy
tabsciy / algo_loaded_state_2.py
Last active September 22, 2022 05:05
hello world example with loaded state example 2
from Algorithmia import ADK
import Algorithmia
import pickle
client = Algorithmia.client()
def load_model(file_path):
model_path = client.file(file_path).getFile().name
with open(model_path, 'rb') as f:
model = pickle.load(f)
@tabsciy
tabsciy / algo_loaded_state.py
Created September 22, 2022 04:51
hello world example with loaded state
from Algorithmia import ADK
import Algorithmia
client = Algorithmia.client()
def apply(input, modelData):
return "hello {} {}".format(str(input), str(modelData['payload']))
def load(modelData):