SPFlow
SPFlow copied to clipboard
Save circuit to file
Hi,
Is there a recommended way to save SPNs or CNets to disk in SPFlow? Is pickling the whole circuit safe?
Thanks
I'm not part of the project, but you could do this as shown in the readme:
from spn.io.Text import spn_to_str_equation
txt = spn_to_str_equation(spn_marg)
print(txt)