diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-09-23 15:22:19 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-09-23 15:22:19 +0200 |
commit | 656e4a22c55cd785a8f6fe079adfb7d249f42e1e (patch) | |
tree | 2cd606578c02045cc18efd1bc7d3a39ee5edf56c /bin | |
parent | e224ced44f95880d86f4913396d7c621fe2f2db1 (diff) |
do not build dtree in static and LUT cross-validation runs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-kconfig.py | 10 |
1 files changed, 6 insertions, 4 deletions
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 |