SPFlow icon indicating copy to clipboard operation
SPFlow copied to clipboard

Save circuit to file

Open RenatoGeh opened this issue 5 years ago • 1 comments

Hi,

Is there a recommended way to save SPNs or CNets to disk in SPFlow? Is pickling the whole circuit safe?

Thanks

RenatoGeh avatar Jan 14 '21 03:01 RenatoGeh

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)

felixdivo avatar Dec 03 '21 16:12 felixdivo