Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nupur Lal committed Jan 21, 2025
1 parent 9f620fa commit a223ed6
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions ModelOps/18_ModelOps_BYOM_PIMA_DataRobot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,9 @@
"from teradataml import *\n",
"from teradatasqlalchemy.types import *\n",
"import os\n",
"import pandas as pd\n",
"import getpass\n",
"import logging\n",
"import sys\n",
"from xgboost import XGBClassifier\n",
"from sklearn.preprocessing import MinMaxScaler\n",
"from sklearn.pipeline import Pipeline\n",
"\n",
"from nyoka import xgboost_to_pmml"
"import sys\n"
]
},
{
Expand Down Expand Up @@ -280,7 +274,7 @@
"\n",
"<img src=\"images/18_2.png\" alt=\"Models screen\" />\n",
"\n",
"<p style = 'font-size:16px;font-family:Arial;color:#00233C'>Create a new model with PMML format. Then Save and Import<br>Download the model.pmml file from the folder artifacts and upload into ModelOps.<br>Ensure that <b>Enable Model Monitoring</b> is checked and classification as model type is selected. Then set the table the one you have been using (probably your username) and use as Prediction Expression\n",
"<p style = 'font-size:16px;font-family:Arial;color:#00233C'>Ensure that <b>Enable Model Monitoring</b> is checked and classification as model type is selected. Then set the table the one you have been using (probably your username) and use as Prediction Expression\n",
"\n",
"```sql\n",
"CAST(CAST(json_report AS JSON).JSONExtractValue('$.predicted_HasDiabetes') AS INT)\n",
Expand All @@ -306,7 +300,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](images/launchModelOps.png)](/modelops)"
"<a href=\"/modelops\" style=\"display: inline-flex; align-items: center; justify-content: center; background-color: #017373; color: #FFFFFF; font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none; padding: 12px 24px; border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease;\">\n",
" LAUNCH MODELOPS\n",
" <img src=\"https://img.icons8.com/ios-filled/50/ffffff/external-link.png\" alt=\"External Link Icon\" style=\"margin-left: 8px; width: 20px; height: 20px;\">\n",
"</a>"
]
},
{
Expand Down Expand Up @@ -338,7 +335,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](images/launchModelOps.png)](/modelops)"
"<a href=\"/modelops\" style=\"display: inline-flex; align-items: center; justify-content: center; background-color: #017373; color: #FFFFFF; font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none; padding: 12px 24px; border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease;\">\n",
" LAUNCH MODELOPS\n",
" <img src=\"https://img.icons8.com/ios-filled/50/ffffff/external-link.png\" alt=\"External Link Icon\" style=\"margin-left: 8px; width: 20px; height: 20px;\">\n",
"</a>"
]
},
{
Expand All @@ -364,7 +364,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](images/launchModelOps.png)](/modelops)"
"<a href=\"/modelops\" style=\"display: inline-flex; align-items: center; justify-content: center; background-color: #017373; color: #FFFFFF; font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none; padding: 12px 24px; border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease;\">\n",
" LAUNCH MODELOPS\n",
" <img src=\"https://img.icons8.com/ios-filled/50/ffffff/external-link.png\" alt=\"External Link Icon\" style=\"margin-left: 8px; width: 20px; height: 20px;\">\n",
"</a>"
]
},
{
Expand Down Expand Up @@ -401,7 +404,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](images/launchModelOps.png)](/modelops)"
"<a href=\"/modelops\" style=\"display: inline-flex; align-items: center; justify-content: center; background-color: #017373; color: #FFFFFF; font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none; padding: 12px 24px; border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease;\">\n",
" LAUNCH MODELOPS\n",
" <img src=\"https://img.icons8.com/ios-filled/50/ffffff/external-link.png\" alt=\"External Link Icon\" style=\"margin-left: 8px; width: 20px; height: 20px;\">\n",
"</a>"
]
},
{
Expand Down Expand Up @@ -448,7 +454,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](images/launchModelOps.png)](/modelops)"
"<a href=\"/modelops\" style=\"display: inline-flex; align-items: center; justify-content: center; background-color: #017373; color: #FFFFFF; font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none; padding: 12px 24px; border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease;\">\n",
" LAUNCH MODELOPS\n",
" <img src=\"https://img.icons8.com/ios-filled/50/ffffff/external-link.png\" alt=\"External Link Icon\" style=\"margin-left: 8px; width: 20px; height: 20px;\">\n",
"</a>"
]
},
{
Expand Down Expand Up @@ -496,7 +505,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](images/launchModelOps.png)](/modelops)"
"<a href=\"/modelops\" style=\"display: inline-flex; align-items: center; justify-content: center; background-color: #017373; color: #FFFFFF; font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none; padding: 12px 24px; border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease;\">\n",
" LAUNCH MODELOPS\n",
" <img src=\"https://img.icons8.com/ios-filled/50/ffffff/external-link.png\" alt=\"External Link Icon\" style=\"margin-left: 8px; width: 20px; height: 20px;\">\n",
"</a>"
]
},
{
Expand Down

0 comments on commit a223ed6

Please sign in to comment.