irt-service/app/lib/irt/item_response_function.py
2021-10-29 18:43:56 +00:00

13 lines
372 B
Python

from lib.irt.models.three_parameter_logistic import ThreeParameterLogistic
class ItemResponseFunction():
def __init__(self, irt_model):
self.model_data = irt_model
def calculate(self, **kwargs):
if self.model_data.model == '3PL':
return ThreeParameterLogistic(self.model_data, kwargs).result()
else:
# potentially error out
return None