sciruby-notebooks
sciruby-notebooks copied to clipboard
Formula language notebook requires updation
"AgeuponOutcome(Weeks)" causes an error because with brackets the column name become invalid. Need to update dataframe column name. Its easy to fix. Just noting this issue down so I don't forget it.
Hi @lokeshh, I would like to fix this but would need some guidance, if you can help. Thanks.
Good. You can get started by setting up iRuby notebook. If you face any problem let me know.
I have done the setup of Ruby kernel in Jupyter Notebook. What's next to be done?
Could you verify if notebooks in sciruby-notebooks/Data Analysis/Categorical Data/examples are working as expected?
Yup, they are working fine.
Now rename the column AgeuponOutcome(Weeks) to AgeuponOutcome or something else which does use parenthesis.
I once changed AgeuponOutcome(Weeks) to AgeuponOutcome and then to Ageupon(Outcome) . In both the cases it worked the same as it was working before.
@snpd25 Could you try with latest code from statsample-glm master branch and see if it still works? To install a gem from git repository you can use this https://github.com/rdp/specific_install
I feel that I am not doing exactly what is required, I installed the statsample-glm gem and then checked the example [Example] Formula language in Statsample-GLM.ipynb with the same changes, and it was working the same as before. Am I missing something?
Ok let me take a look and get back to you
On Tue 22 Jan, 2019, 10:23 PM snpd25 <[email protected] wrote:
I feel that I am not doing exactly what is required, I installed the statsample-glm gem and then checked the example [Example] Formula language in Statsample-GLM.ipynb with the same changes, and it was working the same as before. Am I missing something?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SciRuby/sciruby-notebooks/issues/28#issuecomment-456474681, or mute the thread https://github.com/notifications/unsubscribe-auth/AHUmVI28JKvHxU-iT55yYgB0H391PEOMks5vF0ISgaJpZM4J3TEJ .
@snp25 I ran the latest code of statsample-glm against latest code of daru and getting the error as expected. Maybe you should remove all versions of daru and statsample-glm and then install their latest versions from git.
See if I am doing as required.
Firstly you should get an error in cell 17 (without making any changes in notebook) to verify that you are using the latest daru and statsample. By latest I don't mean latest release but the latest gem from repository master branch.
Once you have done that, then you should try to fix that error. The error can be fixed by simply renaming the column name and reflecting that name in cell 17.
I tried modifying the file example [Example] Formula language in Statsample-GLM.ipynb. It's showing the same result.
@lokeshh I have re-installed everything and started afresh but there is some problem with using statsample-glm in the notebook. It says:
NameError: uninitialized constant Statsample::GLM::Regression
Did you mean? Statsample::Regression