Skip to content

Instantly share code, notes, and snippets.

View blaze-fire's full-sized avatar
🎯
Focusing

Krishan Singh blaze-fire

🎯
Focusing
View GitHub Profile
@blaze-fire
blaze-fire / flask_setup_heroku.md
Created June 16, 2022 16:42 — forked from mayukh18/flask_setup_heroku.md
How to setup flask app with database on heroku

Setting up flask app in heroku with a database

The below article will cover the intricacies of setting up databases and heroku in respect to a flask app. This is more like a memo and will have out of sequence instructions or solutions to errors so read thoroughly.

Setting up a database

You'll need the packages

@blaze-fire
blaze-fire / mlflow_gridsearch.py
Created June 21, 2022 08:43 — forked from liorshk/mlflow_gridsearch.py
Create MLFlow runs with Sklearn Gridsearch object
def log_run(gridsearch: sklearn.GridSearchCV, experiment_name: str, model_name: str, run_index: int, conda_env, tags={}):
"""Logging of cross validation results to mlflow tracking server
Args:
experiment_name (str): experiment name
model_name (str): Name of the model
run_index (int): Index of the run (in Gridsearch)
conda_env (str): A dictionary that describes the conda environment (MLFlow Format)
tags (dict): Dictionary of extra data and tags (usually features)