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

Key error #9

Open
ManuelLevi opened this issue May 15, 2017 · 3 comments
Open

Key error #9

ManuelLevi opened this issue May 15, 2017 · 3 comments

Comments

@ManuelLevi
Copy link

Hey there

There seems to be a bug on example code mondrianforest_demo.py with PLOT=True :

Traceback (most recent call last):
  File "mondrianforest_demo.py", line 71, in <module>
    pred_mean = pred_forest_test['pred_mean']
KeyError: 'pred_mean'

pred_forest_test only has one key 'pred_prob'. The code tries to access both pred_mean and pred_var.

Manuel

@balajiln
Copy link
Owner

Hi Manuel,

It seems like an issue related to incorrect optype. pred_mean and pred_sd are outputted for regression, pred_prob is outputted for classification. Can you send me the command you tried?

Balaji

@balajiln
Copy link
Owner

Ah ok, thanks. I didn't test the code properly with plotting enabled, sorry about that. I'll fix it this weekend.

@ManuelLevi
Copy link
Author

That is great! Let me know if you need any help.

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