Skip to content

Commit fc5de16

Browse files
committed
Update examples.ipynb
1 parent 9bdaf6c commit fc5de16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/examples.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{
5151
"data": {
5252
"text/plain": [
53-
"'infeasible'"
53+
"'dual_infeas_cer'"
5454
]
5555
},
5656
"execution_count": 1,
@@ -123,7 +123,7 @@
123123
}
124124
],
125125
"source": [
126-
"cert = sdp.certificate_as_probs()\n",
126+
"cert = sdp.certificate.as_probs()\n",
127127
"cert"
128128
]
129129
},
@@ -152,10 +152,10 @@
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
{
@@ -706,7 +706,7 @@
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
{
@@ -745,7 +745,7 @@
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",

0 commit comments

Comments
 (0)