Skip to content

Commit

Permalink
docs models and algos done
Browse files Browse the repository at this point in the history
  • Loading branch information
cahity committed Nov 4, 2024
1 parent 9c22b47 commit 5bff7d2
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 16 deletions.
58 changes: 56 additions & 2 deletions docs/source/algorithms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,64 @@ Algorithms for Vector Optimization
~~~~~~~~~~~~~~~~~

.. autoclass:: NaiveElimination
:members:
:members:

:hidden:`PaVeBa`
~~~~~~~~~~~~~~~~~

.. autoclass:: PaVeBa
:members:
:members:

:hidden:`PaVeBaGP`
~~~~~~~~~~~~~~~~~

.. autoclass:: PaVeBaGP
:members:

:hidden:`VOGP`
~~~~~~~~~~~~~~~~~

.. autoclass:: VOGP
:members:


Algorithms for Vector Optimization in Continuous Domains
-----------------------------

:hidden:`VOGP_AD`
~~~~~~~~~~~~~~~~~

.. autoclass:: VOGP_AD
:members:


Algorithms for Vector Optimization with Decoupled Objectives
-----------------------------

:hidden:`PaVeBaPartialGP`
~~~~~~~~~~~~~~~~~

.. autoclass:: PaVeBaPartialGP
:members:

:hidden:`DecoupledGP`
~~~~~~~~~~~~~~~~~

.. autoclass:: DecoupledGP
:members:


Algorithms for Multi-Objective Optimization
-----------------------------

:hidden:`Auer`
~~~~~~~~~~~~~~~~~

.. autoclass:: Auer
:members:

:hidden:`EpsilonPAL`
~~~~~~~~~~~~~~~~~

.. autoclass:: EpsilonPAL
:members:
5 changes: 0 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@

import os
import sys
import ast
import pkgutil
import importlib
from pathlib import Path
from types import ModuleType

sys.path.append(os.path.abspath(os.path.join(__file__, "..", "..", "..")))
autodoc_mock_imports = [
Expand Down
49 changes: 48 additions & 1 deletion docs/source/models.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
.. role:: hidden
:class: hidden-section


vectoptal.models
===================================

.. automodule:: vectoptal.models
.. currentmodule:: vectoptal.models

.. autoclass:: Model
:members:

.. autoclass:: ModelList


.. autoclass:: GPModel
:members:


Empirical Models
-----------------------------
Expand All @@ -15,4 +25,41 @@ Empirical Models
~~~~~~~~~~~~~~~~~

.. autoclass:: EmpiricalMeanVarModel
:members:
:members:


Gaussian Process Based Models
-----------------------------

.. autoclass:: GPyTorchModel
:members:

.. autoclass:: SingleTaskGP
:members:

.. autoclass:: MultitaskExactGPModel
:members:

.. autoclass:: BatchIndependentExactGPModel
:members:

.. autoclass:: GPyTorchMultioutputExactModel
:members:

:hidden:`CorrelatedExactGPyTorchModel`
~~~~~~~~~~~~~~~~~

.. autoclass:: CorrelatedExactGPyTorchModel
:members:

:hidden:`IndependentExactGPyTorchModel`
~~~~~~~~~~~~~~~~~

.. autoclass:: IndependentExactGPyTorchModel
:members:

:hidden:`GPyTorchModelListExactModel`
~~~~~~~~~~~~~~~~~

.. autoclass:: GPyTorchModelListExactModel
:members:
3 changes: 1 addition & 2 deletions vectoptal/algorithms/paveba.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ class PaVeBa(PALAlgorithm):
>>> pareto_indices = algorithm.P
Reference:
"Learning the Pareto Set Under Incomplete Preferences:
Pure Exploration in Vector Bandits",
"Learning the Pareto Set Under Incomplete Preferences: Pure Exploration in Vector Bandits",
Karagözlü, Yıldırım, Ararat, Tekin, AISTATS, '24
https://proceedings.mlr.press/v238/karagozlu24a.html
"""
Expand Down
3 changes: 1 addition & 2 deletions vectoptal/algorithms/paveba_gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class PaVeBaGP(PALAlgorithm):
>>> pareto_indices = algorithm.P
Reference:
"Learning the Pareto Set Under Incomplete Preferences:
Pure Exploration in Vector Bandits",
"Learning the Pareto Set Under Incomplete Preferences: Pure Exploration in Vector Bandits",
Karagözlü, Yıldırım, Ararat, Tekin, AISTATS, '24
https://proceedings.mlr.press/v238/karagozlu24a.html
"""
Expand Down
28 changes: 24 additions & 4 deletions vectoptal/models/empirical_mean_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,32 @@


class EmpiricalMeanVarModel(Model):
"""
Implements a model that tracks empirical means and variances for each design.
This class tracks the empirical means and variances for each design in the input space,
controlled by flags `track_means` and `track_variances`.
:param input_dim: The dimension of the input space.
:type input_dim: int
:param output_dim: The dimension of the output space.
:type output_dim: int
:param noise_var: The variance of the noise in the output space.
:type noise_var: float
:param design_count: The number of designs to track.
:type design_count: int
:param track_means: A flag to enable/disable tracking of means, defaults to True.
:type track_means: bool
:param track_variances: A flag to enable/disable tracking of variances, defaults to True.
:type track_variances: bool
"""

def __init__(
self,
input_dim,
output_dim,
noise_var,
design_count,
input_dim: int,
output_dim: int,
noise_var: float,
design_count: int,
track_means: bool = True,
track_variances: bool = True,
):
Expand Down

0 comments on commit 5bff7d2

Please sign in to comment.