Skip to content
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

KeyError: 'C' #599

Closed
ilaudo opened this issue Jun 24, 2024 · 2 comments
Closed

KeyError: 'C' #599

ilaudo opened this issue Jun 24, 2024 · 2 comments

Comments

@ilaudo
Copy link

ilaudo commented Jun 24, 2024

Hello, I just recently updated to the current version of SMT in my Spyder environment, and now each time I try to train my Kriging model using the following line of code:
test_kriging = KRG(theta0=[1e-6], print_global=False)
I recevie the following error:
KeyError: 'C'

I have never received this error before, and tried training my model on data I know has worked before; however, I continually receive this error. Am I missing something obvious here, or is this an issue of the code?
As well, I noticed that before updating, theta0 could be set to much smaller values than 1e-6--was this another new change within the update? Thanks!

@relf
Copy link
Member

relf commented Jun 25, 2024

Hi, could you provide the full error message (traceback showing where the error is raised)? You can also just copy this example in a test_krg.py file and run it to see if you get the same error.

For the second points, theta bounds are intended to be controlled by theta_bounds option (default is [1e-6, 20]). Sorry, you may be the collateral victim of a bug fix (maybe in #544). Just set theta_bounds option as desired.

@relf
Copy link
Member

relf commented Jun 26, 2024

superseded by #601

@relf relf closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants