Skip to content

Commit

Permalink
[FSTORE-1196] [APPEND] Instructions for Transformer (#244)
Browse files Browse the repository at this point in the history
 add clarification on feature view and training data version for transformer
  • Loading branch information
Marco Pellegrino authored Feb 29, 2024
1 parent a023540 commit fde1353
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
4 changes: 2 additions & 2 deletions integrations/neo4j/1_feature_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
"outputs": [],
"source": [
"URI = \"bolt://localhost:7687\"\n",
"AUTH = (\"neo4j\", \"hopsworks\")\n",
"DATABASE = \"neo4j\""
"AUTH = (\"neo4j\", \"changeme\")\n",
"DATABASE = \"testdb\""
]
},
{
Expand Down
21 changes: 16 additions & 5 deletions integrations/neo4j/2_training_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"source": [
"# Get training data\n",
"X_train, y_train = feature_view.training_data(\n",
" description='AML training dataset'\n",
" description='AML training dataset',\n",
")"
]
},
Expand Down Expand Up @@ -527,6 +527,17 @@
"## <span style=\"color:#ff5f27;\"> 🚀 Model Deployment</span>\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In the following cell:\n",
"- Ensure that the value of `version` in `self.fs.get_feature_view()` is appropriately updated to reflect the correct version of your feature view.\n",
"- Verify that the value of `training_dataset_version` in `self.fv.init_serving()` corresponds to the version of your training dataset.\n",
"\n",
"You can check the versions on the Hopsworks web UI."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -554,7 +565,7 @@
" )\n",
" \n",
" # Initialise serving\n",
" self.fv.init_serving(1)\n",
" self.fv.init_serving(training_dataset_version=1)\n",
" \n",
" def preprocess(self, inputs):\n",
" # Retrieve feature vector using the feature vector provider\n",
Expand Down Expand Up @@ -715,9 +726,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "env_app",
"language": "python",
"name": "python3"
"name": "env_app"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -729,7 +740,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
16 changes: 13 additions & 3 deletions integrations/neo4j/3_online_inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@
"predictions = deployment.predict(data)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Inspect predictions\n",
"print(predictions)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -175,7 +185,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -201,7 +211,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -215,7 +225,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down

0 comments on commit fde1353

Please sign in to comment.