Package for calc difficult of test tasks and ability of test subjects by Rasch model (IRT 0).
Project description
irt_test
Package for calc difficult of test tasks and ability of test subjects by Rasch model (IRT 0).
Installation
You can install irt_test using pip:
pip install irt-test
Example Usage
ℹ️ Important
🔥 Note: The Rasch model works only with binary data, also no column or row should contain a single value, for example, a row of zeros or ones will be excluded from the analysis.
Input DataFrame example:
| Task 1 | Task 2 | Task 3 | Task 4 | Task 5 | |
|---|---|---|---|---|---|
| Julia | 1 | 0 | 1 | 1 | 1 |
| Ivan | 1 | 1 | 1 | 0 | 1 |
| Anna | 1 | 0 | 0 | 0 | 1 |
| Peter | 0 | 0 | 0 | 1 | 1 |
For get logits of tasks and subjects use 'irt' function.
This function calculates scores for the subjects' abilities and tasks' difficulty in the form of logits using the IRT model.
Parameters:
df(DataFrame): A matrix with only zeros and ones values.steps(int): Number of learning steps (if 0, the model will run until the error > accept).accept(float): Acceptable error value (ignored when steps > 0).
Returns:
result(IrtResult): An object containing logit vectors, rejected subjects and tasks, and model error.
from irt_test.irt import irt
# Get logits and additional info from IRT0 model
irt_result = irt(df)
irt_result object contains logits of tasks and subjects from the IRT0 model, along with error and rejected units.
Attributes:
abilities(pandas.Series): Logits of subjects' abilities (subjects are the index of the Series).difficult(pandas.Series): Logits of task difficulty (tasks are the index of the Series).err(float): Metric of the difference between real test results and estimated results by logits.rejected_tasks(list): Names of tasks that cannot be used to calculate difficulty logits.rejected_subjects(list): Names of subjects that cannot be used to calculate ability logits.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file irt_test-0.1.2.tar.gz.
File metadata
- Download URL: irt_test-0.1.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.7.6-200.fc39.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
425cc5cc25364ab80d061c25e91ca926013c9abe92f384b5e3ccd959fb46b31e
|
|
| MD5 |
bbeb50da129730722a2250ac92c1865f
|
|
| BLAKE2b-256 |
837450b548490c523b2c40d17e4617c2f47bf4b6137c7dbabca3d7956847c3ba
|
File details
Details for the file irt_test-0.1.2-py3-none-any.whl.
File metadata
- Download URL: irt_test-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.7.6-200.fc39.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5943d1cc0b0ff75950c55d931e93c459a059e30e51738356ba14b5c963fac26
|
|
| MD5 |
8c374263f8cd8bfcfae4e2b891f01675
|
|
| BLAKE2b-256 |
84318f3d8332284406c91cdd415dc5eed16681261b5e06d37b9885525f3cb37c
|