-
Notifications
You must be signed in to change notification settings - Fork 20
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
AttributeError: 'float' object has no attribute 'exp' #7
Comments
I have the fix for the issue, so will open a PR for it. |
The error here is occurring because the |
Yes, that seems to fix the Exception. However without the change in PR #8 , the prediction accuracy of the model seems to change for every run (for the parkinson's notebook), which is weird and I don't understand yet. |
Also I have update PR #6 with the suggested change |
I have updated PR #8 to check for the data type of y. |
Hit the following exception
/usr/local/lib/python2.7/dist-packages/bayes_logistic/bayes_logistic.py in logistic_prob(X, w)
62
63 # calculate logitstic probability
---> 64 pr = np.exp(z)
65
66 pr = pr / (1. + pr)
AttributeError: 'float' object has no attribute 'exp'
Following is the URL of the notebook that reproduces the error
http://pastebin.com/EMWLqjF1
The text was updated successfully, but these errors were encountered: