Skip to content

Commit

Permalink
Rename example usage files
Browse files Browse the repository at this point in the history
  • Loading branch information
hsujeremy committed Oct 23, 2022
1 parent e5eb842 commit 6d87ca0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test_experiments.py → experiments_example.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import phoss
from phoss.experiment_analysis import ExperimentAnalysis
from phoss.experiment_group import ExperimentGroup

seeds = [61, 121, 124, 161, 165]
# methods = [ 'Random', 'ASHA', 'Hyperband', 'PTB']
methods = ['Random', 'ASHA', 'Hyperband']
seeds = [161, 165]
methods = ['Random', 'ASHA', 'Hyperband', 'PBT']
results = []
exp_groups = []
save_dir = 'checkpoints'
num_workers = 16
num_samples = 100
max_num_epochs = 100
max_num_epochs = 25

for method in methods:
egroup = ExperimentGroup(
Expand All @@ -21,7 +19,7 @@
num_actors=num_workers,
num_samples=num_samples,
save_dir='checkpoints',
verbose=1
verbose=0
)
result = egroup.run()
exp_groups.append(egroup)
Expand Down
2 changes: 2 additions & 0 deletions test_landscaper.py → landscaper_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
plt.plot(time_range, sim_loss, alpha=0.1, color='blue')
plt.plot(time_range, landscaper.true_loss, alpha=0.1, color='red')
plt.show()
plt.close()

sns.heatmap(sim_loss)
plt.show()
plt.close()

0 comments on commit 6d87ca0

Please sign in to comment.