Skip to content

Instantly share code, notes, and snippets.

View jjasont's full-sized avatar
🔍
on the pursuit of clean data

Jason Tan jjasont

🔍
on the pursuit of clean data
  • Singapore
View GitHub Profile
@jjasont
jjasont / parent-and-child-runs.py
Created August 15, 2023 17:41 — forked from smurching/parent-and-child-runs.py
creating-child-runs-in-mlflow
import mlflow
# There are two ways to create parent/child runs in MLflow.
# (1) The most common way is to use the fluent
# mlflow.start_run API, passing nested=True:
with mlflow.start_run():
num_trials = 10
mlflow.log_param("num_trials", num_trials)
best_loss = 1e100
@jjasont
jjasont / convert.py
Last active February 13, 2020 03:12 — forked from rednebmas/convert.py
Convert sqlite3 dump to mysql importable statements (Python3) - To be Tested
import re, fileinput
print('SET FOREIGN_KEY_CHECKS=0;')
def main():
for line in fileinput.input():
process = False
for nope in ('BEGIN TRANSACTION','COMMIT',
'sqlite_sequence','CREATE UNIQUE INDEX'):
if nope in line: break
@jjasont
jjasont / README.md
Last active October 4, 2019 05:28 — forked from arikfr/README.md
Redash Query Export Tool

Setup

$ pip install click requests

Usage

$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""