-
Notifications
You must be signed in to change notification settings - Fork 29
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
LunchSet failed (ArgumentError) #2
Comments
I'm seeing the same issue myself. Were you ever able to resolve this Jim? |
No, I do not yet have a resolution for this. |
I've tried a few different ruby versions, so I don't think that's it. |
testing with
inserted at line 83 of lunch_roulette.rb (with require 'ap' at the top) looks like some scores are NaN (not a number). |
Hey guys sorry about the bug, and thanks for digging in. Could definitely be a Ruby version issue. Will try to take a look soon. |
No worries; thanks for the ping. I tried on 1.9.3 and 2.1.5 to no avail. I'll try some more once I compile them through rvm. |
I'm seeing the following when I do a run with 1000 sets and print the scores of all candidates:
So the issue might be upstream in the score calculation. |
I think this is great! I got this result after downloading the repo and running it with the supplied csv:
Any ideas what i'm doing wrong? |
Hey @flex-tuan, glad you like it! Sometimes it's possible for the weights and thresholds in mappings_and_weights.yml to be too strict for your particular set of people to afford a valid lunch set. If you're just using the supplied csv, then it's quite possible that that file is out of date compared with other changes that we've made to the algo. I'll look into it! |
Great idea, thanks for releasing it out to the community! |
Hi Fred,
Will you help me understand why I am getting this error?
Here is my staff data, which is example.csv below:
https://docs.google.com/spreadsheet/ccc?key=0AkcfyAeGuuGVdGhUS0tvSmJQN2VxeW1lSG80STd0MFE&usp=sharing
Here is the output:
The text was updated successfully, but these errors were encountered: