let the model calculate
This commit is contained in:
parent
84c34d9a90
commit
26571cffc6
@ -22,7 +22,10 @@ class Bundle(BaseModel):
|
||||
return TestResponseFunction(irt_model).calculate(self.items,
|
||||
theta=theta)
|
||||
|
||||
def tif_sum(self, solver_run):
|
||||
def tif_trf_sum(self, solver_run):
|
||||
return self.__trf_sum(solver_run) + self.__tif_sum(solver_run)
|
||||
|
||||
def __tif_sum(self, solver_run):
|
||||
total = 0
|
||||
|
||||
for target in solver_run.objective_function.tcc_targets:
|
||||
@ -30,7 +33,7 @@ class Bundle(BaseModel):
|
||||
|
||||
return total
|
||||
|
||||
def trf_sum(self, solver_run):
|
||||
def __trf_sum(self, solver_run):
|
||||
total = 0
|
||||
|
||||
for target in solver_run.objective_function.tcc_targets:
|
||||
|
@ -35,7 +35,10 @@ class Item(BaseModel):
|
||||
return True
|
||||
return False
|
||||
|
||||
def iif_sum(self, solver_run):
|
||||
def iif_irf_sum(self, solver_run):
|
||||
return self.__iif_sum(solver_run) + self.__irf_sum(solver_run)
|
||||
|
||||
def __iif_sum(self, solver_run):
|
||||
total = 0
|
||||
|
||||
for target in solver_run.objective_function.tif_targets:
|
||||
@ -43,7 +46,7 @@ class Item(BaseModel):
|
||||
|
||||
return total
|
||||
|
||||
def irf_sum(self, solver_run):
|
||||
def __irf_sum(self, solver_run):
|
||||
total = 0
|
||||
|
||||
for target in solver_run.objective_function.tif_targets:
|
||||
|
Loading…
x
Reference in New Issue
Block a user