Skip to content

Commit

Permalink
refactor: Cleanup acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Jan 9, 2025
1 parent ae8c29f commit 8bfc88b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 225 deletions.
30 changes: 0 additions & 30 deletions neps/optimizers/acquisition/base_acquisition.py

This file was deleted.

4 changes: 1 addition & 3 deletions neps/optimizers/acquisition/cost_cooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import torch
from botorch.acquisition.logei import partial

from neps.optimizers.bayesian_optimization.acquisition_functions.weighted_acquisition import ( # noqa: E501
WeightedAcquisition,
)
from neps.optimizers.acquisition.weighted_acquisition import WeightedAcquisition

if TYPE_CHECKING:
from botorch.acquisition import AcquisitionFunction
Expand Down
128 changes: 0 additions & 128 deletions neps/optimizers/acquisition/ei.py

This file was deleted.

4 changes: 1 addition & 3 deletions neps/optimizers/acquisition/pibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

from botorch.acquisition.logei import partial

from neps.optimizers.bayesian_optimization.acquisition_functions.weighted_acquisition import ( # noqa: E501
WeightedAcquisition,
)
from neps.optimizers.acquisition.weighted_acquisition import WeightedAcquisition

if TYPE_CHECKING:
from botorch.acquisition.acquisition import AcquisitionFunction
Expand Down
57 changes: 0 additions & 57 deletions neps/optimizers/acquisition/ucb.py

This file was deleted.

4 changes: 2 additions & 2 deletions neps/optimizers/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from neps.optimizers.bayesian_optimization.models.ftpfn import FTPFNSurrogate
from neps.optimizers.bayesian_optimization.models.gp import make_default_single_obj_gp
from neps.optimizers.models.ftpfn import FTPFNSurrogate
from neps.optimizers.models.gp import make_default_single_obj_gp

__all__ = ["FTPFNSurrogate", "make_default_single_obj_gp"]
4 changes: 2 additions & 2 deletions neps/optimizers/models/gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
from gpytorch import ExactMarginalLogLikelihood
from gpytorch.kernels import ScaleKernel

from neps.optimizers.bayesian_optimization.acquisition_functions.cost_cooling import (
from neps.optimizers.acquisition.cost_cooling import (
cost_cooled_acq,
)
from neps.optimizers.bayesian_optimization.acquisition_functions.pibo import (
from neps.optimizers.acquisition.pibo import (
pibo_acquisition,
)
from neps.search_spaces.encoding import CategoricalToIntegerTransformer, ConfigEncoder
Expand Down

0 comments on commit 8bfc88b

Please sign in to comment.