added simplified improvement test
This commit is contained in:
parent
dc15bd17bb
commit
5509ef5b96
@ -65,7 +65,11 @@ def improved_answer(answer, exact):
|
||||
else:
|
||||
log.debug(":( damaged result")
|
||||
return False
|
||||
|
||||
def improved(qlin, err, final, exact):
|
||||
if np.abs(final - exact) <= np.abs(qlin - exact):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def percent_improvement(answer, exact):
|
||||
return np.abs(answer['error']) / exact
|
||||
|
Loading…
Reference in New Issue
Block a user