Skip to content

Commit

Permalink
Patch update to documentation for release and testing
Browse files Browse the repository at this point in the history
Patch update to documentation for release and testing
  • Loading branch information
kstone40 authored Aug 7, 2024
2 parents 6a3c80d + 6488efc commit 2365e10
Show file tree
Hide file tree
Showing 14 changed files with 2,821 additions and 2,333 deletions.
3,848 changes: 2,509 additions & 1,339 deletions demo/Simple single objective.ipynb

Large diffs are not rendered by default.

1,155 changes: 243 additions & 912 deletions docs/_static/tutorials/Simple single objective.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_templates/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
:template: module.rst
:recursive:
{% for item in modules %}
{% if not item in ("obsidian.acquisition.aq_config", "obsidian.surrogates.surrogate_config", "obsidian.analysis") %}
{% if not item in ("aq_config", "surrogate_config", "obj_config") %}
{{ item }}
{%- endif %}
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/module_shallow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
:template: module_shallow.rst
:recursive:
{% for item in modules %}
{% if not item in ("obsidian.acquisition.aq_config", "obsidian.surrogates.surrogate_config", "obsidian.analysis") %}
{% if not item in ("aq_config", "surrogate_config", "obj_config") %}
{{ item }}
{%- endif %}
{%- endfor %}
Expand Down
6 changes: 1 addition & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
'sphinx.ext.autosummary',
'sphinx.ext.autosectionlabel',
'myst_parser',
]

Expand Down Expand Up @@ -59,14 +58,11 @@
"member-order": "groupwise",
}

toc_object_entries_show_parents = 'hide'
add_module_names = False

autodoc_default_options = {'members': None, # shows all members
'show-inheritance': True}

autodoc_typehints = "signature"
autoclass_content = "class"
autoclass_content = "class" # Use class docstring instead of __init__

# Autosummary Options
autosummary_imported_members = False
Expand Down
30 changes: 13 additions & 17 deletions docs/stubs/api_docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,37 @@
.. automodule:: obsidian





.. rubric:: Modules

.. autosummary::
:toctree: ../build/apidocs
:recursive:
:template: module_shallow.rst

obsidian.acquisition
:template: module.rst

obsidian.constraints
obsidian.parameters

obsidian.campaign

obsidian.exceptions
obsidian.optimizer

obsidian.objectives
obsidian.surrogates

obsidian.plotting
obsidian.experiment

.. autosummary::
:toctree: ../build/apidocs
:recursive:
:template: module.rst

obsidian.campaign
:template: module_shallow.rst

obsidian.experiment
obsidian.acquisition

obsidian.optimizer
obsidian.objectives

obsidian.parameters
obsidian.plotting

obsidian.surrogates
obsidian.constraints

obsidian.exceptions

Indices
~~~~~~~~~~~~~~~~~~
Expand Down
71 changes: 35 additions & 36 deletions docs/wiki/1_APO_Workflow_and_CodeStructure.md

Large diffs are not rendered by default.

15 changes: 2 additions & 13 deletions obsidian/acquisition/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
"""Acquisition: Functions to determine the value of sequential experiments"""

from .acquisition_botorch import (
qMean,
qSpaceFill,
qExpectedImprovement,
qProbabilityOfImprovement,
qUpperConfidenceBound,
qNoisyExpectedImprovement,
qSimpleRegret,
qNoisyExpectedHypervolumeImprovement,
qLogNParEGO,
)

from .aq_config import aq_functions, valid_aqs, aq_hp_defaults
from .acquisition_botorch import *
from .aq_config import *
19 changes: 11 additions & 8 deletions obsidian/acquisition/acquisition_botorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,25 @@
from botorch.acquisition.objective import MCAcquisitionObjective, PosteriorTransform

# Botorch acquisition functions supported in obsidian
from botorch.acquisition import qExpectedImprovement, qProbabilityOfImprovement, \
qUpperConfidenceBound, qNoisyExpectedImprovement, qSimpleRegret
from botorch.acquisition.multi_objective.monte_carlo import qNoisyExpectedHypervolumeImprovement
from botorch.acquisition import qProbabilityOfImprovement, qUpperConfidenceBound, qSimpleRegret
from botorch.acquisition.logei import qLogExpectedImprovement, qLogNoisyExpectedImprovement
from botorch.acquisition.multi_objective.logei import qLogExpectedHypervolumeImprovement, qLogNoisyExpectedHypervolumeImprovement
from botorch.acquisition.multi_objective.parego import qLogNParEGO
from botorch.acquisition.active_learning import qNegIntegratedPosteriorVariance


__all__ = [
"qExpectedImprovement",
"qMean",
"qSpaceFill",
"qProbabilityOfImprovement",
"qUpperConfidenceBound",
"qNoisyExpectedImprovement",
"qSimpleRegret",
"qNoisyExpectedHypervolumeImprovement",
"qLogExpectedImprovement",
"qLogNoisyExpectedImprovement",
"qLogExpectedHypervolumeImprovement",
"qLogNoisyExpectedHypervolumeImprovement",
"qLogNParEGO",
"qMean",
"qSpaceFill",
"qNegIntegratedPosteriorVariance",
]


Expand Down
2 changes: 2 additions & 0 deletions obsidian/dash/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Dash: Build components for dash web app"""

from .inputs_data import *
from .inputs_config import *
from .optimize import *
Expand Down
1 change: 1 addition & 0 deletions obsidian/objectives/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
from .utils import *
from .sequence import *
from .base import *
from .obj_config import *
1 change: 1 addition & 0 deletions obsidian/parameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
from .param_space import *
from .targets import *
from .transforms import *
from .utils import *
1 change: 1 addition & 0 deletions obsidian/surrogates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
from .GP_custom import *
from .torch_custom import *
from .surrogate_config import *
from .utils import *
1 change: 0 additions & 1 deletion obsidian/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

0 comments on commit 2365e10

Please sign in to comment.