|
@ -29,15 +29,25 @@ def get_exps(pattern: str, splitter: str = "_"): |
|
|
# print(latest_checkpoint) |
|
|
# print(latest_checkpoint) |
|
|
logs = glob.glob(g[0] + "/events*")[-1] |
|
|
logs = glob.glob(g[0] + "/events*")[-1] |
|
|
print(logs) |
|
|
print(logs) |
|
|
# source_path = Path(logs) |
|
|
source_path = Path(logs) |
|
|
# print("Would copy", source_path, dir_path) |
|
|
print("Would copy", source_path, dir_path) |
|
|
# shutil.copy(source_path, dir_path) |
|
|
# shutil.copy(source_path, dir_path) |
|
|
make_image(latest_checkpoint, f"out/version_{i}") |
|
|
# make_image(latest_checkpoint, f"out/version_{i}") |
|
|
make_image(latest_checkpoint, f"out/version_{i}b", color=False) |
|
|
# make_image(latest_checkpoint, f"out/version_{i}b", color=False) |
|
|
|
|
|
|
|
|
return H |
|
|
return H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
if __name__ == "__main__": |
|
|
D = get_exps("color_*", "_") |
|
|
D = get_exps("color_*", "_") |
|
|
print(len(D), D) |
|
|
|
|
|
|
|
|
import numpy as np |
|
|
|
|
|
|
|
|
|
|
|
D = np.array(D) |
|
|
|
|
|
# print(len(D), "\n", D) |
|
|
|
|
|
import pandas as pd |
|
|
|
|
|
|
|
|
|
|
|
df = pd.DataFrame(D) |
|
|
|
|
|
df.columns = ["batch_size", "alpha", "learning_rate"] |
|
|
|
|
|
df.to_csv("experiments.csv") |
|
|
|
|
|
print(df) |
|
|