-
Notifications
You must be signed in to change notification settings - Fork 221
MFCK and SMFK compatible with heteroscedastic noise #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…r MFK, adition of Prediction of heteroscedastic noise for SMFCK
|
Hi Mauricio. It seems like SMFCK tests ( Did you run your tests locally? pytest smt\applications\tests\tests\test_smfck.py |
relf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mcastanoUQ, smt does not have nlopt as a dependency, could you use cobyla from scipy.
|
@relf I changed it locally, but now I have found a problem in the class lhs.py line 367 File "D:\mcastano\Documents\Repositories\smt\smt\sampling_methods\lhs.py", line 367, in _ese |
|
If I change the line 367 from this:
to this:
I can run everything without any problem. But, I think the issue is related to the change of "seed" instead of "random_state" Should I change my code form "random_state" to "seed" everywhere, or does it work the same? |
|
Please update the PR without using Regarding the error related to LHS, you may need to update the |
|
Bonjour @relf, Une erreur ici: FAILED smt/tests/test_all.py::Test::test_exp_MGP - AssertionError: np.float64(1.781220778809592) not less than or equal to 0.06 Ce n’est pas parmi les classes que je suis en train de modifier ; je ne sais pas si c’est dû à un rebase manquant. |
|
|
||
|
|
||
| class SMFCK(KrgBased): | ||
| "This class will inherit the functions from the class MFCK" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure to understand this docstring. You intend to make SMFCK inherits from MFCK in a further PR? Change it TODO: This class should inherit from the class MFCK
| t_error = num / den | ||
|
|
||
| self.assert_error(t_error, 0.0, 2e-1, 2e-1) | ||
| self.assert_error(t_error, 0.0, 1.0, 1.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You relax the test tolerance to make it pass with scipy cobyla ? Add a comment here to explain that one has to install nlopt to use Cobyla-nlopt to get better performance. Maybe add keep the old line self.assert_error(t_error, 0.0, 2e-1, 2e-1) to tell it works with Cobyla from no=lopt.

Updates to the classes MFCK, SMFCK, SMFK
Small correction of a typo in MFK.
MFCK, SMFCK updates to handle het. noise.