summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-09-23 15:22:19 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-09-23 15:22:19 +0200
commit656e4a22c55cd785a8f6fe079adfb7d249f42e1e (patch)
tree2cd606578c02045cc18efd1bc7d3a39ee5edf56c /bin
parente224ced44f95880d86f4913396d7c621fe2f2db1 (diff)
do not build dtree in static and LUT cross-validation runs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-kconfig.py10
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