Skip to content

Commit 30a866f

Browse files
saitcakmakfacebook-github-bot
authored andcommitted
Bring back ax/benchmark/__init__.py (#2719)
Summary: Removing `__init__.py` makes the module not discoverable when installed with `pip`, leading to `ModuleNotFoundError: No module named 'ax.benchmark'`. See https://github.com/pytorch/botorch/actions/runs/10581831529/job/29320089546 Pull Request resolved: #2719 Reviewed By: mpolson64 Differential Revision: D61861709 Pulled By: saitcakmak fbshipit-source-id: 612cf84dc3e0a13293bf61f0b3151369919c838c
1 parent c51dd58 commit 30a866f

File tree

2 files changed

+13
-33
lines changed

2 files changed

+13
-33
lines changed

ax/benchmark/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env python3
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
#
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.

sphinx/source/benchmark.rst

+8-33
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ax.benchmark
1010
Benchmark
1111
---------
1212

13-
1413
Benchmark Method
1514
~~~~~~~~~~~~~~~~
1615

@@ -19,6 +18,14 @@ Benchmark Method
1918
:undoc-members:
2019
:show-inheritance:
2120

21+
Benchmark Metric
22+
~~~~~~~~~~~~~~~~
23+
24+
.. automodule:: ax.benchmark.benchmark_metric
25+
:members:
26+
:undoc-members:
27+
:show-inheritance:
28+
2229
Benchmark Problem
2330
~~~~~~~~~~~~~~~~~~
2431

@@ -60,38 +67,6 @@ Benchmark Methods Sobol
6067
:undoc-members:
6168
:show-inheritance:
6269

63-
Benchmark Metrics Base
64-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65-
66-
.. automodule:: ax.benchmark.metrics.base
67-
:members:
68-
:undoc-members:
69-
:show-inheritance:
70-
71-
Benchmark Metrics Benchmark
72-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73-
74-
.. automodule:: ax.benchmark.metrics.benchmark
75-
:members:
76-
:undoc-members:
77-
:show-inheritance:
78-
79-
Benchmark Metrics Jenatton
80-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81-
82-
.. automodule:: ax.benchmark.metrics.jenatton
83-
:members:
84-
:undoc-members:
85-
:show-inheritance:
86-
87-
Benchmark Metrics Utils
88-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89-
90-
.. automodule:: ax.benchmark.metrics.utils
91-
:members:
92-
:undoc-members:
93-
:show-inheritance:
94-
9570
Benchmark Problems Registry
9671
~~~~~~~~~~~~~~~~~~~~~~~~~~~
9772

0 commit comments

Comments
 (0)