Skip to content

Commit

Permalink
Fixed cd_text_imdb.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertSamoilescu committed Dec 10, 2024
1 parent bc81fc0 commit 9bf3cb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions doc/source/examples/cd_text_imdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"id": "qG5BL45LxfoG"
},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"TF_USE_LEGACY_KERAS\"] = \"1\"\n",
"\n",
"import nlp\n",
"import numpy as np\n",
"import os\n",
"import tensorflow as tf\n",
"from transformers import AutoTokenizer\n",
"from alibi_detect.cd import KSDrift, MMDDrift\n",
Expand Down
6 changes: 4 additions & 2 deletions docs-gb/examples/cd_text_imdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"id": "qG5BL45LxfoG"
},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"TF_USE_LEGACY_KERAS\"] = \"1\"\n",
"\n",
"import nlp\n",
"import numpy as np\n",
"import os\n",
"import tensorflow as tf\n",
"from transformers import AutoTokenizer\n",
"from alibi_detect.cd import KSDrift, MMDDrift\n",
Expand Down

0 comments on commit 9bf3cb4

Please sign in to comment.