-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates in experiments and documentation
- Loading branch information
Roman Joeres
authored and
Roman Joeres
committed
Nov 4, 2023
1 parent
3042a46
commit 811a0ac
Showing
16 changed files
with
20,134 additions
and
379 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,5 @@ dependencies: | |
- pytest-cov | ||
- pytest-cases | ||
- rdkit | ||
- mosek::mosek | ||
- pip: | ||
- grakel |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from pathlib import Path | ||
import os | ||
|
||
import pandas as pd | ||
from tensorboard.backend.event_processing.event_accumulator import EventAccumulator | ||
|
||
# extract the data and save them in a CSV file | ||
tb_path = Path("experiments") / "MPP" / "lohi" / "cdata" / "freesolv" / "lohi" / f"split_0" / "fold_0" / \ | ||
"model_0" | ||
tb_file = tb_path / list(sorted(filter( | ||
lambda x: str(x).startswith("events"), os.listdir(tb_path) | ||
)))[-1] | ||
print("File:", tb_file) | ||
ea = EventAccumulator(str(tb_file)) | ||
ea.Reload() | ||
for long, short in [("validation_", "val"), ("test_", "test")]: | ||
print([m for m in filter(lambda x: x.startswith(long), ea.Tags()["scalars"])]) | ||
for metric in filter(lambda x: x.startswith(long), ea.Tags()["scalars"]): | ||
print("metric", [e.value for e in ea.Scalars(metric)]) | ||
# dfs[short][f"{tech}_{metric}_split_{run}"] = [e.value for e in ea.Scalars(metric)] | ||
# print(df) |
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
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
Oops, something went wrong.