Commit
·
f3bcea6
1
Parent(s):
d46c21a
chore: update CML version to 1.1.0 + fix
Browse files- SentimentClassification.ipynb +2 -2
- requirements.txt +2 -6
- sentiment_fhe_model/deployment/client.zip +2 -2
- sentiment_fhe_model/deployment/serialized_processing.json +0 -0
- sentiment_fhe_model/deployment/server.zip +2 -2
- sentiment_fhe_model/deployment/versions.json +1 -0
- sentiment_fhe_model/server_model.onnx +2 -2
SentimentClassification.ipynb
CHANGED
@@ -262,13 +262,13 @@
|
|
262 |
"# Let's see what are the top predictions based on the probabilities in y_pred_test\n",
|
263 |
"print(\"5 most positive tweets (class 2):\")\n",
|
264 |
"for i in range(5):\n",
|
265 |
-
" print(text_X_test.iloc[
|
266 |
"\n",
|
267 |
"print(\"-\" * 100)\n",
|
268 |
"\n",
|
269 |
"print(\"5 most negative tweets (class 0):\")\n",
|
270 |
"for i in range(5):\n",
|
271 |
-
" print(text_X_test.iloc[
|
272 |
]
|
273 |
},
|
274 |
{
|
|
|
262 |
"# Let's see what are the top predictions based on the probabilities in y_pred_test\n",
|
263 |
"print(\"5 most positive tweets (class 2):\")\n",
|
264 |
"for i in range(5):\n",
|
265 |
+
" print(text_X_test.iloc[y_proba_test_tfidf[:, 2].argsort()[-1 - i]])\n",
|
266 |
"\n",
|
267 |
"print(\"-\" * 100)\n",
|
268 |
"\n",
|
269 |
"print(\"5 most negative tweets (class 0):\")\n",
|
270 |
"for i in range(5):\n",
|
271 |
+
" print(text_X_test.iloc[y_proba_test_tfidf[:, 0].argsort()[-1 - i]])"
|
272 |
]
|
273 |
},
|
274 |
{
|
requirements.txt
CHANGED
@@ -1,7 +1,3 @@
|
|
1 |
-
concrete-ml==
|
2 |
-
gradio==3.
|
3 |
-
pandas==1.4.3
|
4 |
-
uvicorn==0.18.2
|
5 |
transformers==4.20.1
|
6 |
-
fastapi==0.79.0
|
7 |
-
jupyter==1.0.0
|
|
|
1 |
+
concrete-ml==1.1.0
|
2 |
+
gradio==3.40.1
|
|
|
|
|
3 |
transformers==4.20.1
|
|
|
|
sentiment_fhe_model/deployment/client.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f13cae6172cee1b9dfe8c3dbbedda1128a92e10aad7ce308f19d44a385a769d2
|
3 |
+
size 3886712
|
sentiment_fhe_model/deployment/serialized_processing.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
sentiment_fhe_model/deployment/server.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b47f3ac787435adea6db4eb00f46c15cc100eaae3e21c03f388d7c3a669e0b06
|
3 |
+
size 9301
|
sentiment_fhe_model/deployment/versions.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"concrete-ml": "1.1.0", "concrete-python": "1.1.0rc1", "python": "3.8.10"}
|
sentiment_fhe_model/server_model.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c1835d9467bfdf77c48d3492cb7f6adaa20f6f9c106d22eecd4c4ca39f3256f
|
3 |
+
size 932509
|