Skip to content

Commit

Permalink
remove skrf
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0411jhj committed Feb 29, 2024
1 parent 47ccb37 commit 6cbb319
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 217 deletions.
4 changes: 0 additions & 4 deletions openbox/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def build_surrogate(func_str='gp', config_space=None, rng=None, transfer_learnin
from openbox.surrogate.lightgbm import LightGBM
return LightGBM(config_space, types=types, bounds=bounds, seed=seed)

if func_str == 'random_forest':
from openbox.surrogate.skrf import RandomForestSurrogate
return RandomForestSurrogate(config_space, types=types, bounds=bounds, seed=seed)

elif func_str.startswith('gp'):
from openbox.surrogate.base.build_gp import create_gp_model
return create_gp_model(model_type=func_str,
Expand Down
154 changes: 0 additions & 154 deletions openbox/surrogate/skrf.py

This file was deleted.

4 changes: 0 additions & 4 deletions test/core/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from openbox.surrogate.base.rf_with_instances import RandomForestWithInstances
from openbox.surrogate.base.rf_with_instances_sklearn import skRandomForestWithInstances
from openbox.surrogate.lightgbm import LightGBM
from openbox.surrogate.skrf import RandomForestSurrogate
from openbox.surrogate.base.base_gp import BaseGP
from openbox.surrogate.tlbo.mfgpe import MFGPE
from openbox.surrogate.tlbo.rgpe import RGPE
Expand Down Expand Up @@ -65,9 +64,6 @@ def test_build_surrogate(configspace_tiny, transfer_learning_history_single):
surrogate = build_surrogate('lightgbm', config_space, rng)
assert isinstance(surrogate, LightGBM)

surrogate = build_surrogate('random_forest', config_space, rng)
assert isinstance(surrogate, RandomForestSurrogate)

surrogate = build_surrogate('gp', config_space, rng)
assert isinstance(surrogate, BaseGP)

Expand Down
55 changes: 0 additions & 55 deletions test/surrogate/test_skrf.py

This file was deleted.

0 comments on commit 6cbb319

Please sign in to comment.