summaryrefslogtreecommitdiff
path: root/bin/analyze-kconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/analyze-kconfig.py')
-rwxr-xr-xbin/analyze-kconfig.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index da97c58..6887489 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -118,6 +118,17 @@ def main():
for attr in model.by_name[name]["attributes"]:
# TODO specify correct threshold
model.build_dtree(name, attr, 20)
+ model.fit_done = True
+
+ param_model, param_info = model.get_fitted()
+ analytic_quality = model.assess(param_model)
+
+ print("Model Error on Training Data:")
+ for name in model.names:
+ for attribute, error in analytic_quality[name].items():
+ mae = error["mae"]
+ smape = error["smape"]
+ print(f"{name:15s} {attribute:20s} ± {mae:5.0} / {smape:5.1f}%")
else:
raise NotImplementedError()