Skip to content
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

Formula language notebook requires updation #28

Open
lokeshh opened this issue Sep 7, 2016 · 15 comments
Open

Formula language notebook requires updation #28

lokeshh opened this issue Sep 7, 2016 · 15 comments

Comments

@lokeshh
Copy link
Member

lokeshh commented Sep 7, 2016

"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.

@snpd25
Copy link

snpd25 commented Jan 20, 2019

Hi @lokeshh,
I would like to fix this but would need some guidance, if you can help.
Thanks.

@lokeshh
Copy link
Member Author

lokeshh commented Jan 20, 2019

Good. You can get started by setting up iRuby notebook. If you face any problem let me know.

@snpd25
Copy link

snpd25 commented Jan 20, 2019

I have done the setup of Ruby kernel in Jupyter Notebook. What's next to be done?

@lokeshh
Copy link
Member Author

lokeshh commented Jan 21, 2019

Could you verify if notebooks in sciruby-notebooks/Data Analysis/Categorical Data/examples are working as expected?

@snpd25
Copy link

snpd25 commented Jan 21, 2019

Yup, they are working fine.

@lokeshh
Copy link
Member Author

lokeshh commented Jan 22, 2019

Now rename the column AgeuponOutcome(Weeks) to AgeuponOutcome or something else which does use parenthesis.

@snpd25
Copy link

snpd25 commented Jan 22, 2019

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.

@lokeshh
Copy link
Member Author

lokeshh commented Jan 22, 2019

@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

@snpd25
Copy link

snpd25 commented Jan 22, 2019

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?

@lokeshh
Copy link
Member Author

lokeshh commented Jan 23, 2019 via email

@lokeshh
Copy link
Member Author

lokeshh commented Jan 24, 2019

@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.

@snpd25
Copy link

snpd25 commented Jan 26, 2019

screenshot from 2019-01-26 14-28-57 See if I am doing as required.

@lokeshh
Copy link
Member Author

lokeshh commented Jan 26, 2019

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.

@snpd25
Copy link

snpd25 commented Jan 26, 2019

screenshot from 2019-01-26 17-11-26
I tried modifying the file example [Example] Formula language in Statsample-GLM.ipynb. It's showing the same result.

@snpd25
Copy link

snpd25 commented Feb 7, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants