Skip to content

Commit e13f6bc

Browse files
committed
Complete RTD and uploaded to Pypi
1 parent c1fa33e commit e13f6bc

File tree

7 files changed

+112
-118
lines changed

7 files changed

+112
-118
lines changed

.readthedocs.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ build:
1313
apt_packages:
1414
- swig
1515

16-
python:
17-
install:
18-
- requirements: docutils==0.20.1
19-
2016
python:
2117
install:
2218
- requirements: rtd_requirements.txt

index.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,3 @@ For information about how to use it and what general functions there are look at
2323
:caption: API Reference
2424

2525
selector # module name
26-
27-
..Indices and tables
28-
..==================
29-
30-
..* :ref:`genindex`
31-
..* :ref:`modindex`
32-
..* :ref:`search`

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ numpy==1.21.5
3434
nvidia-ml-py3==7.352.0
3535
opencensus==0.8.0
3636
opencensus-context==0.1.2
37-
packaging==22.0
37+
packaging==24.2
3838
prometheus-client==0.12.0
3939
protobuf==3.19.3
4040
psutil==5.9.0

rtd_requirements.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
swig
1+
packaging==24.2
2+
setuptools==75.3.0
3+
docutils==0.20.1
4+
swig==4.1.1
25
-r requirements.txt
36
mock
4-
sphinx-rtd-theme==1.3.0
7+
sphinx-rtd-theme==3.0.2
58
sphinx==7.1.2
69
sphinxcontrib-applehelp==1.0.4
710
sphinxcontrib-bibtex==2.6.3

selector/test/selector/logs/bmc_cad_log/features_PCA.txt

Lines changed: 97 additions & 97 deletions
Large diffs are not rendered by default.

selector/test/test_pointselector.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ def test_hyperparameterized_pointselector(self):
268268

269269
for conf in selected_ids:
270270
if selected_ids[-1] == conf:
271-
self.results[conf.id] = {1: np.random.randint(2, 15),
272-
0: np.random.randint(2, 15)}
271+
self.results[conf.id] = {1: 2 + epoch,
272+
0: 3 + epoch}
273273
else:
274-
self.results[conf.id] = {1: np.random.randint(2, 15)}
274+
self.results[conf.id] = {1: 2 + epoch}
275275

276276
ran_conf = []
277277
for i in range(5):
@@ -303,10 +303,12 @@ def test_hyperparameterized_pointselector(self):
303303
confs = ran_conf + var_conf + lhc_conf + smac_conf + \
304304
ggapp_conf + cppl_conf
305305

306-
if selected_ids[0].generator == Generator.ggapp:
306+
print(selected_ids[0])
307+
308+
if selected_ids[0].generator in (Generator.ggapp, Generator.cppl):
307309
self.assertEqual(int(selected_ids[0].conf['arena']), 3)
308-
elif selected_ids[0].generator == Generator.cppl:
309-
self.assertEqual(int(selected_ids[0].conf['arena']), 2)
310+
elif selected_ids[0].generator == Generator.smac:
311+
self.assertEqual(int(selected_ids[0].conf['arena']), 1)
310312

311313

312314
if __name__ == '__main__':

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# This call to setup() does all the work
1616
setup(
1717
name="selector-ac",
18-
version="0.1.0.5",
18+
version="0.1.0.8",
1919
description="Selector: Ensemble-Based Automated Algorithm Configuration",
2020
long_description=README,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)