From 8f29c2a25fa77491753bfbb48c6d13034acabdff Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 1 Apr 2019 08:05:39 +0200 Subject: Use std_param_lut, not the (non-existing) std_arg_lut --- lib/dfatool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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] -- cgit v1.2.3