EmuKit / emukit

A Python-based toolbox of various methods in decision making, uncertainty quantification and statistical emulation: multi-fidelity, experimental design, Bayesian optimisation, Bayesian quadrature, etc.
https://emukit.github.io/emukit/
Apache License 2.0
605 stars 128 forks source link

Typo in emukit\test_functions\multi_fidelity\currin.py #450

Closed jeannotalpin closed 1 year ago

jeannotalpin commented 1 year ago

Hello, On emukit version 0.4.10, there is a typo in Currin test function located here: emukit\test_functions\multi_fidelity\currin.py

Lines 35 to 39 read:

return (
            1
            - np.exp(-0.5 / x2)
            * ((2300 * x1**3 + 1900 * x1**2 + 2092 * x1 + 60) / (100 * x1**3 + 500 * x1**2 + 4 * x1 + 20))
        )[:, None]

But should be:

return (
            (1
            - np.exp(-0.5 / x2))
            * ((2300 * x1**3 + 1900 * x1**2 + 2092 * x1 + 60) / (100 * x1**3 + 500 * x1**2 + 4 * x1 + 20))
        )[:, None]

According to https://www.sfu.ca/~ssurjano/curretal88exp.html: missing parenthesis around the first factor.

Thanks.

apaleyes commented 1 year ago

Hi @jeannotalpin . Thank you for the report, checking the page it appears that the typo is indeed there, great catch!

Would you like to contribute a small PR for this, or prefer us to just fix it?

apaleyes commented 1 year ago

Thanks for taking care of this!