Skip to content

Commit

Permalink
Rework workon (Epistimio#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
Delaunay authored and lebrice committed Jun 27, 2022
1 parent 13fffc6 commit fdc5011
Show file tree
Hide file tree
Showing 32 changed files with 2,474 additions and 619 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@ target/

# Notebooks
tests/**.ipynb

# Generated doc
docs/src/auto_examples
docs/src/auto_tutorials
docs/src/gen_modules
1 change: 1 addition & 0 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
"orion.plotting.base.PlotAccessor.__call__",
"orion.benchmark.task.BaseTask.__call__",
"orion.benchmark.task.base.BaseTask.__call__",
"AlreadyReleased",
]

nitpicky = True
Expand Down
16 changes: 8 additions & 8 deletions examples/plotting/plot_4_partial_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@
import time

experiment = get_experiment("2-dim-exp", storage=storage)
start = time.clock()
start = time.perf_counter()
fig = experiment.plot.partial_dependencies(n_grid_points=5)
print(time.clock() - start, "seconds to compute")
print(time.perf_counter() - start, "seconds to compute")
fig

#%%
# With more points the grid is finer.
start = time.clock()
start = time.perf_counter()
fig = experiment.plot.partial_dependencies(n_grid_points=50)
print(time.clock() - start, "seconds to compute")
print(time.perf_counter() - start, "seconds to compute")
fig

#%%
Expand All @@ -118,17 +118,17 @@
# for a small 2-D search space but likely unsufficient for 5 dimensions or more.
# Here is an example with only 5 samples.

start = time.clock()
start = time.perf_counter()
fig = experiment.plot.partial_dependencies(n_samples=5)
print(time.clock() - start, "seconds to compute")
print(time.perf_counter() - start, "seconds to compute")
fig

#%%
# And now with 200 samples.

start = time.clock()
start = time.perf_counter()
fig = experiment.plot.partial_dependencies(n_samples=200)
print(time.clock() - start, "seconds to compute")
print(time.perf_counter() - start, "seconds to compute")
fig

#%%
Expand Down
2 changes: 1 addition & 1 deletion src/orion/algo/hyperband.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def suggest(self, num):
self.space.cardinality,
)
else:
logger.warning(
logger.debug(
f"{self.__class__.__name__} cannot suggest new samples and must wait "
"for trials to complete."
)
Expand Down
Loading

0 comments on commit fdc5011

Please sign in to comment.