Skip to main content

A python package for Item Response Theory.

Project description

CircleCI codecov.io

Georgia Tech Item Response Theory Package

The GIRTh package is intended to be a python module implementing a broad swath of item response theory parameter estimation packages.

Dependencies

  • Python 3.7
  • Numpy
  • Scipy

We use the anaconda environment which can be installed Download here

Installation

Via pip

pip install girth --upgrade

From Source

python setup.py install --prefix=path/to/your/installation

Usage

import numpy as np

from girth import create_synthetic_irt_dichotomous
from girth import twopl_separate

# Create Synthetic Data
difficuly = np.linspace(-2.5, 2.5, 10)
discrimination = np.random.rand(10) + 0.5
theta = np.random.randn(500)

syn_data = create_synthetic_irt_dichotomous(difficuly, discrimination, theta)

# Solve for parameters
estimates = twopl_separate(syn_data)

# Unpack estimates
discrimination_estimates = estimates[0]
difficulty_estimates = estimates[1]

Unittests

Without coverage.py module

nosetests testing/

With coverage.py module

nosetests --with-coverage --cover-package=girth testing/

Contact

Ryan Sanchez
rsanchez44@gatech.edu

License

MIT License

Copyright (c) 2020 Ryan Sanchez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for girth, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size girth-0.1.3.tar.gz (14.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page