Skip to content

Commit

Permalink
fix[docs]: arguments name in methods used are now correct (issue #181 &
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFrost committed Jul 4, 2023
1 parent b7b7938 commit b3ace56
Showing 1 changed file with 55 additions and 37 deletions.
92 changes: 55 additions & 37 deletions docs/docs/how-to-guides/covid_net_confidential.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "eyD9N1BLxTPH"
Expand Down Expand Up @@ -164,8 +165,23 @@
"name": "stdout",
"output_type": "stream",
"text": [
"BlindAI mock server (version 0.0.6) already installed\n",
"BlindAI server is running at : 0.0.0.0:9923 and 0.0.0.0:9924\n"
"BlindAI mock server (version 0.6.3) already installed\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Starting BlindAI server...\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"BlindAI telemetry is enabled\n",
"Models can be managed on 0.0.0.0:9925\n",
"BlindAI server is running on the ports 9923 and 9924\n"
]
}
],
Expand All @@ -188,6 +204,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "Sn7KwAR1JzFk"
Expand Down Expand Up @@ -223,7 +240,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/workspaces/blindai/client/blindai/client.py:506: SimulationModeWarning: BlindAI is running in simulation mode. This mode is provided solely for testing purposes. It does not provide any security since there is no SGX enclave. The simulation mode MUST NOT be used in production.\n",
"SimulationModeWarning: BlindAI is running in simulation mode. This mode is provided solely for testing purposes. It does not provide any security since there is no SGX enclave. The simulation mode MUST NOT be used in production.\n",
" warnings.warn(\n"
]
}
Expand All @@ -234,7 +251,7 @@
"\n",
"# AI company connects\n",
"client_1 = blindai.core.connect(\n",
" addr=\"localhost\", simulation_mode=True, hazmat_http_on_untrusted_port=True\n",
" addr=\"localhost\", simulation_mode=True, hazmat_http_on_unattested_port=True\n",
")"
]
},
Expand Down Expand Up @@ -272,7 +289,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"8afcdab8-209e-4b93-9403-f3ea2dc0c3ae\n"
"ed07956e-e1f4-4ec3-8422-3c6d2e3d0544\n"
]
}
],
Expand Down Expand Up @@ -308,6 +325,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "U3XAPXMY5S6i"
Expand Down Expand Up @@ -339,28 +357,20 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {
"id": "6BPi5M4Zj7e_"
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/workspaces/blindai/client/blindai/client.py:506: SimulationModeWarning: BlindAI is running in simulation mode. This mode is provided solely for testing purposes. It does not provide any security since there is no SGX enclave. The simulation mode MUST NOT be used in production.\n",
" warnings.warn(\n"
]
}
],
"outputs": [],
"source": [
"# Data owner connects\n",
"client_2 = blindai.core.connect(\n",
" addr=\"localhost\", simulation_mode=True, hazmat_http_on_untrusted_port=True\n",
" addr=\"localhost\", simulation_mode=True, hazmat_http_on_unattested_port=True\n",
")"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "fEX_ICrY64h6"
Expand All @@ -378,7 +388,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 6,
"metadata": {
"id": "G02qMu727Yk9"
},
Expand All @@ -404,7 +414,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 7,
"metadata": {
"id": "PGNheWiQ-Wrb"
},
Expand Down Expand Up @@ -447,7 +457,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 8,
"metadata": {
"id": "4iws4qDYAla4"
},
Expand All @@ -459,6 +469,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "AQZrAoE_QolE"
Expand All @@ -473,7 +484,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 9,
"metadata": {
"id": "4R_th75oO4EO"
},
Expand All @@ -487,6 +498,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "AGDpvvPZZVI2"
Expand All @@ -499,7 +511,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 10,
"metadata": {
"id": "Iab0BRXNXWmD"
},
Expand All @@ -511,6 +523,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "gsBzU72yZ9Hb"
Expand All @@ -521,7 +534,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 11,
"metadata": {
"id": "OjjDamPJaNGV",
"outputId": "d860fe92-1b78-4a37-d27e-bc92503984ab"
Expand Down Expand Up @@ -561,6 +574,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "Y-a0ZSEeaR3Z"
Expand All @@ -575,15 +589,15 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 12,
"metadata": {
"id": "mIGMExGah46e"
},
"outputs": [],
"source": [
"# Data owner runs model by providing model_id and uploading images\n",
"pos_ret = client_2.run_model(MODEL_ID, positive)\n",
"neg_ret = client_2.run_model(MODEL_ID, negative)"
"pos_ret = client_2.run_model(MODEL_ID, input_tensors=positive)\n",
"neg_ret = client_2.run_model(MODEL_ID, input_tensors=negative)"
]
},
{
Expand All @@ -602,7 +616,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 13,
"metadata": {
"id": "sc-qE8Grgv-E",
"outputId": "ad8bdd39-c83c-4582-d3d4-0ea3ddc31097"
Expand All @@ -612,8 +626,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Probablity of Covid for negative image is 0.30052947998046875\n",
"Probability of Covid for positive image is 0.890598714351654\n"
"Probablity of Covid for negative image is 0.30052870512008667\n",
"Probability of Covid for positive image is 0.8905988931655884\n"
]
}
],
Expand All @@ -624,6 +638,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "rNlmssFRhZO3"
Expand All @@ -634,7 +649,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 14,
"metadata": {
"id": "aE4Ht_4HhzXW"
},
Expand All @@ -645,6 +660,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "THf5STLniN5f"
Expand All @@ -662,7 +678,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 16,
"metadata": {
"id": "iDWHptjsj_Rx"
},
Expand All @@ -671,19 +687,20 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/workspaces/blindai/client/blindai/client.py:506: SimulationModeWarning: BlindAI is running in simulation mode. This mode is provided solely for testing purposes. It does not provide any security since there is no SGX enclave. The simulation mode MUST NOT be used in production.\n",
"SimulationModeWarning: BlindAI is running in simulation mode. This mode is provided solely for testing purposes. It does not provide any security since there is no SGX enclave. The simulation mode MUST NOT be used in production.\n",
" warnings.warn(\n"
]
}
],
"source": [
"# AI company re-connects to server\n",
"client_1 = blindai.core.connect(\n",
" addr=\"localhost\", simulation_mode=True, hazmat_http_on_untrusted_port=True\n",
" addr=\"localhost\", simulation_mode=True, hazmat_http_on_unattested_port=True\n",
")"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "OTsO8TqKi1nP"
Expand All @@ -694,7 +711,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 17,
"metadata": {
"id": "L2be-X3Rjb1E"
},
Expand All @@ -705,6 +722,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "Hw5V_h38h4_A"
Expand All @@ -715,7 +733,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 18,
"metadata": {
"id": "9kwK9u6_qT6X",
"outputId": "83837ce0-08dd-4bea-a5ea-3f1b46540d4b"
Expand All @@ -734,7 +752,7 @@
"True"
]
},
"execution_count": 22,
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -791,7 +809,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.10.6"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit b3ace56

Please sign in to comment.