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

Sorry for asking this here #205

Open
airflow0 opened this issue Mar 13, 2020 · 2 comments
Open

Sorry for asking this here #205

airflow0 opened this issue Mar 13, 2020 · 2 comments

Comments

@airflow0
Copy link

I am trying to implement the Rasch Model with the dataset below, I am quite confused at the moment of how to implement this. Could anyone give me a slight nudge in which direction to take this?

Capture

@airflow0
Copy link
Author

airflow0 commented Mar 13, 2020

In all honesty, I just don't know how to get the data organized in a way where I can fit it to the model.
Because Inferpy is asking for X and Y data in columns, but the way ours has multiple subjects vs questions.

Is there anyway to format this kind of data in a way where Inferpy will recognize it for the Rasch model?

@rcabanasdepaz
Copy link
Member

Here you have the code for Edward: https://github.com/blei-lab/edward/blob/master/examples/rasch_model.py . Make a try and we will help you the problems
you get.

In relation to your question about setting the observations, these are not forced to be in columns. The shapes should be consistent with the variables you define in your model. Observations of variables inside a data model just should have an extra dimension for the number of samples.

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