From b3ace563e816936595ef9946c055df60481cf799 Mon Sep 17 00:00:00 2001 From: JoFrost Date: Tue, 4 Jul 2023 08:42:02 +0000 Subject: [PATCH] fix[docs]: arguments name in methods used are now correct (issue #181 & #182) --- .../covid_net_confidential.ipynb | 92 +++++++++++-------- 1 file changed, 55 insertions(+), 37 deletions(-) diff --git a/docs/docs/how-to-guides/covid_net_confidential.ipynb b/docs/docs/how-to-guides/covid_net_confidential.ipynb index 84577df1..1a551182 100644 --- a/docs/docs/how-to-guides/covid_net_confidential.ipynb +++ b/docs/docs/how-to-guides/covid_net_confidential.ipynb @@ -63,6 +63,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "eyD9N1BLxTPH" @@ -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" ] } ], @@ -188,6 +204,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "Sn7KwAR1JzFk" @@ -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" ] } @@ -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", ")" ] }, @@ -272,7 +289,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "8afcdab8-209e-4b93-9403-f3ea2dc0c3ae\n" + "ed07956e-e1f4-4ec3-8422-3c6d2e3d0544\n" ] } ], @@ -308,6 +325,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "U3XAPXMY5S6i" @@ -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" @@ -378,7 +388,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 6, "metadata": { "id": "G02qMu727Yk9" }, @@ -404,7 +414,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 7, "metadata": { "id": "PGNheWiQ-Wrb" }, @@ -447,7 +457,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 8, "metadata": { "id": "4iws4qDYAla4" }, @@ -459,6 +469,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "AQZrAoE_QolE" @@ -473,7 +484,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 9, "metadata": { "id": "4R_th75oO4EO" }, @@ -487,6 +498,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "AGDpvvPZZVI2" @@ -499,7 +511,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 10, "metadata": { "id": "Iab0BRXNXWmD" }, @@ -511,6 +523,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "gsBzU72yZ9Hb" @@ -521,7 +534,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 11, "metadata": { "id": "OjjDamPJaNGV", "outputId": "d860fe92-1b78-4a37-d27e-bc92503984ab" @@ -561,6 +574,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "Y-a0ZSEeaR3Z" @@ -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)" ] }, { @@ -602,7 +616,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 13, "metadata": { "id": "sc-qE8Grgv-E", "outputId": "ad8bdd39-c83c-4582-d3d4-0ea3ddc31097" @@ -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" ] } ], @@ -624,6 +638,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "rNlmssFRhZO3" @@ -634,7 +649,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 14, "metadata": { "id": "aE4Ht_4HhzXW" }, @@ -645,6 +660,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "THf5STLniN5f" @@ -662,7 +678,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 16, "metadata": { "id": "iDWHptjsj_Rx" }, @@ -671,7 +687,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" ] } @@ -679,11 +695,12 @@ "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" @@ -694,7 +711,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 17, "metadata": { "id": "L2be-X3Rjb1E" }, @@ -705,6 +722,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "Hw5V_h38h4_A" @@ -715,7 +733,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 18, "metadata": { "id": "9kwK9u6_qT6X", "outputId": "83837ce0-08dd-4bea-a5ea-3f1b46540d4b" @@ -734,7 +752,7 @@ "True" ] }, - "execution_count": 22, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -791,7 +809,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.10" + "version": "3.10.6" }, "vscode": { "interpreter": {