Created
May 12, 2021 01:40
-
-
Save seahrh/4ff74a67beed66bfaceac76e756b57fc to your computer and use it in GitHub Desktop.
Make timestamped directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pathlib | |
from datetime import datetime | |
ts = datetime.now().strftime('%Y%m%d_%H%M%S') | |
job_dir = f"models/mlp/{ts}" | |
pathlib.Path(job_dir).mkdir(parents=True, exist_ok=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment