-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from eribean/discrimination_constraints_md
Added initial guess to the multidimensional 2pl model
- Loading branch information
Showing
7 changed files
with
184 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[](https://www.codefactor.io/repository/github/eribean/girth_mcmc) | ||
[](https://badge.fury.io/py/girth-mcmc) | ||
[](https://opensource.org/licenses/MIT) | ||
[](https://opensource.org/licenses/MIT) | ||
|
||
# GIRTH MCMC | ||
Item Response Theory using Markov Chain Monte Carlo / Variational Inference | ||
|
@@ -17,17 +17,21 @@ packages can be installed through pip otherwise. | |
* PyMC3 | ||
|
||
## Installation | ||
|
||
Via pip | ||
``` | ||
|
||
```sh | ||
pip install girth_mcmc --upgrade | ||
``` | ||
|
||
From Source | ||
``` | ||
|
||
```sh | ||
pip install . -t $PYTHONPATH --upgrade | ||
``` | ||
|
||
# Supports | ||
|
||
**Unidimensional** | ||
* Rasch Model | ||
* 1PL Model | ||
|
@@ -39,7 +43,9 @@ pip install . -t $PYTHONPATH --upgrade | |
* 2PL Model | ||
|
||
# Usage | ||
|
||
Subject to change but for now: | ||
|
||
```python | ||
import numpy as np | ||
from girth import create_synthetic_irt_dichotomous | ||
|
@@ -59,6 +65,7 @@ print(results) | |
``` | ||
|
||
for the graded response model, pass in the number of categories | ||
|
||
```python | ||
import numpy as np | ||
from girth import create_synthetic_irt_polytomous | ||
|
@@ -81,6 +88,7 @@ print(results) | |
``` | ||
|
||
Is some data missing? Tag it with a convenience function and run it like normal | ||
|
||
```python | ||
import numpy as np | ||
from girth import create_synthetic_irt_dichotomous | ||
|
@@ -132,24 +140,21 @@ print(results_variational) | |
## Unittests | ||
|
||
**pytest** with coverage.py module | ||
``` | ||
pytest --cov=girth_mcmc --cov-report term | ||
``` | ||
|
||
**nose** with coverage.py module | ||
``` | ||
nosetests --with-coverage --cover-package=girth_mcmc | ||
```sh | ||
pytest --cov=girth_mcmc --cov-report term | ||
``` | ||
|
||
## Contact | ||
|
||
Ryan Sanchez | ||
[email protected] | ||
|
||
|
||
## Other Estimation Packages | ||
If you are looking for Marginal Maximum Likelihood estimation routines, | ||
check out [GIRTH](https://eribean.github.io/girth/). | ||
|
||
If you are looking for Marginal Maximum Likelihood estimation routines, | ||
check out [GIRTH](https://eribean.github.io/girth/), a graphical interface | ||
is also at [GoFactr](https://gofactr.com) | ||
|
||
## License | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.