-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Small PR] Logging dir and buffer outputs: fix issue and improvements #322
Changes from 4 commits
67e7bdc
50f6809
0e1bdef
7b11c38
f8c235c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,3 @@ buffer: | |
test: | ||
type: grid | ||
n: 1000 | ||
output_csv: alaninedipeptide_test.csv | ||
output_pkl: alaninedipeptide_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,3 @@ buffer: | |
test: | ||
type: grid | ||
n: 900 | ||
output_csv: ccube_test.csv | ||
output_pkl: ccube_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,5 +39,3 @@ buffer: | |
test: | ||
type: grid | ||
n: 900 | ||
output_csv: clp_test.csv | ||
output_pkl: clp_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,3 @@ buffer: | |
test: | ||
type: grid | ||
n: 1000 | ||
output_csv: ctorus_test.csv | ||
output_pkl: ctorus_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,3 @@ buffer: | |
train: null | ||
test: | ||
type: all | ||
output_csv: grid_test.csv | ||
output_pkl: grid_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,3 @@ buffer: | |
test: | ||
type: grid | ||
n: 1000 | ||
output_csv: htorus_test.csv | ||
output_pkl: htorus_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,3 @@ buffer: | |
test: | ||
type: uniform | ||
n: 10 | ||
output_csv: scrabble_test.csv | ||
output_pkl: scrabble_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,3 @@ buffer: | |
test: | ||
type: random | ||
n: 10 | ||
output_csv: tetris_test.csv | ||
output_pkl: tetris_test.pkl | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,3 @@ buffer: | |
test: | ||
type: random | ||
n: 1000 | ||
output_csv: tree_test.csv | ||
output_pkl: tree_test.pkl |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,14 +71,21 @@ def __init__( | |
self.lightweight = lightweight | ||
self.debug = debug | ||
# Log directory | ||
self.logdir = Path(logdir.root) | ||
if "path" in logdir: | ||
self.logdir = Path(logdir.path) | ||
else: | ||
self.logdir = Path(logdir.root) | ||
Comment on lines
+74
to
+77
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this needed? It seems very arbitrary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if it's strictly needed but it's additional flexibility. Currently, |
||
if not self.logdir.exists() or logdir.overwrite: | ||
self.logdir.mkdir(parents=True, exist_ok=True) | ||
else: | ||
print(f"logdir {logdir} already exists! - Ending run...") | ||
sys.exit(1) | ||
# Checkpoints directory | ||
self.ckpts_dir = self.logdir / logdir.ckpts | ||
self.ckpts_dir.mkdir(parents=True, exist_ok=True) | ||
# Data directory | ||
self.datadir = self.logdir / "data" | ||
self.datadir.mkdir(parents=True, exist_ok=True) | ||
# Write wandb URL | ||
self.write_url_file() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger
defaults toNone
, if this is allowed it should be handled here; otherwise make it required?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, done here: f8c235c