-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add option to run KNearNeigh with just colors rather than 1 mag + colors #20
Comments
add 'only_colors' option to KNearNeigh #20
Hi, I am trying to run with this option set. I am getting a dimension error:
Do I need to change the input data handle after setting |
I think I set things up so that you had to set the config parameter If it's not that, then this error could also maybe be caused if you are using a non-default set of names for the magnitudes via |
Ah yes thanks, that fixed it setting it True in the estimate stage too. |
It probably makes more sense to store the only_colors value in the model, since a user shouldn't really be able to set it in the estimate stage if the model was trained for a specific case. I'll make a PR to do just that and merge in so that you only specify in the inform. |
move only_colors to model and remove from estimate #20
During Raphael Shirley's presentation on rail_lephare, Jeff mentioned that with very disparate mag distributions for training and test, the inclusion of a magnitude in the K nearest neighbor distance calculation could actually make things worse than just using colors without the magnitude. Adding an option to allow running with just colors would let people test this, should be very easy to implement.
Before submitting
Please check the following:
The text was updated successfully, but these errors were encountered: