Skip to content

Commit 82449ec

Browse files
committed
Improve Hartmann benchmark
1 parent 6b0c0ef commit 82449ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

benchmarks/domains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from benchmarks.domains.transfer_learning.easom.easom_tl_47_negate_noise5 import (
2929
easom_tl_47_negate_noise5_benchmark,
3030
)
31-
from benchmarks.domains.transfer_learning.hartmann.hartmann_tl_3_15_15 import (
31+
from benchmarks.domains.transfer_learning.hartmann.hartmann_tl_3_20_15 import (
3232
hartmann_tl_3_15_15_benchmark,
3333
)
3434
from benchmarks.domains.transfer_learning.michalewicz.michalewicz_tl_continuous import (

benchmarks/domains/transfer_learning/hartmann/hartmann_tl_3_15_15.py renamed to benchmarks/domains/transfer_learning/hartmann/hartmann_tl_3_20_15.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def hartmann_tl_3_15_15(settings: ConvergenceBenchmarkSettings) -> pd.DataFrame:
2828
• Compares two versions of Hartmann function:
2929
- Target: standard Hartmann
3030
- Source: Hartmann with added noise (noise_std=0.15)
31-
• Uses 15 points per dimension
31+
• Uses 20 points per dimension
3232
• Tests transfer learning with different source data percentages:
3333
- 1% of source data
3434
- 10% of source data
@@ -43,8 +43,8 @@ def hartmann_tl_3_15_15(settings: ConvergenceBenchmarkSettings) -> pd.DataFrame:
4343
target_function = Hartmann(dim=3)
4444
source_function = Hartmann(dim=3, noise_std=0.15)
4545

46-
points_per_dim = 15
47-
percentages = [0.01, 0.1, 0.2]
46+
points_per_dim = 20
47+
percentages = [0.01, 0.05, 0.1]
4848

4949
# Create grid locations for the parameters
5050
bounds = np.array([[0.0, 0.0, 0.0], [1.0, 1.0, 1.0]])

0 commit comments

Comments
 (0)