Closed MooersLab closed 5 years ago
Can you post the full trace-back, specifically where in the bambi code this is triggered?
I have updated my post with the code up to the line that triggers the error. I have included the full trace-back. The code breaks at line
clinton_fitted = clinton_model.fit('vote[clinton] ~ party_id + party_id:age', family="bernoulli", samples=1000, chains=4, init=None)
I have included the code up where the error message is triggered. I have include the trackback. I updated my post. On Wed, Dec 5, 2018 at 6:51 AM Thomas Wiecki notifications@github.com wrote:
Can you post the full trace-back, specifically where in the bambi code this is triggered?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bambinos/bambi/issues/129#issuecomment-444474333, or mute the thread https://github.com/notifications/unsubscribe-auth/AOeSCyBAH_85snCEbvh81AkZt0zLGJbbks5u18FHgaJpZM4ZCCN0 .
-- Best regards,
Blaine
Blaine Mooers, Ph.D. Associate Professor Department of Biochemistry and Molecular Biology College of Medicine University of Oklahoma Health Sciences Center S.L. Young Biomedical Research Center Rm. 466 975 NE 10th Street https://maps.google.com/?q=975+NE+10th+Street&entry=gmail&source=g, BRC 466 Oklahoma City, OK 73104-5419
office: (405) 271-8300 lab: (405) 271-8313
Faculty webpage http://basicsciences.ouhsc.edu/biochemmolbiol/Faculty/bio_details/TabId/11753/ArtMID/30702/ArticleID/6430/Mooers-Blaine-HM-PhD.aspx X-ray lab (LBSF) http://research.ouhsc.edu/CoreFacilities/LaboratoryofBiomolecularStructureandFunction.aspx SSRL UEC https://www-ssrl.slac.stanford.edu/content/about-ssrl/advisory-panels/ssrl-users-organization/members/ssrluo-2016-executive-committee-members SSURF EasyPyMOL https://github.com/MooersLab/EasyPyMOL Molecular Graphics https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/moleculargraphicslinks.html
https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/MolecularGraphicsLinks.html Small Angle Scattering http://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/small-angle-scattering-links-27aug2014.html?sfvrsn=0 office: (405) 271-8300 lab: (405) 271-8313 e-mail: blaine-mooers@ouhsc.edu (or bmooers1@gmail.com)
Sure that you don't have nans or something in your data?
I am using the example data set from https://github.com/bambinos/bambi bambi https://github.com/bambinos/bambi/examples https://github.com/bambinos/bambi/tree/master/examples/data https://github.com/bambinos/bambi/tree/master/examples/data/ ANES_2016_pilot.csv
It has no NaNs.
I did not modify the file. It looks fine in several text editors.
When I rerun my script with python3.5 or 3.6, I get a malloc error but I get the following trackback with python3.7
Blaines-MacBook-Pro:~ blaine$ ./electionTest.py 2018-12-06 07:58:27.784 Python[1414:12488] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null) /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py:3140: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
self[k1] = value[k2]
Traceback (most recent call last):
File "./electionTest.py", line 35, in
On Thu, Dec 6, 2018 at 5:17 AM Thomas Wiecki notifications@github.com wrote:
Sure that you don't have nans or something in your data?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bambinos/bambi/issues/129#issuecomment-444837856, or mute the thread https://github.com/notifications/unsubscribe-auth/AOeSC2l-voTe-L9tGPjdNyvy-1i7xHzfks5u2PywgaJpZM4ZCCN0 .
-- Best regards,
Blaine
Blaine Mooers, Ph.D. Associate Professor Department of Biochemistry and Molecular Biology College of Medicine University of Oklahoma Health Sciences Center S.L. Young Biomedical Research Center Rm. 466 975 NE 10th Street https://maps.google.com/?q=975+NE+10th+Street&entry=gmail&source=g, BRC 466 Oklahoma City, OK 73104-5419
office: (405) 271-8300 lab: (405) 271-8313
Faculty webpage http://basicsciences.ouhsc.edu/biochemmolbiol/Faculty/bio_details/TabId/11753/ArtMID/30702/ArticleID/6430/Mooers-Blaine-HM-PhD.aspx X-ray lab (LBSF) http://research.ouhsc.edu/CoreFacilities/LaboratoryofBiomolecularStructureandFunction.aspx SSRL UEC https://www-ssrl.slac.stanford.edu/content/about-ssrl/advisory-panels/ssrl-users-organization/members/ssrluo-2016-executive-committee-members SSURF EasyPyMOL https://github.com/MooersLab/EasyPyMOL Molecular Graphics https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/moleculargraphicslinks.html
https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/MolecularGraphicsLinks.html Small Angle Scattering http://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/small-angle-scattering-links-27aug2014.html?sfvrsn=0 office: (405) 271-8300 lab: (405) 271-8313 e-mail: blaine-mooers@ouhsc.edu (or bmooers1@gmail.com)
The error is happening in statsmodels
which is curious, besides that not quite sure what to make of this. Maybe the maintainers have an idea? @tyarkoni @jake-westfall
bambi uses statsmodels to compute some information about the likelihood function and then uses that information to construct the default "weakly informative" priors. It looks like this is where the failure is happening. I guess this has to be somehow related to changes in more recent versions of statsmodels, although it's kinda hard to think of what exactly those changes could have been.
It's not a proper solution, but as a band-aid you could try rolling back your version of statsmodels by, I dunno, a few versions and seeing if that resolves it.
The 3.7 error is happening in patsy and I'm not really sure WTF is going on with that.
I am not able to reproduce this. Is this still a problem?
Hi Osvaldo,
Thank you very much your updating bambi and responding to this four month old open issue. I too found the notebook in question to be working today with Python 3.5 and Python 3.7 from macports.
I use anaconda (it is getting better all of the time), but I still prefer macports (faster installs, more packages, fewer dependency conflicts). The following may only interest other macports users. I had updated pymc3 through macports. This action updated the joblib module that pymc3 depends on to a version that is newer than what Bambi accepts. I had to uninstall joblib and pymc3 from my macports distribution. Then I installed Bambi with pip from the GitHub repository. Then I installed pymc3 with pip from the GitHub repository. I then found that the notebook worked with both python3.5 and python3.7.
On Sun, Mar 31, 2019 at 8:11 AM Osvaldo Martin notifications@github.com wrote:
I am not able to reproduce this. Is this still a problem?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bambinos/bambi/issues/129#issuecomment-478340588, or mute the thread https://github.com/notifications/unsubscribe-auth/AOeSC6Qkedguig5bFJ36xjCR4oN4zzLHks5vcLQQgaJpZM4ZCCN0 .
-- Best regards,
Blaine
Time to close this issue.
The example notebook with the election data is not working. The notebook in question is ANES_logistic_regression.ipynb.
The error occurs after the above line. The full trace back is shown below.