-
Notifications
You must be signed in to change notification settings - Fork 37
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
ValueError: math domain error #2
Comments
It seems that |
Here you go. Let me know if you need more details. >>> cr = 0.0 >>> crc = 10.3333333333 >>> n = 3 >>> nc = 3 >>> >>> mean = cr-crc >>> var_cr = cr * (1 - cr) / float(n) >>> var_crc = crc * (1 - crc) / float(nc) >>> var_cr 0.0 >>> var_crc -32.14814814792963 >>> |
The problem seems to be that your control alternative has more completions (31) than participations (3), which leads to I would appreciate if you could either debug |
Hmm OK. Does the module take care of ensuring repeat calls to finish don't
|
Yes, the module does take care that repeating calls to finish don't inflate the counts. |
Got it. If its fine can I have your IRC handle? I'll ping you when I'm home Arvi
|
Still have this error in some circumstances. Appears the user conversion tracking may be screwing up the math. Did you solve previously? |
Thanks for the excellent work on flask-split. At this point, the /split route is bailing out with this error. Let me know if you have any insights. I've got the latest version from pip.
2013-05-17T12:10:04.083015+00:00 app[web.1]:
2013-05-17T12:10:04.083146+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/jinja2/environment.py", line 372, in getattr
2013-05-17T12:10:04.083290+00:00 app[web.1]: return getattr(obj, attribute)
2013-05-17T12:10:04.083378+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/flask_split/models.py", line 110, in z_score
2013-05-17T12:10:04.083477+00:00 app[web.1]: return mean / sqrt(var_cr + var_crc)
2013-05-17T12:10:04.083572+00:00 app[web.1]: ValueError: math domain error
The text was updated successfully, but these errors were encountered: