Skip to content

Instantly share code, notes, and snippets.

@weldpua2008
weldpua2008 / migrate_data.py
Last active January 20, 2022 09:51 — forked from bnekolny/migtrate_data.py
MLFlow migration script from filesystem to database tracking data
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Migration From FileBased store of MLFlow 0.8 up to 1.8.0
Credits:
* Based on work of bnekolny https://gist.github.com/bnekolny/8ec96faa0d57913eea6bb7848c06b912
* Latest version https://gist.github.com/weldpua2008/7f0c4644d247bd0fc7ba9a83c2d337d5
requirements:
pyyaml version 5.1 was required
#!/usr/bin/env python
# Marcus Furlong <furlongm@vpac.org> 4/4/2012
# Pin vcpus on xen
import sys
sys.path.insert(1, '/usr/lib/xen-4.0/lib/python')
sys.path.insert(1, '/usr/lib/xen-4.0/lib/python/xen/xm')
import os