Skip to content

Commit

Permalink
[FSTORE-1239] [APPEND] - Remove deprecated tensorflow-addons library (#…
Browse files Browse the repository at this point in the history
…245)

* remove deprecated tensorflow-addons

Co-authored-by: davitbzh <[email protected]>
  • Loading branch information
davitbzh and davitbzh authored Mar 12, 2024
1 parent fde1353 commit 1a56f37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"outputs": [],
"source": [
"import tensorflow as tf\n",
"from tensorflow.keras.layers.experimental.preprocessing import StringLookup, Normalization\n",
"from tensorflow.keras.layers import StringLookup, Normalization\n",
"\n",
"import tensorflow_recommenders as tfrs\n",
"import tensorflow_addons as tfa\n",
"\n",
"import warnings\n",
"warnings.filterwarnings('ignore')"
Expand Down Expand Up @@ -482,7 +482,7 @@
"model = TwoTowerModel(query_model, item_model)\n",
"\n",
"# Define an optimizer using AdamW with a learning rate of 0.01\n",
"optimizer = tfa.optimizers.AdamW(0.001, learning_rate=0.01)\n",
"optimizer = tf.keras.optimizers.AdamW(weight_decay=0.001, learning_rate=0.01)\n",
"\n",
"# Compile the model using the specified optimizer\n",
"model.compile(optimizer=optimizer)"
Expand Down Expand Up @@ -710,7 +710,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -724,7 +724,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.10.11"
}
},
"nbformat": 4,
Expand Down
5 changes: 2 additions & 3 deletions advanced_tutorials/recommender-system/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#These are the libraries you need to install to the Hopsworks cluster.
tensorflow==2.11
tensorflow==2.13
tensorflow-recommenders-0.7.2
tensorflow-addons-0.22.0
catboost==1.1.1
opensearch-py==1.1.0
hopsworks
streamlit==1.28.2
streamlit==1.28.2

0 comments on commit 1a56f37

Please sign in to comment.