get ability estimation from source

This commit is contained in:
brmnjsh
2023-09-15 14:29:55 +00:00
parent f22d1c4cdb
commit 7a14856775
6 changed files with 78 additions and 4 deletions

View File

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