Skip to content

Commit

Permalink
Making PFN conditioned on local availability
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeratyoy committed Nov 3, 2023
1 parent 17ef717 commit 7eebf09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class FreezeThawSampler(AcquisitionSampler):
SAMPLES_TO_DRAW = 10 # number of random samples to draw at lowest fidelity
SAMPLES_TO_DRAW = 3 # number of random samples to draw at lowest fidelity

def __init__(self, **kwargs):
super().__init__(**kwargs)
Expand Down
9 changes: 7 additions & 2 deletions src/neps/optimizers/bayesian_optimization/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
from .deepGP import DeepGP
from .gp import ComprehensiveGP
from .gp_hierarchy import ComprehensiveGPHierarchy
from .pfn import PFN_SURROGATE


SurrogateModelMapping = {
"deep_gp": DeepGP,
"gp": ComprehensiveGP,
"gp_hierarchy": ComprehensiveGPHierarchy,
"pfn": PFN_SURROGATE
}

try:
from .pfn import PFN_SURROGATE # only if available locally
SurrogateModelMapping.update({"pfn": PFN_SURROGATE})
except:
pass

0 comments on commit 7eebf09

Please sign in to comment.