diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-01-05 15:23:51 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-01-05 15:23:51 +0100 |
commit | 2c5bcd77f2c952cc5269ca3e4b6e0a7323ebd085 (patch) | |
tree | 93da4dc33c77855445e6aa21f45c12b1803861fa /bin/analyze-timing.py | |
parent | d9aee2a314ae6d3fc0216893a4ccfd8bb66ffa9c (diff) |
cross validation: return intermediate models used for XV
These are interesting for statistics, e.g. to determine the average dtree size
Diffstat (limited to 'bin/analyze-timing.py')
-rwxr-xr-x | bin/analyze-timing.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/analyze-timing.py b/bin/analyze-timing.py index d67c553..c37ea65 100755 --- a/bin/analyze-timing.py +++ b/bin/analyze-timing.py @@ -305,7 +305,7 @@ if __name__ == "__main__": ) 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) else: static_quality = model.assess(static_model) @@ -314,7 +314,9 @@ if __name__ == "__main__": lut_model = model.get_param_lut() if xv_method == "montecarlo": - lut_quality = xv.montecarlo(lambda m: m.get_param_lut(fallback=True), xv_count) + lut_quality, _ = xv.montecarlo( + lambda m: m.get_param_lut(fallback=True), xv_count + ) else: lut_quality = model.assess(lut_model) @@ -412,7 +414,7 @@ if __name__ == "__main__": print("{:10s} {:10s} {}".format("", "", info.model_args)) if xv_method == "montecarlo": - analytic_quality = xv.montecarlo(lambda m: m.get_fitted()[0], xv_count) + analytic_quality, _ = xv.montecarlo(lambda m: m.get_fitted()[0], xv_count) else: analytic_quality = model.assess(param_model) |