diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-01 08:05:39 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-01 08:05:39 +0200 |
commit | 8f29c2a25fa77491753bfbb48c6d13034acabdff (patch) | |
tree | e70e35ef24748fa8bda4615e5c6e498e06bdb9b4 /lib/dfatool.py | |
parent | c5ec741a258577386f30ad2577141ce498f6310c (diff) |
Use std_param_lut, not the (non-existing) std_arg_lut
Diffstat (limited to 'lib/dfatool.py')
-rwxr-xr-x | lib/dfatool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dfatool.py b/lib/dfatool.py index d998dbb..f54d1a0 100755 --- a/lib/dfatool.py +++ b/lib/dfatool.py @@ -492,9 +492,9 @@ class ParamStats: if self.use_corrcoef: return 1 - np.abs(statistics['corr_by_arg'][arg_index]) if statistics['std_by_arg'][arg_index] == 0: - if statistics['std_arg_lut'] != 0: + if statistics['std_param_lut'] != 0: raise RuntimeError("wat") - # In general, std_arg_lut < std_by_arg. So, if std_by_arg == 0, std_arg_lut == 0 follows. + # In general, std_param_lut < std_by_arg. So, if std_by_arg == 0, std_param_lut == 0 follows. # This means that the variation of arg does not affect the model quality -> no influence, return 1 return 1 return statistics['std_param_lut'] / statistics['std_by_arg'][arg_index] |