convert item response from str to int

This commit is contained in:
brmnjsh 2023-09-28 18:57:10 +00:00
parent 939fc9bae9
commit a3f1585692

View File

@ -13,7 +13,7 @@ class Item(BaseModel):
workflow_state: Optional[str] = None
attributes: List[Attribute] = None
b_param: float = 0.00
response: Optional[str] = None
response: Optional[int] = None
def iif(self, solver_run, theta):
return ItemInformationFunction(solver_run.irt_model).calculate(b_param=self.b_param, theta=theta)