summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/analyze-kconfig.py11
-rw-r--r--lib/cli.py2
2 files changed, 12 insertions, 1 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index b95aded..cbf16e0 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -74,6 +74,11 @@ def main():
help="Build decision tree without checking for analytic functions first. Use this for large kconfig files.",
)
parser.add_argument(
+ "--skip-param-stats",
+ action="store_true",
+ help="Do not compute param stats that are required for RMT. Use this for large kconfig files.",
+ )
+ parser.add_argument(
"--max-std",
type=str,
metavar="VALUE_OR_MAP",
@@ -172,6 +177,10 @@ def main():
args = parser.parse_args()
+ if args.skip_param_stats and not args.force_tree:
+ print("--skip-param-stats requires --force-tree", file=sys.stderr)
+ sys.exit(1)
+
if args.log_level:
numeric_level = getattr(logging, args.log_level.upper(), None)
if not isinstance(numeric_level, int):
@@ -299,6 +308,7 @@ def main():
parameter_names,
force_tree=args.force_tree,
max_std=max_std,
+ compute_stats=not args.skip_param_stats,
)
constructor_duration = time.time() - constructor_start
logging.debug(f"AnalyticModel(...) took {constructor_duration : 7.1f} seconds")
@@ -348,6 +358,7 @@ def main():
parameter_names,
force_tree=args.force_tree,
max_std=max_std,
+ compute_stats=not args.skip_param_stats,
)
xv.parameter_aware = args.parameter_aware_cross_validation
else:
diff --git a/lib/cli.py b/lib/cli.py
index e0cbc7f..3e8e638 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -126,7 +126,7 @@ def model_quality_table(header, result_lists, info_list):
for i, results in enumerate(result_lists):
info = info_list[i]
buf += " ||| "
- if (
+ if results is not None and (
info is None
or (
key != "energy_Pt"