dont round off the targets

This commit is contained in:
Adrian Manteza
2022-03-17 17:12:47 +00:00
parent d4729cf812
commit 05c5dc3856
3 changed files with 10 additions and 18 deletions
+2 -6
View File
@@ -14,14 +14,10 @@ class Item(BaseModel):
b_param: float = 0.00
def iif(self, solver_run, theta):
val = ItemInformationFunction(solver_run.irt_model).calculate(b_param=self.b_param, theta=theta)
return round(val, 2)
return ItemInformationFunction(solver_run.irt_model).calculate(b_param=self.b_param, theta=theta)
def irf(self, solver_run, theta):
val = ItemResponseFunction(solver_run.irt_model).calculate(b_param=self.b_param, theta=theta)
return round(val, 2)
return ItemResponseFunction(solver_run.irt_model).calculate(b_param=self.b_param, theta=theta)
def get_attribute(self, ref_attribute):
for attribute in self.attributes: