diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2025-02-03 11:23:33 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-02-03 11:23:33 +0900 |
commit | 6595915f4714477b17c6c6a284f5e4e0037ee45b (patch) | |
tree | bdc4ab9115bce3953bd9165c26c9eb3a6d5ac7f6 /synth.py | |
parent | 0f539382d3cc261522c3f984a4b2adcd1547a433 (diff) | |
download | taosc-6595915f4714477b17c6c6a284f5e4e0037ee45b.tar.gz |
Log PAC epsilon
Diffstat (limited to 'synth.py')
-rw-r--r-- | synth.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synth.py b/synth.py index c35fb84..ee74074 100644 --- a/synth.py +++ b/synth.py @@ -21,6 +21,7 @@ from argparse import ArgumentParser from cProfile import run from functools import partial from pathlib import Path +from sys import stderr from pacfix import learn from pacfix.invariant import INVARIANT_MAP, InvariantType @@ -52,6 +53,7 @@ with open(args.input / 'list') as f: live_vars = get_live_vars(f) vals_neg, vals_pos = parse_valuation(get_valuations(args.input / 'neg'), get_valuations(args.input / 'pos')) result = learn(live_vars, vals_neg, vals_pos, args.delta) +print('PAC epsilon:', result.pac_epsilon, file=stderr) for i in result.inv_mgr.invs: write_invariant(i) print() |