Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyLiao committed Sep 23, 2024
1 parent c308468 commit 813b00c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion benchmark/dataset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import importlib
class_list, func_list = {}, {}
for classi in ['yandex', 'linkx', 'ogbn', 'pyg']:
for classi in ['yandex', 'linkx', 'ogbn', 'pygn']:
module = importlib.import_module(f".{classi}", __name__)
func_list[classi] = module.get_data
for datai in module.DATA_LIST:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions benchmark/run_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def main(args):
direction='maximize',
sampler=optuna.samplers.TPESampler(
n_startup_trials=8,
n_ei_candidates=36,
multivariate=True,
group=True,
warn_independent_sampling=False),
Expand Down
5 changes: 3 additions & 2 deletions benchmark/trainer/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

from .fullbatch import TrnFullbatch
from .load_metric import ResCollection
from .load_data import DATAPATH, split_random
from .load_data import DATAPATH
from dataset import split_random
from utils import ResLogger


Expand Down Expand Up @@ -64,7 +65,7 @@ def __init__(self, args: Namespace, res_logger: ResLogger = None) -> None:
# ===== Data acquisition
def _resolve_import(self, args: Namespace) -> Tuple[str, str, dict]:
assert self.data in ['2dgrid']
module_name = 'dataset_process'
module_name = 'dataset'
class_name = 'Grid2D'
kwargs = dict(
root=DATAPATH.joinpath('Grid2D'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
benchmark.dataset\_process
benchmark.dataset
==================================

.. automodule:: benchmark.dataset_process
.. automodule:: benchmark.dataset
:members:
:undoc-members:
:show-inheritance:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/_include/benchmark.trainer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ benchmark.trainer.base
:private-members:
:no-index:

benchmark.trainer.filter
benchmark.trainer.regression
--------------------------------

.. automodule:: benchmark.trainer.filter
.. automodule:: benchmark.trainer.regression
:members:
:undoc-members:
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ For advanced options, please refer to `Installation Options <_tutorial/installat

_include/benchmark.trainer
_include/benchmark.utils
_include/benchmark.dataset_process
_include/benchmark.dataset

.. [1] Please refer to the `official guide <https://pytorch.org/get-started/locally/>`__ if a specific CUDA version is required for PyTorch.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cpp=[
"eigency>=1.77",
]
docs=[
"sphinx>=5.1",
"sphinx>=7,<7.4",
"sphinx_rtd_theme",
"nbsphinx",
"myst_parser",
Expand Down

0 comments on commit 813b00c

Please sign in to comment.