$ pip install click requests
$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
| 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 |
| 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 |