From 3cbf276566b6f0319bd2ae8babcec58d871cb3b5 Mon Sep 17 00:00:00 2001 From: jm1021 Date: Sat, 23 Mar 2024 06:35:36 -0700 Subject: [PATCH] document --- .../2024-03-05-DS-python-pandas-df_titanic.ipynb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/_notebooks/2024-03-05-DS-python-pandas-df_titanic.ipynb b/_notebooks/2024-03-05-DS-python-pandas-df_titanic.ipynb index 63205f65..bd1724b2 100644 --- a/_notebooks/2024-03-05-DS-python-pandas-df_titanic.ipynb +++ b/_notebooks/2024-03-05-DS-python-pandas-df_titanic.ipynb @@ -388,7 +388,9 @@ "metadata": {}, "source": [ "### Building a Backend Model\n", - "The code above needs to be reformed into a Model. This Python Class is resturctured to follow Modlel, View (JavaScript), Control (Python API) paradigm." + "The code above needs to be reformed into a Model. This Python Class is resturctured to follow Modlel, View (JavaScript), Control (Python API) paradigm.\n", + "\n", + "Be sure to add to the model and \"Improve your chances\" interface." ] }, { @@ -506,7 +508,9 @@ "metadata": {}, "source": [ "### Building a Backend API\n", - "API code is then created to with the Model. This example is in imperitive style. Be sure to resturcture this code to work well with you Web application." + "API code is then created to with the Model. This example is in imperitive style. \n", + "\n", + "Be sure to resturcture this code to work well with you Web application." ] }, { @@ -519,7 +523,7 @@ "from flask import request, jsonify\n", "\n", "# Define the API endpoint for prediction\n", - "@app.route('/api/predict', methods=['POST'])\n", + "@app.route('/api/titanic/predict', methods=['POST'])\n", "def predict():\n", " # Get the passenger data from the request\n", " passenger = request.get_json()\n",