From 656e4a22c55cd785a8f6fe079adfb7d249f42e1e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 23 Sep 2022 15:22:19 +0200 Subject: do not build dtree in static and LUT cross-validation runs --- bin/analyze-kconfig.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index cea1c9e..c33292e 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -421,10 +421,12 @@ def main(): logging.debug(f"model.get_fitted(...) took {fit_duration : 7.1f} seconds") if xv_method == "montecarlo": - static_quality, _ = xv.montecarlo(lambda m: m.get_static(), xv_count) + static_quality, _ = xv.montecarlo( + lambda m: m.get_static(), xv_count, static=True + ) if lut_model: lut_quality, _ = xv.montecarlo( - lambda m: m.get_param_lut(fallback=True), xv_count + lambda m: m.get_param_lut(fallback=True), xv_count, static=True ) else: lut_quality = None @@ -433,10 +435,10 @@ def main(): lambda m: m.get_fitted()[0], xv_count ) elif xv_method == "kfold": - static_quality, _ = xv.kfold(lambda m: m.get_static(), xv_count) + static_quality, _ = xv.kfold(lambda m: m.get_static(), xv_count, static=True) if lut_model: lut_quality, _ = xv.kfold( - lambda m: m.get_param_lut(fallback=True), xv_count + lambda m: m.get_param_lut(fallback=True), xv_count, static=True ) else: lut_quality = None -- cgit v1.2.3