File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5050 {
5151 "data" : {
5252 "text/plain" : [
53- " 'infeasible '"
53+ " 'dual_infeas_cer '"
5454 ]
5555 },
5656 "execution_count" : 1 ,
123123 }
124124 ],
125125 "source" : [
126- " cert = sdp.certificate_as_probs ()\n " ,
126+ " cert = sdp.certificate.as_probs ()\n " ,
127127 " cert"
128128 ]
129129 },
152152 ],
153153 "source" : [
154154 " # 2PR distribution\n " ,
155- " print(sdp.evaluate_certificate (P_2PR()))\n " ,
155+ " print(sdp.certificate.evaluate (P_2PR()))\n " ,
156156 " \n " ,
157157 " # Uniform distribution\n " ,
158- " print(sdp.evaluate_certificate (np.ones_like(P_2PR()) / 8))"
158+ " print(sdp.certificate.evaluate (np.ones_like(P_2PR()) / 8))"
159159 ]
160160 },
161161 {
706706 " sdp.known_moments,\n " ,
707707 " \" bisection\" )\n " ,
708708 " print(\" Critical visibility:\" , v,\n " ,
709- " f\"\\ nCertificate:\\ n{sdp.certificate_as_string (chop_tol=1e-4)}\" )"
709+ " f\"\\ nCertificate:\\ n{sdp.certificate.as_string (chop_tol=1e-4)}\" )"
710710 ]
711711 },
712712 {
745745 " from sympy import Symbol\n " ,
746746 " prob_to_corr = {}\n " ,
747747 " \n " ,
748- " cert = sdp.certificate_as_probs (chop_tol=1e-4)\n " ,
748+ " cert = sdp.certificate.as_probs (chop_tol=1e-4)\n " ,
749749 " for prob in cert.free_symbols:\n " ,
750750 " inputs = \"\" .join([party.split(\" {\" )[1][0] for party in str(prob).split(\" ,\" )])\n " ,
751751 " parties = \"\" .join([party.split(\" _\" )[0][-1] for party in str(prob).split(\" ,\" )])\n " ,
You can’t perform that action at this time.
0 commit comments