Datasets:
ArXiv:
DOI:
License:
Yiran Wang commited on
Commit ·
2ea25ec
1
Parent(s): c23dfde
polish tensorflow buggy and fixed versions
Browse files- benchmark/tensorflow_1/tensorflow_1_fixed.ipynb +0 -0
- benchmark/tensorflow_1/tensorflow_1_reproduced.ipynb +0 -0
- benchmark/tensorflow_10/tensorflow_10_fixed.ipynb +25 -151
- benchmark/tensorflow_10/tensorflow_10_reproduced.ipynb +28 -169
- benchmark/tensorflow_11/tensorflow_11_fixed.ipynb +0 -0
- benchmark/tensorflow_11/tensorflow_11_reproduced.ipynb +0 -0
- benchmark/tensorflow_12/tensorflow_12_fixed.ipynb +90 -82
- benchmark/tensorflow_12/tensorflow_12_reproduced.ipynb +9 -9
- benchmark/tensorflow_13/tensorflow_13_fixed.ipynb +3 -3
- benchmark/tensorflow_13/tensorflow_13_reproduced.ipynb +6 -6
- benchmark/tensorflow_14/data/updated_vgg_face_weights.h5 +1 -1
- benchmark/tensorflow_14/tensorflow_14_fixed.ipynb +1 -1
- benchmark/tensorflow_14/tensorflow_14_reproduced.ipynb +14 -5
- benchmark/tensorflow_15/tensorflow_15_fixed.ipynb +56 -73
- benchmark/tensorflow_15/tensorflow_15_reproduced.ipynb +16 -33
- benchmark/tensorflow_2/tensorflow_2_fixed.ipynb +32 -319
- benchmark/tensorflow_2/tensorflow_2_reproduced.ipynb +17 -9
- benchmark/tensorflow_3/tensorflow_3_fixed.ipynb +0 -0
- benchmark/tensorflow_3/tensorflow_3_reproduced.ipynb +0 -0
- benchmark/tensorflow_3/train.h5 +2 -2
- benchmark/tensorflow_4/tensorflow_4_fixed.ipynb +0 -0
- benchmark/tensorflow_4/tensorflow_4_reproduced.ipynb +120 -203
- benchmark/tensorflow_5/tensorflow_5_fixed.ipynb +19 -214
- benchmark/tensorflow_5/tensorflow_5_reproduced.ipynb +18 -181
- benchmark/tensorflow_5/weights.weights.h5 +1 -1
- benchmark/tensorflow_6/tensorflow_6_fixed.ipynb +41 -25
- benchmark/tensorflow_6/tensorflow_6_reproduced.ipynb +41 -25
- benchmark/tensorflow_7/tensorflow_7_fixed.ipynb +14 -114
- benchmark/tensorflow_7/tensorflow_7_reproduced.ipynb +11 -111
- benchmark/tensorflow_8/tensorflow_8_fixed.ipynb +30 -268
- benchmark/tensorflow_8/tensorflow_8_reproduced.ipynb +39 -265
- benchmark/tensorflow_9/tensorflow_9_fixed.ipynb +43 -43
- benchmark/tensorflow_9/tensorflow_9_reproduced.ipynb +44 -44
benchmark/tensorflow_1/tensorflow_1_fixed.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/tensorflow_1/tensorflow_1_reproduced.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/tensorflow_10/tensorflow_10_fixed.ipynb
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
},
|
| 26 |
{
|
| 27 |
"cell_type": "code",
|
| 28 |
-
"execution_count":
|
| 29 |
"metadata": {
|
| 30 |
"_cell_guid": "db36d43e-fbdc-4fc3-8e8a-3f4c7a788b5d",
|
| 31 |
"_uuid": "0d477273-98dd-4a45-97d9-3450116cd27e",
|
|
@@ -154,7 +154,7 @@
|
|
| 154 |
"4 0 0.0 0 "
|
| 155 |
]
|
| 156 |
},
|
| 157 |
-
"execution_count":
|
| 158 |
"metadata": {},
|
| 159 |
"output_type": "execute_result"
|
| 160 |
}
|
|
@@ -214,7 +214,7 @@
|
|
| 214 |
},
|
| 215 |
{
|
| 216 |
"cell_type": "code",
|
| 217 |
-
"execution_count":
|
| 218 |
"metadata": {
|
| 219 |
"_cell_guid": "e4f0ee12-42dd-4437-9445-2b9de59506f0",
|
| 220 |
"_uuid": "04c89e61-f09d-4eb5-9433-22e688897120",
|
|
@@ -238,7 +238,7 @@
|
|
| 238 |
},
|
| 239 |
{
|
| 240 |
"cell_type": "code",
|
| 241 |
-
"execution_count":
|
| 242 |
"metadata": {
|
| 243 |
"_cell_guid": "f3113856-1ca3-49d1-80cf-07c60da185d3",
|
| 244 |
"_uuid": "03dd987b-d612-4b93-a793-07c4b036914f",
|
|
@@ -253,125 +253,7 @@
|
|
| 253 |
"outputs_hidden": false
|
| 254 |
}
|
| 255 |
},
|
| 256 |
-
"outputs": [
|
| 257 |
-
{
|
| 258 |
-
"data": {
|
| 259 |
-
"text/html": [
|
| 260 |
-
"<div>\n",
|
| 261 |
-
"<style scoped>\n",
|
| 262 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 263 |
-
" vertical-align: middle;\n",
|
| 264 |
-
" }\n",
|
| 265 |
-
"\n",
|
| 266 |
-
" .dataframe tbody tr th {\n",
|
| 267 |
-
" vertical-align: top;\n",
|
| 268 |
-
" }\n",
|
| 269 |
-
"\n",
|
| 270 |
-
" .dataframe thead th {\n",
|
| 271 |
-
" text-align: right;\n",
|
| 272 |
-
" }\n",
|
| 273 |
-
"</style>\n",
|
| 274 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 275 |
-
" <thead>\n",
|
| 276 |
-
" <tr style=\"text-align: right;\">\n",
|
| 277 |
-
" <th></th>\n",
|
| 278 |
-
" <th>sentences</th>\n",
|
| 279 |
-
" <th>ADR</th>\n",
|
| 280 |
-
" <th>WD</th>\n",
|
| 281 |
-
" <th>EF</th>\n",
|
| 282 |
-
" <th>INF</th>\n",
|
| 283 |
-
" <th>SSI</th>\n",
|
| 284 |
-
" <th>DI</th>\n",
|
| 285 |
-
" <th>Findings</th>\n",
|
| 286 |
-
" <th>Others</th>\n",
|
| 287 |
-
" </tr>\n",
|
| 288 |
-
" </thead>\n",
|
| 289 |
-
" <tbody>\n",
|
| 290 |
-
" <tr>\n",
|
| 291 |
-
" <th>0</th>\n",
|
| 292 |
-
" <td>extreme weight gain, short-term memory loss, h...</td>\n",
|
| 293 |
-
" <td>1.0</td>\n",
|
| 294 |
-
" <td>0.0</td>\n",
|
| 295 |
-
" <td>0.0</td>\n",
|
| 296 |
-
" <td>0.0</td>\n",
|
| 297 |
-
" <td>0.0</td>\n",
|
| 298 |
-
" <td>0</td>\n",
|
| 299 |
-
" <td>0.0</td>\n",
|
| 300 |
-
" <td>0</td>\n",
|
| 301 |
-
" </tr>\n",
|
| 302 |
-
" <tr>\n",
|
| 303 |
-
" <th>1</th>\n",
|
| 304 |
-
" <td>I am detoxing from Lexapro now.</td>\n",
|
| 305 |
-
" <td>0.0</td>\n",
|
| 306 |
-
" <td>0.0</td>\n",
|
| 307 |
-
" <td>0.0</td>\n",
|
| 308 |
-
" <td>0.0</td>\n",
|
| 309 |
-
" <td>0.0</td>\n",
|
| 310 |
-
" <td>0</td>\n",
|
| 311 |
-
" <td>0.0</td>\n",
|
| 312 |
-
" <td>0</td>\n",
|
| 313 |
-
" </tr>\n",
|
| 314 |
-
" <tr>\n",
|
| 315 |
-
" <th>2</th>\n",
|
| 316 |
-
" <td>I slowly cut my dosage over several months and...</td>\n",
|
| 317 |
-
" <td>0.0</td>\n",
|
| 318 |
-
" <td>0.0</td>\n",
|
| 319 |
-
" <td>0.0</td>\n",
|
| 320 |
-
" <td>0.0</td>\n",
|
| 321 |
-
" <td>0.0</td>\n",
|
| 322 |
-
" <td>0</td>\n",
|
| 323 |
-
" <td>0.0</td>\n",
|
| 324 |
-
" <td>1</td>\n",
|
| 325 |
-
" </tr>\n",
|
| 326 |
-
" <tr>\n",
|
| 327 |
-
" <th>3</th>\n",
|
| 328 |
-
" <td>I am now 10 days completely off and OMG is it ...</td>\n",
|
| 329 |
-
" <td>0.0</td>\n",
|
| 330 |
-
" <td>0.0</td>\n",
|
| 331 |
-
" <td>0.0</td>\n",
|
| 332 |
-
" <td>0.0</td>\n",
|
| 333 |
-
" <td>0.0</td>\n",
|
| 334 |
-
" <td>0</td>\n",
|
| 335 |
-
" <td>0.0</td>\n",
|
| 336 |
-
" <td>1</td>\n",
|
| 337 |
-
" </tr>\n",
|
| 338 |
-
" <tr>\n",
|
| 339 |
-
" <th>4</th>\n",
|
| 340 |
-
" <td>I have flu-like symptoms, dizziness, major moo...</td>\n",
|
| 341 |
-
" <td>0.0</td>\n",
|
| 342 |
-
" <td>1.0</td>\n",
|
| 343 |
-
" <td>0.0</td>\n",
|
| 344 |
-
" <td>0.0</td>\n",
|
| 345 |
-
" <td>0.0</td>\n",
|
| 346 |
-
" <td>0</td>\n",
|
| 347 |
-
" <td>0.0</td>\n",
|
| 348 |
-
" <td>0</td>\n",
|
| 349 |
-
" </tr>\n",
|
| 350 |
-
" </tbody>\n",
|
| 351 |
-
"</table>\n",
|
| 352 |
-
"</div>"
|
| 353 |
-
],
|
| 354 |
-
"text/plain": [
|
| 355 |
-
" sentences ADR WD EF INF SSI \\\n",
|
| 356 |
-
"0 extreme weight gain, short-term memory loss, h... 1.0 0.0 0.0 0.0 0.0 \n",
|
| 357 |
-
"1 I am detoxing from Lexapro now. 0.0 0.0 0.0 0.0 0.0 \n",
|
| 358 |
-
"2 I slowly cut my dosage over several months and... 0.0 0.0 0.0 0.0 0.0 \n",
|
| 359 |
-
"3 I am now 10 days completely off and OMG is it ... 0.0 0.0 0.0 0.0 0.0 \n",
|
| 360 |
-
"4 I have flu-like symptoms, dizziness, major moo... 0.0 1.0 0.0 0.0 0.0 \n",
|
| 361 |
-
"\n",
|
| 362 |
-
" DI Findings Others \n",
|
| 363 |
-
"0 0 0.0 0 \n",
|
| 364 |
-
"1 0 0.0 0 \n",
|
| 365 |
-
"2 0 0.0 1 \n",
|
| 366 |
-
"3 0 0.0 1 \n",
|
| 367 |
-
"4 0 0.0 0 "
|
| 368 |
-
]
|
| 369 |
-
},
|
| 370 |
-
"execution_count": 5,
|
| 371 |
-
"metadata": {},
|
| 372 |
-
"output_type": "execute_result"
|
| 373 |
-
}
|
| 374 |
-
],
|
| 375 |
"source": [
|
| 376 |
"df.head(5)"
|
| 377 |
]
|
|
@@ -388,7 +270,7 @@
|
|
| 388 |
},
|
| 389 |
{
|
| 390 |
"cell_type": "code",
|
| 391 |
-
"execution_count":
|
| 392 |
"metadata": {
|
| 393 |
"_cell_guid": "a1f8d583-8ec8-416d-b08c-c2b8c24376df",
|
| 394 |
"_uuid": "4a8bb12b-86fc-49b0-8390-2e6b44236dad",
|
|
@@ -411,7 +293,7 @@
|
|
| 411 |
},
|
| 412 |
{
|
| 413 |
"cell_type": "code",
|
| 414 |
-
"execution_count":
|
| 415 |
"metadata": {
|
| 416 |
"_cell_guid": "36e6dc50-12d9-4405-8213-a96065630497",
|
| 417 |
"_uuid": "a657ba5a-d433-49a8-b783-35e8070dec7c",
|
|
@@ -433,7 +315,7 @@
|
|
| 433 |
},
|
| 434 |
{
|
| 435 |
"cell_type": "code",
|
| 436 |
-
"execution_count":
|
| 437 |
"metadata": {
|
| 438 |
"_cell_guid": "5aff1087-a1aa-4771-9b55-625ea9972830",
|
| 439 |
"_uuid": "abf84e40-be86-4593-928d-cca60640dce9",
|
|
@@ -455,7 +337,7 @@
|
|
| 455 |
},
|
| 456 |
{
|
| 457 |
"cell_type": "code",
|
| 458 |
-
"execution_count":
|
| 459 |
"metadata": {
|
| 460 |
"_cell_guid": "4c72764b-ed0b-4cb8-80b9-a61ac336468a",
|
| 461 |
"_uuid": "89540180-d48c-4424-8ca4-ff56b7e90846",
|
|
@@ -487,7 +369,7 @@
|
|
| 487 |
},
|
| 488 |
{
|
| 489 |
"cell_type": "code",
|
| 490 |
-
"execution_count":
|
| 491 |
"metadata": {
|
| 492 |
"_cell_guid": "f98e293c-33ed-4f62-a5b5-ad94c3002f4d",
|
| 493 |
"_uuid": "5561ce5d-d8df-4649-b27e-9f7936995c82",
|
|
@@ -524,7 +406,7 @@
|
|
| 524 |
},
|
| 525 |
{
|
| 526 |
"cell_type": "code",
|
| 527 |
-
"execution_count":
|
| 528 |
"metadata": {
|
| 529 |
"_cell_guid": "f3d157fe-bf0f-4dc3-8bc3-1ba2eae83952",
|
| 530 |
"_uuid": "ad56dd21-3dc8-4448-a283-e3fbf29c3bd8",
|
|
@@ -539,15 +421,7 @@
|
|
| 539 |
"outputs_hidden": false
|
| 540 |
}
|
| 541 |
},
|
| 542 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'label': 1, 'text': 'this is a sample review of a movie.'}\n"
|
| 548 |
-
]
|
| 549 |
-
}
|
| 550 |
-
],
|
| 551 |
"source": [
|
| 552 |
"print(process_data({\n",
|
| 553 |
" 'sentences': 'this is a sample review of a movie.',\n",
|
|
@@ -557,7 +431,7 @@
|
|
| 557 |
},
|
| 558 |
{
|
| 559 |
"cell_type": "code",
|
| 560 |
-
"execution_count":
|
| 561 |
"metadata": {
|
| 562 |
"_cell_guid": "a18da14f-f5f6-4834-ac49-3f9dbd2ba752",
|
| 563 |
"_uuid": "8e5c355d-f6cf-4430-8dd4-682ac7a3a4f3",
|
|
@@ -582,7 +456,7 @@
|
|
| 582 |
},
|
| 583 |
{
|
| 584 |
"cell_type": "code",
|
| 585 |
-
"execution_count":
|
| 586 |
"metadata": {
|
| 587 |
"execution": {
|
| 588 |
"iopub.execute_input": "2023-07-04T03:32:35.667297Z",
|
|
@@ -610,7 +484,7 @@
|
|
| 610 |
},
|
| 611 |
{
|
| 612 |
"cell_type": "code",
|
| 613 |
-
"execution_count":
|
| 614 |
"metadata": {
|
| 615 |
"_cell_guid": "a53aa2b1-d4ec-497a-ba1c-143059051090",
|
| 616 |
"_uuid": "3858c27a-ce1d-4195-9b16-d7e459a4aaf0",
|
|
@@ -640,7 +514,7 @@
|
|
| 640 |
},
|
| 641 |
{
|
| 642 |
"cell_type": "code",
|
| 643 |
-
"execution_count":
|
| 644 |
"metadata": {
|
| 645 |
"_cell_guid": "6c4dcd43-c77c-481b-bb2b-222b62949079",
|
| 646 |
"_uuid": "7060e586-ac88-4bc5-93b1-ff10eb1f470b",
|
|
@@ -676,7 +550,7 @@
|
|
| 676 |
},
|
| 677 |
{
|
| 678 |
"cell_type": "code",
|
| 679 |
-
"execution_count":
|
| 680 |
"metadata": {
|
| 681 |
"_cell_guid": "8ccfbddf-53c0-40ef-ab0f-a16907019abb",
|
| 682 |
"_uuid": "41674a1c-1391-455a-aa3d-d83590aff0ab",
|
|
@@ -714,7 +588,7 @@
|
|
| 714 |
},
|
| 715 |
{
|
| 716 |
"cell_type": "code",
|
| 717 |
-
"execution_count":
|
| 718 |
"metadata": {
|
| 719 |
"_cell_guid": "45938b6b-455a-4cf4-9ab0-b4f4b76dc344",
|
| 720 |
"_uuid": "fddc048a-36d4-4e8f-a482-68424b79b993",
|
|
@@ -736,7 +610,7 @@
|
|
| 736 |
},
|
| 737 |
{
|
| 738 |
"cell_type": "code",
|
| 739 |
-
"execution_count":
|
| 740 |
"metadata": {
|
| 741 |
"_cell_guid": "101a58f9-017b-45ca-8f4e-1437a1147ad5",
|
| 742 |
"_uuid": "2d1d59d1-b5c0-428a-8b53-6453f68765e7",
|
|
@@ -756,7 +630,7 @@
|
|
| 756 |
"name": "stderr",
|
| 757 |
"output_type": "stream",
|
| 758 |
"text": [
|
| 759 |
-
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.seq_relationship.weight', 'cls.predictions.transform.
|
| 760 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 761 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 762 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
@@ -785,7 +659,7 @@
|
|
| 785 |
},
|
| 786 |
{
|
| 787 |
"cell_type": "code",
|
| 788 |
-
"execution_count":
|
| 789 |
"metadata": {
|
| 790 |
"_cell_guid": "37cc08e3-f74c-4eec-838a-e6426e9f8967",
|
| 791 |
"_uuid": "e0933395-1e3b-4a10-b92e-25b3e2847931",
|
|
@@ -806,18 +680,18 @@
|
|
| 806 |
"output_type": "stream",
|
| 807 |
"text": [
|
| 808 |
"Epoch 1/2\n",
|
| 809 |
-
"\u001b[1m25/25\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 810 |
"Epoch 2/2\n",
|
| 811 |
-
"\u001b[1m25/25\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 812 |
]
|
| 813 |
},
|
| 814 |
{
|
| 815 |
"data": {
|
| 816 |
"text/plain": [
|
| 817 |
-
"<keras.src.callbacks.history.History at
|
| 818 |
]
|
| 819 |
},
|
| 820 |
-
"execution_count":
|
| 821 |
"metadata": {},
|
| 822 |
"output_type": "execute_result"
|
| 823 |
}
|
|
|
|
| 25 |
},
|
| 26 |
{
|
| 27 |
"cell_type": "code",
|
| 28 |
+
"execution_count": 2,
|
| 29 |
"metadata": {
|
| 30 |
"_cell_guid": "db36d43e-fbdc-4fc3-8e8a-3f4c7a788b5d",
|
| 31 |
"_uuid": "0d477273-98dd-4a45-97d9-3450116cd27e",
|
|
|
|
| 154 |
"4 0 0.0 0 "
|
| 155 |
]
|
| 156 |
},
|
| 157 |
+
"execution_count": 2,
|
| 158 |
"metadata": {},
|
| 159 |
"output_type": "execute_result"
|
| 160 |
}
|
|
|
|
| 214 |
},
|
| 215 |
{
|
| 216 |
"cell_type": "code",
|
| 217 |
+
"execution_count": 3,
|
| 218 |
"metadata": {
|
| 219 |
"_cell_guid": "e4f0ee12-42dd-4437-9445-2b9de59506f0",
|
| 220 |
"_uuid": "04c89e61-f09d-4eb5-9433-22e688897120",
|
|
|
|
| 238 |
},
|
| 239 |
{
|
| 240 |
"cell_type": "code",
|
| 241 |
+
"execution_count": null,
|
| 242 |
"metadata": {
|
| 243 |
"_cell_guid": "f3113856-1ca3-49d1-80cf-07c60da185d3",
|
| 244 |
"_uuid": "03dd987b-d612-4b93-a793-07c4b036914f",
|
|
|
|
| 253 |
"outputs_hidden": false
|
| 254 |
}
|
| 255 |
},
|
| 256 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
"source": [
|
| 258 |
"df.head(5)"
|
| 259 |
]
|
|
|
|
| 270 |
},
|
| 271 |
{
|
| 272 |
"cell_type": "code",
|
| 273 |
+
"execution_count": 4,
|
| 274 |
"metadata": {
|
| 275 |
"_cell_guid": "a1f8d583-8ec8-416d-b08c-c2b8c24376df",
|
| 276 |
"_uuid": "4a8bb12b-86fc-49b0-8390-2e6b44236dad",
|
|
|
|
| 293 |
},
|
| 294 |
{
|
| 295 |
"cell_type": "code",
|
| 296 |
+
"execution_count": 5,
|
| 297 |
"metadata": {
|
| 298 |
"_cell_guid": "36e6dc50-12d9-4405-8213-a96065630497",
|
| 299 |
"_uuid": "a657ba5a-d433-49a8-b783-35e8070dec7c",
|
|
|
|
| 315 |
},
|
| 316 |
{
|
| 317 |
"cell_type": "code",
|
| 318 |
+
"execution_count": 6,
|
| 319 |
"metadata": {
|
| 320 |
"_cell_guid": "5aff1087-a1aa-4771-9b55-625ea9972830",
|
| 321 |
"_uuid": "abf84e40-be86-4593-928d-cca60640dce9",
|
|
|
|
| 337 |
},
|
| 338 |
{
|
| 339 |
"cell_type": "code",
|
| 340 |
+
"execution_count": 7,
|
| 341 |
"metadata": {
|
| 342 |
"_cell_guid": "4c72764b-ed0b-4cb8-80b9-a61ac336468a",
|
| 343 |
"_uuid": "89540180-d48c-4424-8ca4-ff56b7e90846",
|
|
|
|
| 369 |
},
|
| 370 |
{
|
| 371 |
"cell_type": "code",
|
| 372 |
+
"execution_count": 8,
|
| 373 |
"metadata": {
|
| 374 |
"_cell_guid": "f98e293c-33ed-4f62-a5b5-ad94c3002f4d",
|
| 375 |
"_uuid": "5561ce5d-d8df-4649-b27e-9f7936995c82",
|
|
|
|
| 406 |
},
|
| 407 |
{
|
| 408 |
"cell_type": "code",
|
| 409 |
+
"execution_count": null,
|
| 410 |
"metadata": {
|
| 411 |
"_cell_guid": "f3d157fe-bf0f-4dc3-8bc3-1ba2eae83952",
|
| 412 |
"_uuid": "ad56dd21-3dc8-4448-a283-e3fbf29c3bd8",
|
|
|
|
| 421 |
"outputs_hidden": false
|
| 422 |
}
|
| 423 |
},
|
| 424 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 425 |
"source": [
|
| 426 |
"print(process_data({\n",
|
| 427 |
" 'sentences': 'this is a sample review of a movie.',\n",
|
|
|
|
| 431 |
},
|
| 432 |
{
|
| 433 |
"cell_type": "code",
|
| 434 |
+
"execution_count": 9,
|
| 435 |
"metadata": {
|
| 436 |
"_cell_guid": "a18da14f-f5f6-4834-ac49-3f9dbd2ba752",
|
| 437 |
"_uuid": "8e5c355d-f6cf-4430-8dd4-682ac7a3a4f3",
|
|
|
|
| 456 |
},
|
| 457 |
{
|
| 458 |
"cell_type": "code",
|
| 459 |
+
"execution_count": 10,
|
| 460 |
"metadata": {
|
| 461 |
"execution": {
|
| 462 |
"iopub.execute_input": "2023-07-04T03:32:35.667297Z",
|
|
|
|
| 484 |
},
|
| 485 |
{
|
| 486 |
"cell_type": "code",
|
| 487 |
+
"execution_count": 11,
|
| 488 |
"metadata": {
|
| 489 |
"_cell_guid": "a53aa2b1-d4ec-497a-ba1c-143059051090",
|
| 490 |
"_uuid": "3858c27a-ce1d-4195-9b16-d7e459a4aaf0",
|
|
|
|
| 514 |
},
|
| 515 |
{
|
| 516 |
"cell_type": "code",
|
| 517 |
+
"execution_count": 12,
|
| 518 |
"metadata": {
|
| 519 |
"_cell_guid": "6c4dcd43-c77c-481b-bb2b-222b62949079",
|
| 520 |
"_uuid": "7060e586-ac88-4bc5-93b1-ff10eb1f470b",
|
|
|
|
| 550 |
},
|
| 551 |
{
|
| 552 |
"cell_type": "code",
|
| 553 |
+
"execution_count": 13,
|
| 554 |
"metadata": {
|
| 555 |
"_cell_guid": "8ccfbddf-53c0-40ef-ab0f-a16907019abb",
|
| 556 |
"_uuid": "41674a1c-1391-455a-aa3d-d83590aff0ab",
|
|
|
|
| 588 |
},
|
| 589 |
{
|
| 590 |
"cell_type": "code",
|
| 591 |
+
"execution_count": null,
|
| 592 |
"metadata": {
|
| 593 |
"_cell_guid": "45938b6b-455a-4cf4-9ab0-b4f4b76dc344",
|
| 594 |
"_uuid": "fddc048a-36d4-4e8f-a482-68424b79b993",
|
|
|
|
| 610 |
},
|
| 611 |
{
|
| 612 |
"cell_type": "code",
|
| 613 |
+
"execution_count": 14,
|
| 614 |
"metadata": {
|
| 615 |
"_cell_guid": "101a58f9-017b-45ca-8f4e-1437a1147ad5",
|
| 616 |
"_uuid": "2d1d59d1-b5c0-428a-8b53-6453f68765e7",
|
|
|
|
| 630 |
"name": "stderr",
|
| 631 |
"output_type": "stream",
|
| 632 |
"text": [
|
| 633 |
+
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.predictions.transform.dense.bias', 'cls.seq_relationship.weight', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.bias', 'cls.seq_relationship.bias', 'cls.predictions.transform.LayerNorm.weight']\n",
|
| 634 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 635 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 636 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
|
|
| 659 |
},
|
| 660 |
{
|
| 661 |
"cell_type": "code",
|
| 662 |
+
"execution_count": 15,
|
| 663 |
"metadata": {
|
| 664 |
"_cell_guid": "37cc08e3-f74c-4eec-838a-e6426e9f8967",
|
| 665 |
"_uuid": "e0933395-1e3b-4a10-b92e-25b3e2847931",
|
|
|
|
| 680 |
"output_type": "stream",
|
| 681 |
"text": [
|
| 682 |
"Epoch 1/2\n",
|
| 683 |
+
"\u001b[1m25/25\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m74s\u001b[0m 3s/step - accuracy: 0.9873 - loss: 0.1911\n",
|
| 684 |
"Epoch 2/2\n",
|
| 685 |
+
"\u001b[1m25/25\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m72s\u001b[0m 3s/step - accuracy: 1.0000 - loss: 0.0042\n"
|
| 686 |
]
|
| 687 |
},
|
| 688 |
{
|
| 689 |
"data": {
|
| 690 |
"text/plain": [
|
| 691 |
+
"<keras.src.callbacks.history.History at 0x73c93c1135e0>"
|
| 692 |
]
|
| 693 |
},
|
| 694 |
+
"execution_count": 15,
|
| 695 |
"metadata": {},
|
| 696 |
"output_type": "execute_result"
|
| 697 |
}
|
benchmark/tensorflow_10/tensorflow_10_reproduced.ipynb
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
},
|
| 26 |
{
|
| 27 |
"cell_type": "code",
|
| 28 |
-
"execution_count":
|
| 29 |
"metadata": {
|
| 30 |
"_cell_guid": "db36d43e-fbdc-4fc3-8e8a-3f4c7a788b5d",
|
| 31 |
"_uuid": "0d477273-98dd-4a45-97d9-3450116cd27e",
|
|
@@ -154,7 +154,7 @@
|
|
| 154 |
"4 0 0.0 0 "
|
| 155 |
]
|
| 156 |
},
|
| 157 |
-
"execution_count":
|
| 158 |
"metadata": {},
|
| 159 |
"output_type": "execute_result"
|
| 160 |
}
|
|
@@ -214,7 +214,7 @@
|
|
| 214 |
},
|
| 215 |
{
|
| 216 |
"cell_type": "code",
|
| 217 |
-
"execution_count":
|
| 218 |
"metadata": {
|
| 219 |
"_cell_guid": "e4f0ee12-42dd-4437-9445-2b9de59506f0",
|
| 220 |
"_uuid": "04c89e61-f09d-4eb5-9433-22e688897120",
|
|
@@ -238,7 +238,7 @@
|
|
| 238 |
},
|
| 239 |
{
|
| 240 |
"cell_type": "code",
|
| 241 |
-
"execution_count":
|
| 242 |
"metadata": {
|
| 243 |
"_cell_guid": "f3113856-1ca3-49d1-80cf-07c60da185d3",
|
| 244 |
"_uuid": "03dd987b-d612-4b93-a793-07c4b036914f",
|
|
@@ -253,125 +253,7 @@
|
|
| 253 |
"outputs_hidden": false
|
| 254 |
}
|
| 255 |
},
|
| 256 |
-
"outputs": [
|
| 257 |
-
{
|
| 258 |
-
"data": {
|
| 259 |
-
"text/html": [
|
| 260 |
-
"<div>\n",
|
| 261 |
-
"<style scoped>\n",
|
| 262 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 263 |
-
" vertical-align: middle;\n",
|
| 264 |
-
" }\n",
|
| 265 |
-
"\n",
|
| 266 |
-
" .dataframe tbody tr th {\n",
|
| 267 |
-
" vertical-align: top;\n",
|
| 268 |
-
" }\n",
|
| 269 |
-
"\n",
|
| 270 |
-
" .dataframe thead th {\n",
|
| 271 |
-
" text-align: right;\n",
|
| 272 |
-
" }\n",
|
| 273 |
-
"</style>\n",
|
| 274 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 275 |
-
" <thead>\n",
|
| 276 |
-
" <tr style=\"text-align: right;\">\n",
|
| 277 |
-
" <th></th>\n",
|
| 278 |
-
" <th>sentences</th>\n",
|
| 279 |
-
" <th>ADR</th>\n",
|
| 280 |
-
" <th>WD</th>\n",
|
| 281 |
-
" <th>EF</th>\n",
|
| 282 |
-
" <th>INF</th>\n",
|
| 283 |
-
" <th>SSI</th>\n",
|
| 284 |
-
" <th>DI</th>\n",
|
| 285 |
-
" <th>Findings</th>\n",
|
| 286 |
-
" <th>Others</th>\n",
|
| 287 |
-
" </tr>\n",
|
| 288 |
-
" </thead>\n",
|
| 289 |
-
" <tbody>\n",
|
| 290 |
-
" <tr>\n",
|
| 291 |
-
" <th>0</th>\n",
|
| 292 |
-
" <td>extreme weight gain, short-term memory loss, h...</td>\n",
|
| 293 |
-
" <td>1.0</td>\n",
|
| 294 |
-
" <td>0.0</td>\n",
|
| 295 |
-
" <td>0.0</td>\n",
|
| 296 |
-
" <td>0.0</td>\n",
|
| 297 |
-
" <td>0.0</td>\n",
|
| 298 |
-
" <td>0</td>\n",
|
| 299 |
-
" <td>0.0</td>\n",
|
| 300 |
-
" <td>0</td>\n",
|
| 301 |
-
" </tr>\n",
|
| 302 |
-
" <tr>\n",
|
| 303 |
-
" <th>1</th>\n",
|
| 304 |
-
" <td>I am detoxing from Lexapro now.</td>\n",
|
| 305 |
-
" <td>0.0</td>\n",
|
| 306 |
-
" <td>0.0</td>\n",
|
| 307 |
-
" <td>0.0</td>\n",
|
| 308 |
-
" <td>0.0</td>\n",
|
| 309 |
-
" <td>0.0</td>\n",
|
| 310 |
-
" <td>0</td>\n",
|
| 311 |
-
" <td>0.0</td>\n",
|
| 312 |
-
" <td>0</td>\n",
|
| 313 |
-
" </tr>\n",
|
| 314 |
-
" <tr>\n",
|
| 315 |
-
" <th>2</th>\n",
|
| 316 |
-
" <td>I slowly cut my dosage over several months and...</td>\n",
|
| 317 |
-
" <td>0.0</td>\n",
|
| 318 |
-
" <td>0.0</td>\n",
|
| 319 |
-
" <td>0.0</td>\n",
|
| 320 |
-
" <td>0.0</td>\n",
|
| 321 |
-
" <td>0.0</td>\n",
|
| 322 |
-
" <td>0</td>\n",
|
| 323 |
-
" <td>0.0</td>\n",
|
| 324 |
-
" <td>1</td>\n",
|
| 325 |
-
" </tr>\n",
|
| 326 |
-
" <tr>\n",
|
| 327 |
-
" <th>3</th>\n",
|
| 328 |
-
" <td>I am now 10 days completely off and OMG is it ...</td>\n",
|
| 329 |
-
" <td>0.0</td>\n",
|
| 330 |
-
" <td>0.0</td>\n",
|
| 331 |
-
" <td>0.0</td>\n",
|
| 332 |
-
" <td>0.0</td>\n",
|
| 333 |
-
" <td>0.0</td>\n",
|
| 334 |
-
" <td>0</td>\n",
|
| 335 |
-
" <td>0.0</td>\n",
|
| 336 |
-
" <td>1</td>\n",
|
| 337 |
-
" </tr>\n",
|
| 338 |
-
" <tr>\n",
|
| 339 |
-
" <th>4</th>\n",
|
| 340 |
-
" <td>I have flu-like symptoms, dizziness, major moo...</td>\n",
|
| 341 |
-
" <td>0.0</td>\n",
|
| 342 |
-
" <td>1.0</td>\n",
|
| 343 |
-
" <td>0.0</td>\n",
|
| 344 |
-
" <td>0.0</td>\n",
|
| 345 |
-
" <td>0.0</td>\n",
|
| 346 |
-
" <td>0</td>\n",
|
| 347 |
-
" <td>0.0</td>\n",
|
| 348 |
-
" <td>0</td>\n",
|
| 349 |
-
" </tr>\n",
|
| 350 |
-
" </tbody>\n",
|
| 351 |
-
"</table>\n",
|
| 352 |
-
"</div>"
|
| 353 |
-
],
|
| 354 |
-
"text/plain": [
|
| 355 |
-
" sentences ADR WD EF INF SSI \\\n",
|
| 356 |
-
"0 extreme weight gain, short-term memory loss, h... 1.0 0.0 0.0 0.0 0.0 \n",
|
| 357 |
-
"1 I am detoxing from Lexapro now. 0.0 0.0 0.0 0.0 0.0 \n",
|
| 358 |
-
"2 I slowly cut my dosage over several months and... 0.0 0.0 0.0 0.0 0.0 \n",
|
| 359 |
-
"3 I am now 10 days completely off and OMG is it ... 0.0 0.0 0.0 0.0 0.0 \n",
|
| 360 |
-
"4 I have flu-like symptoms, dizziness, major moo... 0.0 1.0 0.0 0.0 0.0 \n",
|
| 361 |
-
"\n",
|
| 362 |
-
" DI Findings Others \n",
|
| 363 |
-
"0 0 0.0 0 \n",
|
| 364 |
-
"1 0 0.0 0 \n",
|
| 365 |
-
"2 0 0.0 1 \n",
|
| 366 |
-
"3 0 0.0 1 \n",
|
| 367 |
-
"4 0 0.0 0 "
|
| 368 |
-
]
|
| 369 |
-
},
|
| 370 |
-
"execution_count": 5,
|
| 371 |
-
"metadata": {},
|
| 372 |
-
"output_type": "execute_result"
|
| 373 |
-
}
|
| 374 |
-
],
|
| 375 |
"source": [
|
| 376 |
"df.head(5)"
|
| 377 |
]
|
|
@@ -388,7 +270,7 @@
|
|
| 388 |
},
|
| 389 |
{
|
| 390 |
"cell_type": "code",
|
| 391 |
-
"execution_count":
|
| 392 |
"metadata": {
|
| 393 |
"_cell_guid": "a1f8d583-8ec8-416d-b08c-c2b8c24376df",
|
| 394 |
"_uuid": "4a8bb12b-86fc-49b0-8390-2e6b44236dad",
|
|
@@ -411,7 +293,7 @@
|
|
| 411 |
},
|
| 412 |
{
|
| 413 |
"cell_type": "code",
|
| 414 |
-
"execution_count":
|
| 415 |
"metadata": {
|
| 416 |
"_cell_guid": "36e6dc50-12d9-4405-8213-a96065630497",
|
| 417 |
"_uuid": "a657ba5a-d433-49a8-b783-35e8070dec7c",
|
|
@@ -433,7 +315,7 @@
|
|
| 433 |
},
|
| 434 |
{
|
| 435 |
"cell_type": "code",
|
| 436 |
-
"execution_count":
|
| 437 |
"metadata": {
|
| 438 |
"_cell_guid": "5aff1087-a1aa-4771-9b55-625ea9972830",
|
| 439 |
"_uuid": "abf84e40-be86-4593-928d-cca60640dce9",
|
|
@@ -455,7 +337,7 @@
|
|
| 455 |
},
|
| 456 |
{
|
| 457 |
"cell_type": "code",
|
| 458 |
-
"execution_count":
|
| 459 |
"metadata": {
|
| 460 |
"_cell_guid": "4c72764b-ed0b-4cb8-80b9-a61ac336468a",
|
| 461 |
"_uuid": "89540180-d48c-4424-8ca4-ff56b7e90846",
|
|
@@ -487,7 +369,7 @@
|
|
| 487 |
},
|
| 488 |
{
|
| 489 |
"cell_type": "code",
|
| 490 |
-
"execution_count":
|
| 491 |
"metadata": {
|
| 492 |
"_cell_guid": "f98e293c-33ed-4f62-a5b5-ad94c3002f4d",
|
| 493 |
"_uuid": "5561ce5d-d8df-4649-b27e-9f7936995c82",
|
|
@@ -524,7 +406,7 @@
|
|
| 524 |
},
|
| 525 |
{
|
| 526 |
"cell_type": "code",
|
| 527 |
-
"execution_count":
|
| 528 |
"metadata": {
|
| 529 |
"_cell_guid": "f3d157fe-bf0f-4dc3-8bc3-1ba2eae83952",
|
| 530 |
"_uuid": "ad56dd21-3dc8-4448-a283-e3fbf29c3bd8",
|
|
@@ -539,15 +421,7 @@
|
|
| 539 |
"outputs_hidden": false
|
| 540 |
}
|
| 541 |
},
|
| 542 |
-
"outputs": [
|
| 543 |
-
{
|
| 544 |
-
"name": "stdout",
|
| 545 |
-
"output_type": "stream",
|
| 546 |
-
"text": [
|
| 547 |
-
"{'input_ids': [101, 2023, 2003, 1037, 7099, 3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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'label': 1, 'text': 'this is a sample review of a movie.'}\n"
|
| 548 |
-
]
|
| 549 |
-
}
|
| 550 |
-
],
|
| 551 |
"source": [
|
| 552 |
"print(process_data({\n",
|
| 553 |
" 'sentences': 'this is a sample review of a movie.',\n",
|
|
@@ -557,7 +431,7 @@
|
|
| 557 |
},
|
| 558 |
{
|
| 559 |
"cell_type": "code",
|
| 560 |
-
"execution_count":
|
| 561 |
"metadata": {
|
| 562 |
"_cell_guid": "a18da14f-f5f6-4834-ac49-3f9dbd2ba752",
|
| 563 |
"_uuid": "8e5c355d-f6cf-4430-8dd4-682ac7a3a4f3",
|
|
@@ -582,7 +456,7 @@
|
|
| 582 |
},
|
| 583 |
{
|
| 584 |
"cell_type": "code",
|
| 585 |
-
"execution_count":
|
| 586 |
"metadata": {
|
| 587 |
"execution": {
|
| 588 |
"iopub.execute_input": "2023-07-04T03:32:35.667297Z",
|
|
@@ -610,7 +484,7 @@
|
|
| 610 |
},
|
| 611 |
{
|
| 612 |
"cell_type": "code",
|
| 613 |
-
"execution_count":
|
| 614 |
"metadata": {
|
| 615 |
"_cell_guid": "a53aa2b1-d4ec-497a-ba1c-143059051090",
|
| 616 |
"_uuid": "3858c27a-ce1d-4195-9b16-d7e459a4aaf0",
|
|
@@ -640,7 +514,7 @@
|
|
| 640 |
},
|
| 641 |
{
|
| 642 |
"cell_type": "code",
|
| 643 |
-
"execution_count":
|
| 644 |
"metadata": {
|
| 645 |
"_cell_guid": "6c4dcd43-c77c-481b-bb2b-222b62949079",
|
| 646 |
"_uuid": "7060e586-ac88-4bc5-93b1-ff10eb1f470b",
|
|
@@ -676,7 +550,7 @@
|
|
| 676 |
},
|
| 677 |
{
|
| 678 |
"cell_type": "code",
|
| 679 |
-
"execution_count":
|
| 680 |
"metadata": {
|
| 681 |
"_cell_guid": "8ccfbddf-53c0-40ef-ab0f-a16907019abb",
|
| 682 |
"_uuid": "41674a1c-1391-455a-aa3d-d83590aff0ab",
|
|
@@ -712,7 +586,7 @@
|
|
| 712 |
},
|
| 713 |
{
|
| 714 |
"cell_type": "code",
|
| 715 |
-
"execution_count":
|
| 716 |
"metadata": {
|
| 717 |
"_cell_guid": "45938b6b-455a-4cf4-9ab0-b4f4b76dc344",
|
| 718 |
"_uuid": "fddc048a-36d4-4e8f-a482-68424b79b993",
|
|
@@ -734,7 +608,7 @@
|
|
| 734 |
},
|
| 735 |
{
|
| 736 |
"cell_type": "code",
|
| 737 |
-
"execution_count":
|
| 738 |
"metadata": {
|
| 739 |
"_cell_guid": "101a58f9-017b-45ca-8f4e-1437a1147ad5",
|
| 740 |
"_uuid": "2d1d59d1-b5c0-428a-8b53-6453f68765e7",
|
|
@@ -754,7 +628,7 @@
|
|
| 754 |
"name": "stderr",
|
| 755 |
"output_type": "stream",
|
| 756 |
"text": [
|
| 757 |
-
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.predictions.transform.LayerNorm.bias', 'cls.predictions.bias', 'cls.seq_relationship.weight', 'cls.predictions.transform.dense.
|
| 758 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 759 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 760 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
@@ -771,7 +645,7 @@
|
|
| 771 |
},
|
| 772 |
{
|
| 773 |
"cell_type": "code",
|
| 774 |
-
"execution_count":
|
| 775 |
"metadata": {
|
| 776 |
"_cell_guid": "37cc08e3-f74c-4eec-838a-e6426e9f8967",
|
| 777 |
"_uuid": "e0933395-1e3b-4a10-b92e-25b3e2847931",
|
|
@@ -795,24 +669,16 @@
|
|
| 795 |
]
|
| 796 |
},
|
| 797 |
{
|
| 798 |
-
"ename": "
|
| 799 |
-
"evalue": "in user code:\n\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1284, in train_function *\n return step_function(self, iterator)\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1268, in step_function **\n outputs = model.distribute_strategy.run(run_step, args=(data,))\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1249, in run_step **\n outputs = model.train_step(data)\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1050, in train_step\n y_pred = self(x, training=True)\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_file_7qcj_31.py\", line 10, in tf__call\n outputs = ag__.converted_call(ag__.ld(self).model, (ag__.ld(inputs),), dict(**ag__.ld(kwargs)), fscope)\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_filei01ktml5.py\", line 31, in tf__call\n outputs = ag__.converted_call(ag__.ld(self).bert, (), dict(input_ids=ag__.ld(input_ids), attention_mask=ag__.ld(attention_mask), token_type_ids=ag__.ld(token_type_ids), position_ids=ag__.ld(position_ids), head_mask=ag__.ld(head_mask), inputs_embeds=ag__.ld(inputs_embeds), encoder_hidden_states=ag__.ld(encoder_hidden_states), encoder_attention_mask=ag__.ld(encoder_attention_mask), past_key_values=ag__.ld(past_key_values), use_cache=ag__.ld(use_cache), output_attentions=ag__.ld(output_attentions), output_hidden_states=ag__.ld(output_hidden_states), return_dict=ag__.ld(return_dict), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_file8w9ibu71.py\", line 127, in tf__call\n embedding_output = ag__.converted_call(ag__.ld(self).embeddings, (), dict(input_ids=ag__.ld(input_ids), position_ids=ag__.ld(position_ids), token_type_ids=ag__.ld(token_type_ids), inputs_embeds=ag__.ld(inputs_embeds), past_key_values_length=ag__.ld(past_key_values_length), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n\n TypeError: Exception encountered when calling layer 'hugging_face_layer_3' (type HuggingFaceLayer).\n \n in user code:\n \n File \"/tmp/ipykernel_32/1009480242.py\", line 14, in call *\n outputs = self.model(inputs, **kwargs)\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler **\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_filei01ktml5.py\", line 31, in tf__call\n outputs = ag__.converted_call(ag__.ld(self).bert, (), dict(input_ids=ag__.ld(input_ids), attention_mask=ag__.ld(attention_mask), token_type_ids=ag__.ld(token_type_ids), position_ids=ag__.ld(position_ids), head_mask=ag__.ld(head_mask), inputs_embeds=ag__.ld(inputs_embeds), encoder_hidden_states=ag__.ld(encoder_hidden_states), encoder_attention_mask=ag__.ld(encoder_attention_mask), past_key_values=ag__.ld(past_key_values), use_cache=ag__.ld(use_cache), output_attentions=ag__.ld(output_attentions), output_hidden_states=ag__.ld(output_hidden_states), return_dict=ag__.ld(return_dict), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_file8w9ibu71.py\", line 127, in tf__call\n embedding_output = ag__.converted_call(ag__.ld(self).embeddings, (), dict(input_ids=ag__.ld(input_ids), position_ids=ag__.ld(position_ids), token_type_ids=ag__.ld(token_type_ids), inputs_embeds=ag__.ld(inputs_embeds), past_key_values_length=ag__.ld(past_key_values_length), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n \n TypeError: Exception encountered when calling layer 'tf_bert_model_3' (type TFBertModel).\n \n in user code:\n \n File \"/opt/conda/lib/python3.10/site-packages/transformers/modeling_tf_utils.py\", line 1061, in run_call_with_unpacked_inputs *\n return func(self, **unpacked_inputs)\n File \"/opt/conda/lib/python3.10/site-packages/transformers/models/bert/modeling_tf_bert.py\", line 1088, in call *\n outputs = self.bert(\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler **\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_file8w9ibu71.py\", line 127, in tf__call\n embedding_output = ag__.converted_call(ag__.ld(self).embeddings, (), dict(input_ids=ag__.ld(input_ids), position_ids=ag__.ld(position_ids), token_type_ids=ag__.ld(token_type_ids), inputs_embeds=ag__.ld(inputs_embeds), past_key_values_length=ag__.ld(past_key_values_length), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n \n TypeError: Exception encountered when calling layer 'bert' (type TFBertMainLayer).\n \n in user code:\n \n File \"/opt/conda/lib/python3.10/site-packages/transformers/modeling_tf_utils.py\", line 1061, in run_call_with_unpacked_inputs *\n return func(self, **unpacked_inputs)\n File \"/opt/conda/lib/python3.10/site-packages/transformers/models/bert/modeling_tf_bert.py\", line 780, in call *\n embedding_output = self.embeddings(\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler **\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n \n TypeError: Exception encountered when calling layer 'embeddings' (type TFBertEmbeddings).\n \n in user code:\n \n File \"/opt/conda/lib/python3.10/site-packages/transformers/models/bert/modeling_tf_bert.py\", line 202, in call *\n check_embeddings_within_bounds(input_ids, self.config.vocab_size)\n File \"/opt/conda/lib/python3.10/site-packages/transformers/tf_utils.py\", line 161, in check_embeddings_within_bounds *\n tf.debugging.assert_less(\n \n TypeError: Value passed to parameter 'input' has DataType string not in list of allowed values: float32, float64, int32, uint8, int16, int8, int64, bfloat16, uint16, float16, uint32, uint64, qint8, quint8, qint32, qint16, quint16\n \n \n Call arguments received by layer 'embeddings' (type TFBertEmbeddings):\n • input_ids=tf.Tensor(shape=(None, 1), dtype=string)\n • position_ids=None\n • token_type_ids=tf.Tensor(shape=(None, 1), dtype=int32)\n • inputs_embeds=None\n • past_key_values_length=0\n • training=True\n \n \n Call arguments received by layer 'bert' (type TFBertMainLayer):\n • input_ids=tf.Tensor(shape=(None, 1), dtype=string)\n • attention_mask=None\n • token_type_ids=None\n • position_ids=None\n • head_mask=None\n • inputs_embeds=None\n • encoder_hidden_states=None\n • encoder_attention_mask=None\n • past_key_values=None\n • use_cache=True\n • output_attentions=False\n • output_hidden_states=False\n • return_dict=True\n • training=True\n \n \n Call arguments received by layer 'tf_bert_model_3' (type TFBertModel):\n • input_ids=tf.Tensor(shape=(None, 1), dtype=string)\n • attention_mask=None\n • token_type_ids=None\n • position_ids=None\n • head_mask=None\n • inputs_embeds=None\n • encoder_hidden_states=None\n • encoder_attention_mask=None\n • past_key_values=None\n • use_cache=None\n • output_attentions=None\n • output_hidden_states=None\n • return_dict=None\n • training=True\n \n \n Call arguments received by layer 'hugging_face_layer_3' (type HuggingFaceLayer):\n • inputs=tf.Tensor(shape=(None, 1), dtype=string)\n • kwargs={'training': 'True'}\n",
|
| 800 |
"output_type": "error",
|
| 801 |
"traceback": [
|
| 802 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 803 |
-
"\u001b[0;
|
| 804 |
-
"
|
| 805 |
-
"
|
| 806 |
-
"
|
| 807 |
-
"
|
| 808 |
-
"File \u001b[0;32m/tmp/__autograph_generated_file4cxfdhhw.py:37\u001b[0m, in \u001b[0;36mouter_factory.<locals>.inner_factory.<locals>.tf__run_call_with_unpacked_inputs\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 35\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 36\u001b[0m do_return \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[0;32m---> 37\u001b[0m retval_ \u001b[38;5;241m=\u001b[39m ag__\u001b[38;5;241m.\u001b[39mconverted_call(ag__\u001b[38;5;241m.\u001b[39mld(func), (ag__\u001b[38;5;241m.\u001b[39mld(\u001b[38;5;28mself\u001b[39m),), \u001b[38;5;28mdict\u001b[39m(\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mag__\u001b[38;5;241m.\u001b[39mld(unpacked_inputs)), fscope)\n\u001b[1;32m 38\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m:\n\u001b[1;32m 39\u001b[0m do_return \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m\n",
|
| 809 |
-
"File \u001b[0;32m/tmp/__autograph_generated_filei01ktml5.py:31\u001b[0m, in \u001b[0;36mouter_factory.<locals>.inner_factory.<locals>.tf__call\u001b[0;34m(self, input_ids, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, encoder_hidden_states, encoder_attention_mask, past_key_values, use_cache, output_attentions, output_hidden_states, return_dict, training)\u001b[0m\n\u001b[1;32m 29\u001b[0m do_return \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m\n\u001b[1;32m 30\u001b[0m retval_ \u001b[38;5;241m=\u001b[39m ag__\u001b[38;5;241m.\u001b[39mUndefinedReturnValue()\n\u001b[0;32m---> 31\u001b[0m outputs \u001b[38;5;241m=\u001b[39m \u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconverted_call\u001b[49m\u001b[43m(\u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbert\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mdict\u001b[39;49m\u001b[43m(\u001b[49m\u001b[43minput_ids\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43minput_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mattention_mask\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mattention_mask\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtoken_type_ids\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtoken_type_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mposition_ids\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mposition_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mhead_mask\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhead_mask\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43minputs_embeds\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43minputs_embeds\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mencoder_hidden_states\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mencoder_hidden_states\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mencoder_attention_mask\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mencoder_attention_mask\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpast_key_values\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mpast_key_values\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43muse_cache\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43muse_cache\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43moutput_attentions\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43moutput_attentions\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43moutput_hidden_states\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43moutput_hidden_states\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mreturn_dict\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mreturn_dict\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtraining\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtraining\u001b[49m\u001b[43m)\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfscope\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 32\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 33\u001b[0m do_return \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n",
|
| 810 |
-
"File \u001b[0;32m/tmp/__autograph_generated_file4cxfdhhw.py:37\u001b[0m, in \u001b[0;36mouter_factory.<locals>.inner_factory.<locals>.tf__run_call_with_unpacked_inputs\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 35\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 36\u001b[0m do_return \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[0;32m---> 37\u001b[0m retval_ \u001b[38;5;241m=\u001b[39m ag__\u001b[38;5;241m.\u001b[39mconverted_call(ag__\u001b[38;5;241m.\u001b[39mld(func), (ag__\u001b[38;5;241m.\u001b[39mld(\u001b[38;5;28mself\u001b[39m),), \u001b[38;5;28mdict\u001b[39m(\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mag__\u001b[38;5;241m.\u001b[39mld(unpacked_inputs)), fscope)\n\u001b[1;32m 38\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m:\n\u001b[1;32m 39\u001b[0m do_return \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m\n",
|
| 811 |
-
"File \u001b[0;32m/tmp/__autograph_generated_file8w9ibu71.py:127\u001b[0m, in \u001b[0;36mouter_factory.<locals>.inner_factory.<locals>.tf__call\u001b[0;34m(self, input_ids, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, encoder_hidden_states, encoder_attention_mask, past_key_values, use_cache, output_attentions, output_hidden_states, return_dict, training)\u001b[0m\n\u001b[1;32m 125\u001b[0m \u001b[38;5;28;01mpass\u001b[39;00m\n\u001b[1;32m 126\u001b[0m ag__\u001b[38;5;241m.\u001b[39mif_stmt(ag__\u001b[38;5;241m.\u001b[39mld(token_type_ids) \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m, if_body_6, else_body_6, get_state_6, set_state_6, (\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mtoken_type_ids\u001b[39m\u001b[38;5;124m'\u001b[39m,), \u001b[38;5;241m1\u001b[39m)\n\u001b[0;32m--> 127\u001b[0m embedding_output \u001b[38;5;241m=\u001b[39m \u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconverted_call\u001b[49m\u001b[43m(\u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43membeddings\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mdict\u001b[39;49m\u001b[43m(\u001b[49m\u001b[43minput_ids\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43minput_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mposition_ids\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mposition_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtoken_type_ids\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtoken_type_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43minputs_embeds\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43minputs_embeds\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpast_key_values_length\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mpast_key_values_length\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtraining\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtraining\u001b[49m\u001b[43m)\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfscope\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 128\u001b[0m attention_mask_shape \u001b[38;5;241m=\u001b[39m ag__\u001b[38;5;241m.\u001b[39mconverted_call(ag__\u001b[38;5;241m.\u001b[39mld(shape_list), (ag__\u001b[38;5;241m.\u001b[39mld(attention_mask),), \u001b[38;5;28;01mNone\u001b[39;00m, fscope)\n\u001b[1;32m 129\u001b[0m mask_seq_length \u001b[38;5;241m=\u001b[39m ag__\u001b[38;5;241m.\u001b[39mld(seq_length) \u001b[38;5;241m+\u001b[39m ag__\u001b[38;5;241m.\u001b[39mld(past_key_values_length)\n",
|
| 812 |
-
"File \u001b[0;32m/tmp/__autograph_generated_filev0vda2ze.py:46\u001b[0m, in \u001b[0;36mouter_factory.<locals>.inner_factory.<locals>.tf__call\u001b[0;34m(self, input_ids, position_ids, token_type_ids, inputs_embeds, past_key_values_length, training)\u001b[0m\n\u001b[1;32m 44\u001b[0m \u001b[38;5;28;01mnonlocal\u001b[39;00m inputs_embeds\n\u001b[1;32m 45\u001b[0m \u001b[38;5;28;01mpass\u001b[39;00m\n\u001b[0;32m---> 46\u001b[0m \u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mif_stmt\u001b[49m\u001b[43m(\u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43minput_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;129;43;01mis\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[38;5;129;43;01mnot\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mif_body_1\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43melse_body_1\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mget_state_1\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mset_state_1\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43minputs_embeds\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m1\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 47\u001b[0m input_shape \u001b[38;5;241m=\u001b[39m ag__\u001b[38;5;241m.\u001b[39mconverted_call(ag__\u001b[38;5;241m.\u001b[39mld(shape_list), (ag__\u001b[38;5;241m.\u001b[39mld(inputs_embeds),), \u001b[38;5;28;01mNone\u001b[39;00m, fscope)[:\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m1\u001b[39m]\n\u001b[1;32m 49\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mget_state_2\u001b[39m():\n",
|
| 813 |
-
"File \u001b[0;32m/tmp/__autograph_generated_filev0vda2ze.py:40\u001b[0m, in \u001b[0;36mouter_factory.<locals>.inner_factory.<locals>.tf__call.<locals>.if_body_1\u001b[0;34m()\u001b[0m\n\u001b[1;32m 38\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mif_body_1\u001b[39m():\n\u001b[1;32m 39\u001b[0m \u001b[38;5;28;01mnonlocal\u001b[39;00m inputs_embeds\n\u001b[0;32m---> 40\u001b[0m \u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconverted_call\u001b[49m\u001b[43m(\u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mcheck_embeddings_within_bounds\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43minput_ids\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconfig\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mvocab_size\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfscope\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 41\u001b[0m inputs_embeds \u001b[38;5;241m=\u001b[39m ag__\u001b[38;5;241m.\u001b[39mconverted_call(ag__\u001b[38;5;241m.\u001b[39mld(tf)\u001b[38;5;241m.\u001b[39mgather, (), \u001b[38;5;28mdict\u001b[39m(params\u001b[38;5;241m=\u001b[39mag__\u001b[38;5;241m.\u001b[39mld(\u001b[38;5;28mself\u001b[39m)\u001b[38;5;241m.\u001b[39mweight, indices\u001b[38;5;241m=\u001b[39mag__\u001b[38;5;241m.\u001b[39mld(input_ids)), fscope)\n",
|
| 814 |
-
"File \u001b[0;32m/tmp/__autograph_generated_file29zlsorl.py:17\u001b[0m, in \u001b[0;36mouter_factory.<locals>.inner_factory.<locals>.tf__check_embeddings_within_bounds\u001b[0;34m(tensor, embed_dim, tensor_name)\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m 8\u001b[0m \u001b[38;5;124;03m`tf.gather`, on which TF embedding layers are based, won't check positive out of bound indices on GPU, returning\u001b[39;00m\n\u001b[1;32m 9\u001b[0m \u001b[38;5;124;03mzeros instead. This function adds a check against that dangerous silent behavior.\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[38;5;124;03m tensor_name (`str`, *optional*): The name of the tensor to use in the error message.\u001b[39;00m\n\u001b[1;32m 15\u001b[0m \u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m 16\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m ag__\u001b[38;5;241m.\u001b[39mFunctionScope(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mcheck_embeddings_within_bounds\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mfscope\u001b[39m\u001b[38;5;124m'\u001b[39m, ag__\u001b[38;5;241m.\u001b[39mSTD) \u001b[38;5;28;01mas\u001b[39;00m fscope:\n\u001b[0;32m---> 17\u001b[0m ag__\u001b[38;5;241m.\u001b[39mconverted_call(ag__\u001b[38;5;241m.\u001b[39mld(tf)\u001b[38;5;241m.\u001b[39mdebugging\u001b[38;5;241m.\u001b[39massert_less, (ag__\u001b[38;5;241m.\u001b[39mld(tensor), ag__\u001b[38;5;241m.\u001b[39mconverted_call(ag__\u001b[38;5;241m.\u001b[39mld(tf)\u001b[38;5;241m.\u001b[39mcast, (ag__\u001b[38;5;241m.\u001b[39mld(embed_dim),), \u001b[38;5;28mdict\u001b[39m(dtype\u001b[38;5;241m=\u001b[39mag__\u001b[38;5;241m.\u001b[39mld(tensor)\u001b[38;5;241m.\u001b[39mdtype), fscope)), \u001b[38;5;28mdict\u001b[39m(message\u001b[38;5;241m=\u001b[39m\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mThe maximum value of \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mag__\u001b[38;5;241m.\u001b[39mld(tensor_name)\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m (\u001b[39m\u001b[38;5;132;01m{\u001b[39;00m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconverted_call\u001b[49m\u001b[43m(\u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtf\u001b[49m\u001b[43m)\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmath\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mreduce_max\u001b[49m\u001b[43m,\u001b[49m\u001b[38;5;250;43m \u001b[39;49m\u001b[43m(\u001b[49m\u001b[43mag__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mld\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtensor\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[38;5;250;43m \u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[38;5;250;43m \u001b[39;49m\u001b[43mfscope\u001b[49m\u001b[43m)\u001b[49m\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m) must be smaller than the embedding layer\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124ms input dimension (\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mag__\u001b[38;5;241m.\u001b[39mld(embed_dim)\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m). The likely cause is some problem at tokenization time.\u001b[39m\u001b[38;5;124m\"\u001b[39m), fscope)\n",
|
| 815 |
-
"\u001b[0;31mTypeError\u001b[0m: in user code:\n\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1284, in train_function *\n return step_function(self, iterator)\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1268, in step_function **\n outputs = model.distribute_strategy.run(run_step, args=(data,))\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1249, in run_step **\n outputs = model.train_step(data)\n File \"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py\", line 1050, in train_step\n y_pred = self(x, training=True)\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_file_7qcj_31.py\", line 10, in tf__call\n outputs = ag__.converted_call(ag__.ld(self).model, (ag__.ld(inputs),), dict(**ag__.ld(kwargs)), fscope)\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_filei01ktml5.py\", line 31, in tf__call\n outputs = ag__.converted_call(ag__.ld(self).bert, (), dict(input_ids=ag__.ld(input_ids), attention_mask=ag__.ld(attention_mask), token_type_ids=ag__.ld(token_type_ids), position_ids=ag__.ld(position_ids), head_mask=ag__.ld(head_mask), inputs_embeds=ag__.ld(inputs_embeds), encoder_hidden_states=ag__.ld(encoder_hidden_states), encoder_attention_mask=ag__.ld(encoder_attention_mask), past_key_values=ag__.ld(past_key_values), use_cache=ag__.ld(use_cache), output_attentions=ag__.ld(output_attentions), output_hidden_states=ag__.ld(output_hidden_states), return_dict=ag__.ld(return_dict), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_file8w9ibu71.py\", line 127, in tf__call\n embedding_output = ag__.converted_call(ag__.ld(self).embeddings, (), dict(input_ids=ag__.ld(input_ids), position_ids=ag__.ld(position_ids), token_type_ids=ag__.ld(token_type_ids), inputs_embeds=ag__.ld(inputs_embeds), past_key_values_length=ag__.ld(past_key_values_length), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n\n TypeError: Exception encountered when calling layer 'hugging_face_layer_3' (type HuggingFaceLayer).\n \n in user code:\n \n File \"/tmp/ipykernel_32/1009480242.py\", line 14, in call *\n outputs = self.model(inputs, **kwargs)\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler **\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_filei01ktml5.py\", line 31, in tf__call\n outputs = ag__.converted_call(ag__.ld(self).bert, (), dict(input_ids=ag__.ld(input_ids), attention_mask=ag__.ld(attention_mask), token_type_ids=ag__.ld(token_type_ids), position_ids=ag__.ld(position_ids), head_mask=ag__.ld(head_mask), inputs_embeds=ag__.ld(inputs_embeds), encoder_hidden_states=ag__.ld(encoder_hidden_states), encoder_attention_mask=ag__.ld(encoder_attention_mask), past_key_values=ag__.ld(past_key_values), use_cache=ag__.ld(use_cache), output_attentions=ag__.ld(output_attentions), output_hidden_states=ag__.ld(output_hidden_states), return_dict=ag__.ld(return_dict), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_file8w9ibu71.py\", line 127, in tf__call\n embedding_output = ag__.converted_call(ag__.ld(self).embeddings, (), dict(input_ids=ag__.ld(input_ids), position_ids=ag__.ld(position_ids), token_type_ids=ag__.ld(token_type_ids), inputs_embeds=ag__.ld(inputs_embeds), past_key_values_length=ag__.ld(past_key_values_length), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n \n TypeError: Exception encountered when calling layer 'tf_bert_model_3' (type TFBertModel).\n \n in user code:\n \n File \"/opt/conda/lib/python3.10/site-packages/transformers/modeling_tf_utils.py\", line 1061, in run_call_with_unpacked_inputs *\n return func(self, **unpacked_inputs)\n File \"/opt/conda/lib/python3.10/site-packages/transformers/models/bert/modeling_tf_bert.py\", line 1088, in call *\n outputs = self.bert(\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler **\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_file4cxfdhhw.py\", line 37, in tf__run_call_with_unpacked_inputs\n retval_ = ag__.converted_call(ag__.ld(func), (ag__.ld(self),), dict(**ag__.ld(unpacked_inputs)), fscope)\n File \"/tmp/__autograph_generated_file8w9ibu71.py\", line 127, in tf__call\n embedding_output = ag__.converted_call(ag__.ld(self).embeddings, (), dict(input_ids=ag__.ld(input_ids), position_ids=ag__.ld(position_ids), token_type_ids=ag__.ld(token_type_ids), inputs_embeds=ag__.ld(inputs_embeds), past_key_values_length=ag__.ld(past_key_values_length), training=ag__.ld(training)), fscope)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n \n TypeError: Exception encountered when calling layer 'bert' (type TFBertMainLayer).\n \n in user code:\n \n File \"/opt/conda/lib/python3.10/site-packages/transformers/modeling_tf_utils.py\", line 1061, in run_call_with_unpacked_inputs *\n return func(self, **unpacked_inputs)\n File \"/opt/conda/lib/python3.10/site-packages/transformers/models/bert/modeling_tf_bert.py\", line 780, in call *\n embedding_output = self.embeddings(\n File \"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler **\n raise e.with_traceback(filtered_tb) from None\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 46, in tf__call\n ag__.if_stmt(ag__.ld(input_ids) is not None, if_body_1, else_body_1, get_state_1, set_state_1, ('inputs_embeds',), 1)\n File \"/tmp/__autograph_generated_filev0vda2ze.py\", line 40, in if_body_1\n ag__.converted_call(ag__.ld(check_embeddings_within_bounds), (ag__.ld(input_ids), ag__.ld(self).config.vocab_size), None, fscope)\n File \"/tmp/__autograph_generated_file29zlsorl.py\", line 17, in tf__check_embeddings_within_bounds\n ag__.converted_call(ag__.ld(tf).debugging.assert_less, (ag__.ld(tensor), ag__.converted_call(ag__.ld(tf).cast, (ag__.ld(embed_dim),), dict(dtype=ag__.ld(tensor).dtype), fscope)), dict(message=f\"The maximum value of {ag__.ld(tensor_name)} ({ag__.converted_call(ag__.ld(tf).math.reduce_max, (ag__.ld(tensor),), None, fscope)}) must be smaller than the embedding layer's input dimension ({ag__.ld(embed_dim)}). The likely cause is some problem at tokenization time.\"), fscope)\n \n TypeError: Exception encountered when calling layer 'embeddings' (type TFBertEmbeddings).\n \n in user code:\n \n File \"/opt/conda/lib/python3.10/site-packages/transformers/models/bert/modeling_tf_bert.py\", line 202, in call *\n check_embeddings_within_bounds(input_ids, self.config.vocab_size)\n File \"/opt/conda/lib/python3.10/site-packages/transformers/tf_utils.py\", line 161, in check_embeddings_within_bounds *\n tf.debugging.assert_less(\n \n TypeError: Value passed to parameter 'input' has DataType string not in list of allowed values: float32, float64, int32, uint8, int16, int8, int64, bfloat16, uint16, float16, uint32, uint64, qint8, quint8, qint32, qint16, quint16\n \n \n Call arguments received by layer 'embeddings' (type TFBertEmbeddings):\n • input_ids=tf.Tensor(shape=(None, 1), dtype=string)\n • position_ids=None\n • token_type_ids=tf.Tensor(shape=(None, 1), dtype=int32)\n • inputs_embeds=None\n • past_key_values_length=0\n • training=True\n \n \n Call arguments received by layer 'bert' (type TFBertMainLayer):\n • input_ids=tf.Tensor(shape=(None, 1), dtype=string)\n • attention_mask=None\n • token_type_ids=None\n • position_ids=None\n • head_mask=None\n • inputs_embeds=None\n • encoder_hidden_states=None\n • encoder_attention_mask=None\n • past_key_values=None\n • use_cache=True\n • output_attentions=False\n • output_hidden_states=False\n • return_dict=True\n • training=True\n \n \n Call arguments received by layer 'tf_bert_model_3' (type TFBertModel):\n • input_ids=tf.Tensor(shape=(None, 1), dtype=string)\n • attention_mask=None\n • token_type_ids=None\n • position_ids=None\n • head_mask=None\n • inputs_embeds=None\n • encoder_hidden_states=None\n • encoder_attention_mask=None\n • past_key_values=None\n • use_cache=None\n • output_attentions=None\n • output_hidden_states=None\n • return_dict=None\n • training=True\n \n \n Call arguments received by layer 'hugging_face_layer_3' (type HuggingFaceLayer):\n • inputs=tf.Tensor(shape=(None, 1), dtype=string)\n • kwargs={'training': 'True'}\n"
|
| 816 |
]
|
| 817 |
}
|
| 818 |
],
|
|
@@ -822,13 +688,6 @@
|
|
| 822 |
"model.fit(train_data, train_labels, epochs=10)"
|
| 823 |
]
|
| 824 |
},
|
| 825 |
-
{
|
| 826 |
-
"cell_type": "code",
|
| 827 |
-
"execution_count": null,
|
| 828 |
-
"metadata": {},
|
| 829 |
-
"outputs": [],
|
| 830 |
-
"source": []
|
| 831 |
-
},
|
| 832 |
{
|
| 833 |
"cell_type": "code",
|
| 834 |
"execution_count": null,
|
|
|
|
| 25 |
},
|
| 26 |
{
|
| 27 |
"cell_type": "code",
|
| 28 |
+
"execution_count": 2,
|
| 29 |
"metadata": {
|
| 30 |
"_cell_guid": "db36d43e-fbdc-4fc3-8e8a-3f4c7a788b5d",
|
| 31 |
"_uuid": "0d477273-98dd-4a45-97d9-3450116cd27e",
|
|
|
|
| 154 |
"4 0 0.0 0 "
|
| 155 |
]
|
| 156 |
},
|
| 157 |
+
"execution_count": 2,
|
| 158 |
"metadata": {},
|
| 159 |
"output_type": "execute_result"
|
| 160 |
}
|
|
|
|
| 214 |
},
|
| 215 |
{
|
| 216 |
"cell_type": "code",
|
| 217 |
+
"execution_count": 3,
|
| 218 |
"metadata": {
|
| 219 |
"_cell_guid": "e4f0ee12-42dd-4437-9445-2b9de59506f0",
|
| 220 |
"_uuid": "04c89e61-f09d-4eb5-9433-22e688897120",
|
|
|
|
| 238 |
},
|
| 239 |
{
|
| 240 |
"cell_type": "code",
|
| 241 |
+
"execution_count": null,
|
| 242 |
"metadata": {
|
| 243 |
"_cell_guid": "f3113856-1ca3-49d1-80cf-07c60da185d3",
|
| 244 |
"_uuid": "03dd987b-d612-4b93-a793-07c4b036914f",
|
|
|
|
| 253 |
"outputs_hidden": false
|
| 254 |
}
|
| 255 |
},
|
| 256 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
"source": [
|
| 258 |
"df.head(5)"
|
| 259 |
]
|
|
|
|
| 270 |
},
|
| 271 |
{
|
| 272 |
"cell_type": "code",
|
| 273 |
+
"execution_count": 4,
|
| 274 |
"metadata": {
|
| 275 |
"_cell_guid": "a1f8d583-8ec8-416d-b08c-c2b8c24376df",
|
| 276 |
"_uuid": "4a8bb12b-86fc-49b0-8390-2e6b44236dad",
|
|
|
|
| 293 |
},
|
| 294 |
{
|
| 295 |
"cell_type": "code",
|
| 296 |
+
"execution_count": 5,
|
| 297 |
"metadata": {
|
| 298 |
"_cell_guid": "36e6dc50-12d9-4405-8213-a96065630497",
|
| 299 |
"_uuid": "a657ba5a-d433-49a8-b783-35e8070dec7c",
|
|
|
|
| 315 |
},
|
| 316 |
{
|
| 317 |
"cell_type": "code",
|
| 318 |
+
"execution_count": 6,
|
| 319 |
"metadata": {
|
| 320 |
"_cell_guid": "5aff1087-a1aa-4771-9b55-625ea9972830",
|
| 321 |
"_uuid": "abf84e40-be86-4593-928d-cca60640dce9",
|
|
|
|
| 337 |
},
|
| 338 |
{
|
| 339 |
"cell_type": "code",
|
| 340 |
+
"execution_count": 7,
|
| 341 |
"metadata": {
|
| 342 |
"_cell_guid": "4c72764b-ed0b-4cb8-80b9-a61ac336468a",
|
| 343 |
"_uuid": "89540180-d48c-4424-8ca4-ff56b7e90846",
|
|
|
|
| 369 |
},
|
| 370 |
{
|
| 371 |
"cell_type": "code",
|
| 372 |
+
"execution_count": 8,
|
| 373 |
"metadata": {
|
| 374 |
"_cell_guid": "f98e293c-33ed-4f62-a5b5-ad94c3002f4d",
|
| 375 |
"_uuid": "5561ce5d-d8df-4649-b27e-9f7936995c82",
|
|
|
|
| 406 |
},
|
| 407 |
{
|
| 408 |
"cell_type": "code",
|
| 409 |
+
"execution_count": null,
|
| 410 |
"metadata": {
|
| 411 |
"_cell_guid": "f3d157fe-bf0f-4dc3-8bc3-1ba2eae83952",
|
| 412 |
"_uuid": "ad56dd21-3dc8-4448-a283-e3fbf29c3bd8",
|
|
|
|
| 421 |
"outputs_hidden": false
|
| 422 |
}
|
| 423 |
},
|
| 424 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 425 |
"source": [
|
| 426 |
"print(process_data({\n",
|
| 427 |
" 'sentences': 'this is a sample review of a movie.',\n",
|
|
|
|
| 431 |
},
|
| 432 |
{
|
| 433 |
"cell_type": "code",
|
| 434 |
+
"execution_count": 10,
|
| 435 |
"metadata": {
|
| 436 |
"_cell_guid": "a18da14f-f5f6-4834-ac49-3f9dbd2ba752",
|
| 437 |
"_uuid": "8e5c355d-f6cf-4430-8dd4-682ac7a3a4f3",
|
|
|
|
| 456 |
},
|
| 457 |
{
|
| 458 |
"cell_type": "code",
|
| 459 |
+
"execution_count": 11,
|
| 460 |
"metadata": {
|
| 461 |
"execution": {
|
| 462 |
"iopub.execute_input": "2023-07-04T03:32:35.667297Z",
|
|
|
|
| 484 |
},
|
| 485 |
{
|
| 486 |
"cell_type": "code",
|
| 487 |
+
"execution_count": 12,
|
| 488 |
"metadata": {
|
| 489 |
"_cell_guid": "a53aa2b1-d4ec-497a-ba1c-143059051090",
|
| 490 |
"_uuid": "3858c27a-ce1d-4195-9b16-d7e459a4aaf0",
|
|
|
|
| 514 |
},
|
| 515 |
{
|
| 516 |
"cell_type": "code",
|
| 517 |
+
"execution_count": 13,
|
| 518 |
"metadata": {
|
| 519 |
"_cell_guid": "6c4dcd43-c77c-481b-bb2b-222b62949079",
|
| 520 |
"_uuid": "7060e586-ac88-4bc5-93b1-ff10eb1f470b",
|
|
|
|
| 550 |
},
|
| 551 |
{
|
| 552 |
"cell_type": "code",
|
| 553 |
+
"execution_count": 14,
|
| 554 |
"metadata": {
|
| 555 |
"_cell_guid": "8ccfbddf-53c0-40ef-ab0f-a16907019abb",
|
| 556 |
"_uuid": "41674a1c-1391-455a-aa3d-d83590aff0ab",
|
|
|
|
| 586 |
},
|
| 587 |
{
|
| 588 |
"cell_type": "code",
|
| 589 |
+
"execution_count": null,
|
| 590 |
"metadata": {
|
| 591 |
"_cell_guid": "45938b6b-455a-4cf4-9ab0-b4f4b76dc344",
|
| 592 |
"_uuid": "fddc048a-36d4-4e8f-a482-68424b79b993",
|
|
|
|
| 608 |
},
|
| 609 |
{
|
| 610 |
"cell_type": "code",
|
| 611 |
+
"execution_count": 15,
|
| 612 |
"metadata": {
|
| 613 |
"_cell_guid": "101a58f9-017b-45ca-8f4e-1437a1147ad5",
|
| 614 |
"_uuid": "2d1d59d1-b5c0-428a-8b53-6453f68765e7",
|
|
|
|
| 628 |
"name": "stderr",
|
| 629 |
"output_type": "stream",
|
| 630 |
"text": [
|
| 631 |
+
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.predictions.transform.LayerNorm.weight', 'cls.seq_relationship.bias', 'cls.predictions.bias', 'cls.seq_relationship.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.transform.LayerNorm.bias']\n",
|
| 632 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 633 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 634 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
|
|
| 645 |
},
|
| 646 |
{
|
| 647 |
"cell_type": "code",
|
| 648 |
+
"execution_count": 16,
|
| 649 |
"metadata": {
|
| 650 |
"_cell_guid": "37cc08e3-f74c-4eec-838a-e6426e9f8967",
|
| 651 |
"_uuid": "e0933395-1e3b-4a10-b92e-25b3e2847931",
|
|
|
|
| 669 |
]
|
| 670 |
},
|
| 671 |
{
|
| 672 |
+
"ename": "ValueError",
|
| 673 |
+
"evalue": "Layers added to a Sequential model can only have a single positional argument, the input tensor. Layer HuggingFaceLayer has multiple positional arguments: [<Parameter \"inputs\">, <Parameter \"**kwargs\">]",
|
| 674 |
"output_type": "error",
|
| 675 |
"traceback": [
|
| 676 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 677 |
+
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 678 |
+
"\u001b[0;32m<ipython-input-16-fe4ef6d65433>\u001b[0m in \u001b[0;36m<cell line: 3>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m# Compile and train the model\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcompile\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moptimizer\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'adam'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mloss\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'binary_crossentropy'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmetrics\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'accuracy'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrain_data\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtrain_labels\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mepochs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m10\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
| 679 |
+
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 680 |
+
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/models/sequential.py\u001b[0m in \u001b[0;36mbuild\u001b[0;34m(self, input_shape)\u001b[0m\n\u001b[1;32m 194\u001b[0m ]\n\u001b[1;32m 195\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpositional_args\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 196\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 197\u001b[0m \u001b[0;34m\"Layers added to a Sequential model \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 198\u001b[0m \u001b[0;34m\"can only have a single positional argument, \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 681 |
+
"\u001b[0;31mValueError\u001b[0m: Layers added to a Sequential model can only have a single positional argument, the input tensor. Layer HuggingFaceLayer has multiple positional arguments: [<Parameter \"inputs\">, <Parameter \"**kwargs\">]"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 682 |
]
|
| 683 |
}
|
| 684 |
],
|
|
|
|
| 688 |
"model.fit(train_data, train_labels, epochs=10)"
|
| 689 |
]
|
| 690 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 691 |
{
|
| 692 |
"cell_type": "code",
|
| 693 |
"execution_count": null,
|
benchmark/tensorflow_11/tensorflow_11_fixed.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/tensorflow_11/tensorflow_11_reproduced.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/tensorflow_12/tensorflow_12_fixed.ipynb
CHANGED
|
@@ -206,7 +206,7 @@
|
|
| 206 |
},
|
| 207 |
{
|
| 208 |
"cell_type": "code",
|
| 209 |
-
"execution_count":
|
| 210 |
"metadata": {
|
| 211 |
"execution": {
|
| 212 |
"iopub.execute_input": "2023-01-15T15:58:13.581455Z",
|
|
@@ -224,7 +224,7 @@
|
|
| 224 |
},
|
| 225 |
{
|
| 226 |
"cell_type": "code",
|
| 227 |
-
"execution_count":
|
| 228 |
"metadata": {
|
| 229 |
"execution": {
|
| 230 |
"iopub.execute_input": "2023-01-15T15:58:13.886817Z",
|
|
@@ -256,7 +256,7 @@
|
|
| 256 |
},
|
| 257 |
{
|
| 258 |
"cell_type": "code",
|
| 259 |
-
"execution_count":
|
| 260 |
"metadata": {
|
| 261 |
"execution": {
|
| 262 |
"iopub.execute_input": "2023-01-15T15:58:16.537257Z",
|
|
@@ -276,7 +276,7 @@
|
|
| 276 |
},
|
| 277 |
{
|
| 278 |
"cell_type": "code",
|
| 279 |
-
"execution_count":
|
| 280 |
"metadata": {
|
| 281 |
"execution": {
|
| 282 |
"iopub.execute_input": "2023-01-15T15:58:19.936834Z",
|
|
@@ -293,7 +293,7 @@
|
|
| 293 |
},
|
| 294 |
{
|
| 295 |
"cell_type": "code",
|
| 296 |
-
"execution_count":
|
| 297 |
"metadata": {
|
| 298 |
"execution": {
|
| 299 |
"iopub.execute_input": "2023-01-15T16:01:25.682273Z",
|
|
@@ -310,7 +310,7 @@
|
|
| 310 |
},
|
| 311 |
{
|
| 312 |
"cell_type": "code",
|
| 313 |
-
"execution_count":
|
| 314 |
"metadata": {
|
| 315 |
"execution": {
|
| 316 |
"iopub.execute_input": "2023-01-15T16:01:29.535618Z",
|
|
@@ -345,7 +345,7 @@
|
|
| 345 |
},
|
| 346 |
{
|
| 347 |
"cell_type": "code",
|
| 348 |
-
"execution_count":
|
| 349 |
"metadata": {
|
| 350 |
"execution": {
|
| 351 |
"iopub.execute_input": "2023-01-15T16:01:31.246819Z",
|
|
@@ -356,6 +356,14 @@
|
|
| 356 |
}
|
| 357 |
},
|
| 358 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 359 |
{
|
| 360 |
"data": {
|
| 361 |
"text/html": [
|
|
@@ -375,89 +383,89 @@
|
|
| 375 |
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 376 |
"┃<span style=\"font-weight: bold\"> Layer (type) </span>┃<span style=\"font-weight: bold\"> Output Shape </span>┃<span style=\"font-weight: bold\"> Param # </span>┃\n",
|
| 377 |
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 378 |
-
"│
|
| 379 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 380 |
-
"│
|
| 381 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 382 |
-
"│
|
| 383 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 384 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 385 |
-
"│
|
| 386 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 387 |
-
"│
|
| 388 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 389 |
-
"│
|
| 390 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 391 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 392 |
-
"│
|
| 393 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 394 |
-
"│
|
| 395 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 396 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 397 |
-
"│
|
| 398 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 399 |
-
"│
|
| 400 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 401 |
-
"│
|
| 402 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 403 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 404 |
-
"│
|
| 405 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 406 |
-
"│
|
| 407 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 408 |
"├──────────────────────────────────────┼──────────────────────────���──┼─────────────────┤\n",
|
| 409 |
-
"│
|
| 410 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 411 |
-
"│
|
| 412 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 413 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 414 |
-
"│
|
| 415 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 416 |
-
"│
|
| 417 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 418 |
-
"│
|
| 419 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 420 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 421 |
-
"│
|
| 422 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 423 |
-
"│
|
| 424 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 425 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 426 |
-
"│
|
| 427 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 428 |
-
"│
|
| 429 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 430 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 431 |
-
"│
|
| 432 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 433 |
-
"│
|
| 434 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 435 |
-
"│
|
| 436 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 437 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 438 |
-
"│
|
| 439 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 440 |
-
"│
|
| 441 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 442 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 443 |
-
"│
|
| 444 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 445 |
-
"│
|
| 446 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 447 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 448 |
-
"│
|
| 449 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 450 |
-
"│
|
| 451 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 452 |
-
"│
|
| 453 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 454 |
-
"│
|
| 455 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 456 |
-
"│
|
| 457 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 458 |
-
"│
|
| 459 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 460 |
-
"│
|
| 461 |
"└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘\n",
|
| 462 |
"</pre>\n"
|
| 463 |
],
|
|
@@ -465,89 +473,89 @@
|
|
| 465 |
"┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 466 |
"┃\u001b[1m \u001b[0m\u001b[1mLayer (type) \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mOutput Shape \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Param #\u001b[0m\u001b[1m \u001b[0m┃\n",
|
| 467 |
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 468 |
-
"│
|
| 469 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 470 |
-
"│
|
| 471 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 472 |
-
"│
|
| 473 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 474 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 475 |
-
"│
|
| 476 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 477 |
-
"│
|
| 478 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 479 |
-
"│
|
| 480 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 481 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 482 |
-
"│
|
| 483 |
"├────────────────────────────────────���─┼─────────────────────────────┼─────────────────┤\n",
|
| 484 |
-
"│
|
| 485 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 486 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 487 |
-
"│
|
| 488 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 489 |
-
"│
|
| 490 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 491 |
-
"│
|
| 492 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 493 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 494 |
-
"│
|
| 495 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 496 |
-
"│
|
| 497 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 498 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 499 |
-
"│
|
| 500 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 501 |
-
"│
|
| 502 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 503 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 504 |
-
"│
|
| 505 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 506 |
-
"│
|
| 507 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 508 |
-
"│
|
| 509 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 510 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 511 |
-
"│
|
| 512 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 513 |
-
"│
|
| 514 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 515 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 516 |
-
"│
|
| 517 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 518 |
-
"│
|
| 519 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 520 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 521 |
-
"│
|
| 522 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 523 |
-
"│
|
| 524 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 525 |
-
"│
|
| 526 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 527 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 528 |
-
"│
|
| 529 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 530 |
-
"│
|
| 531 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 532 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 533 |
-
"│
|
| 534 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 535 |
-
"│
|
| 536 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 537 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 538 |
-
"│
|
| 539 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 540 |
-
"│
|
| 541 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 542 |
-
"│
|
| 543 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 544 |
-
"│
|
| 545 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 546 |
-
"│
|
| 547 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 548 |
-
"│
|
| 549 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 550 |
-
"│
|
| 551 |
"└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘\n"
|
| 552 |
]
|
| 553 |
},
|
|
@@ -648,7 +656,7 @@
|
|
| 648 |
},
|
| 649 |
{
|
| 650 |
"cell_type": "code",
|
| 651 |
-
"execution_count":
|
| 652 |
"metadata": {
|
| 653 |
"execution": {
|
| 654 |
"iopub.execute_input": "2023-01-15T16:01:31.528964Z",
|
|
@@ -678,9 +686,9 @@
|
|
| 678 |
"name": "stdout",
|
| 679 |
"output_type": "stream",
|
| 680 |
"text": [
|
| 681 |
-
"\u001b[1m4/4\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m14s\u001b[0m 2s/step - accuracy: 0.
|
| 682 |
"Epoch 2/2\n",
|
| 683 |
-
"\u001b[1m4/4\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m7s\u001b[0m 2s/step - accuracy: 0.
|
| 684 |
]
|
| 685 |
}
|
| 686 |
],
|
|
|
|
| 206 |
},
|
| 207 |
{
|
| 208 |
"cell_type": "code",
|
| 209 |
+
"execution_count": 4,
|
| 210 |
"metadata": {
|
| 211 |
"execution": {
|
| 212 |
"iopub.execute_input": "2023-01-15T15:58:13.581455Z",
|
|
|
|
| 224 |
},
|
| 225 |
{
|
| 226 |
"cell_type": "code",
|
| 227 |
+
"execution_count": 5,
|
| 228 |
"metadata": {
|
| 229 |
"execution": {
|
| 230 |
"iopub.execute_input": "2023-01-15T15:58:13.886817Z",
|
|
|
|
| 256 |
},
|
| 257 |
{
|
| 258 |
"cell_type": "code",
|
| 259 |
+
"execution_count": 6,
|
| 260 |
"metadata": {
|
| 261 |
"execution": {
|
| 262 |
"iopub.execute_input": "2023-01-15T15:58:16.537257Z",
|
|
|
|
| 276 |
},
|
| 277 |
{
|
| 278 |
"cell_type": "code",
|
| 279 |
+
"execution_count": 7,
|
| 280 |
"metadata": {
|
| 281 |
"execution": {
|
| 282 |
"iopub.execute_input": "2023-01-15T15:58:19.936834Z",
|
|
|
|
| 293 |
},
|
| 294 |
{
|
| 295 |
"cell_type": "code",
|
| 296 |
+
"execution_count": 8,
|
| 297 |
"metadata": {
|
| 298 |
"execution": {
|
| 299 |
"iopub.execute_input": "2023-01-15T16:01:25.682273Z",
|
|
|
|
| 310 |
},
|
| 311 |
{
|
| 312 |
"cell_type": "code",
|
| 313 |
+
"execution_count": 9,
|
| 314 |
"metadata": {
|
| 315 |
"execution": {
|
| 316 |
"iopub.execute_input": "2023-01-15T16:01:29.535618Z",
|
|
|
|
| 345 |
},
|
| 346 |
{
|
| 347 |
"cell_type": "code",
|
| 348 |
+
"execution_count": 10,
|
| 349 |
"metadata": {
|
| 350 |
"execution": {
|
| 351 |
"iopub.execute_input": "2023-01-15T16:01:31.246819Z",
|
|
|
|
| 356 |
}
|
| 357 |
},
|
| 358 |
"outputs": [
|
| 359 |
+
{
|
| 360 |
+
"name": "stderr",
|
| 361 |
+
"output_type": "stream",
|
| 362 |
+
"text": [
|
| 363 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/layers/convolutional/base_conv.py:107: UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in the model instead.\n",
|
| 364 |
+
" super().__init__(activity_regularizer=activity_regularizer, **kwargs)\n"
|
| 365 |
+
]
|
| 366 |
+
},
|
| 367 |
{
|
| 368 |
"data": {
|
| 369 |
"text/html": [
|
|
|
|
| 383 |
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 384 |
"┃<span style=\"font-weight: bold\"> Layer (type) </span>┃<span style=\"font-weight: bold\"> Output Shape </span>┃<span style=\"font-weight: bold\"> Param # </span>┃\n",
|
| 385 |
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 386 |
+
"│ conv2d (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">100</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">100</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">64</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">1,792</span> │\n",
|
| 387 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 388 |
+
"│ conv2d_1 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">100</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">100</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">64</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">36,928</span> │\n",
|
| 389 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 390 |
+
"│ batch_normalization │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">100</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">100</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">64</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span> │\n",
|
| 391 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 392 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 393 |
+
"│ max_pooling2d (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">64</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 394 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 395 |
+
"│ conv2d_2 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">73,856</span> │\n",
|
| 396 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 397 |
+
"│ batch_normalization_1 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span> │\n",
|
| 398 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 399 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 400 |
+
"│ conv2d_3 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">147,584</span> │\n",
|
| 401 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 402 |
+
"│ batch_normalization_2 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">50</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span> │\n",
|
| 403 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 404 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 405 |
+
"│ max_pooling2d_1 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 406 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 407 |
+
"│ conv2d_4 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">295,168</span> │\n",
|
| 408 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 409 |
+
"│ batch_normalization_3 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">1,024</span> │\n",
|
| 410 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 411 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 412 |
+
"│ conv2d_5 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">590,080</span> │\n",
|
| 413 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 414 |
+
"│ batch_normalization_4 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">1,024</span> │\n",
|
| 415 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 416 |
"├──────────────────────────────────────┼──────────────────────────���──┼─────────────────┤\n",
|
| 417 |
+
"│ conv2d_6 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">590,080</span> │\n",
|
| 418 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 419 |
+
"│ batch_normalization_5 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">25</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">1,024</span> │\n",
|
| 420 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 421 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 422 |
+
"│ max_pooling2d_2 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 423 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 424 |
+
"│ conv2d_7 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">1,180,160</span> │\n",
|
| 425 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 426 |
+
"│ batch_normalization_6 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,048</span> │\n",
|
| 427 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 428 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 429 |
+
"│ conv2d_8 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 430 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 431 |
+
"│ batch_normalization_7 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,048</span> │\n",
|
| 432 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 433 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 434 |
+
"│ conv2d_9 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 435 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 436 |
+
"│ batch_normalization_8 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">12</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,048</span> │\n",
|
| 437 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 438 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 439 |
+
"│ max_pooling2d_3 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 440 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 441 |
+
"│ conv2d_10 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 442 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 443 |
+
"│ batch_normalization_9 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,048</span> │\n",
|
| 444 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 445 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 446 |
+
"│ conv2d_11 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 447 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 448 |
+
"│ batch_normalization_10 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,048</span> │\n",
|
| 449 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 450 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 451 |
+
"│ conv2d_12 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 452 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 453 |
+
"│ batch_normalization_11 │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,048</span> │\n",
|
| 454 |
"│ (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">BatchNormalization</span>) │ │ │\n",
|
| 455 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 456 |
+
"│ max_pooling2d_4 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">3</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">3</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 457 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 458 |
+
"│ flatten (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Flatten</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4608</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 459 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 460 |
+
"│ dense (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dense</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">18,878,464</span> │\n",
|
| 461 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 462 |
+
"│ dropout (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dropout</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 463 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 464 |
+
"│ dense_1 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dense</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">16,781,312</span> │\n",
|
| 465 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 466 |
+
"│ dropout_1 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dropout</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 467 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 468 |
+
"│ dense_2 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dense</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">20</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">81,940</span> │\n",
|
| 469 |
"└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘\n",
|
| 470 |
"</pre>\n"
|
| 471 |
],
|
|
|
|
| 473 |
"┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 474 |
"┃\u001b[1m \u001b[0m\u001b[1mLayer (type) \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mOutput Shape \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Param #\u001b[0m\u001b[1m \u001b[0m┃\n",
|
| 475 |
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 476 |
+
"│ conv2d (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m100\u001b[0m, \u001b[38;5;34m100\u001b[0m, \u001b[38;5;34m64\u001b[0m) │ \u001b[38;5;34m1,792\u001b[0m │\n",
|
| 477 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 478 |
+
"│ conv2d_1 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m100\u001b[0m, \u001b[38;5;34m100\u001b[0m, \u001b[38;5;34m64\u001b[0m) │ \u001b[38;5;34m36,928\u001b[0m │\n",
|
| 479 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 480 |
+
"│ batch_normalization │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m100\u001b[0m, \u001b[38;5;34m100\u001b[0m, \u001b[38;5;34m64\u001b[0m) │ \u001b[38;5;34m256\u001b[0m │\n",
|
| 481 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 482 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 483 |
+
"│ max_pooling2d (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m64\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 484 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 485 |
+
"│ conv2d_2 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m73,856\u001b[0m │\n",
|
| 486 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 487 |
+
"│ batch_normalization_1 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m512\u001b[0m │\n",
|
| 488 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 489 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 490 |
+
"│ conv2d_3 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m147,584\u001b[0m │\n",
|
| 491 |
"├────────────────────────────────────���─┼─────────────────────────────┼─────────────────┤\n",
|
| 492 |
+
"│ batch_normalization_2 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m50\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m512\u001b[0m │\n",
|
| 493 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 494 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 495 |
+
"│ max_pooling2d_1 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 496 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 497 |
+
"│ conv2d_4 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m295,168\u001b[0m │\n",
|
| 498 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 499 |
+
"│ batch_normalization_3 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m1,024\u001b[0m │\n",
|
| 500 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 501 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 502 |
+
"│ conv2d_5 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m590,080\u001b[0m │\n",
|
| 503 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 504 |
+
"│ batch_normalization_4 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m1,024\u001b[0m │\n",
|
| 505 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 506 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 507 |
+
"│ conv2d_6 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m590,080\u001b[0m │\n",
|
| 508 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 509 |
+
"│ batch_normalization_5 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m25\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m1,024\u001b[0m │\n",
|
| 510 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 511 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 512 |
+
"│ max_pooling2d_2 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 513 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 514 |
+
"│ conv2d_7 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m1,180,160\u001b[0m │\n",
|
| 515 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 516 |
+
"│ batch_normalization_6 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,048\u001b[0m │\n",
|
| 517 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 518 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 519 |
+
"│ conv2d_8 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 520 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 521 |
+
"│ batch_normalization_7 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,048\u001b[0m │\n",
|
| 522 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 523 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 524 |
+
"│ conv2d_9 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 525 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 526 |
+
"│ batch_normalization_8 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m12\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,048\u001b[0m │\n",
|
| 527 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 528 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 529 |
+
"│ max_pooling2d_3 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 530 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 531 |
+
"│ conv2d_10 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 532 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 533 |
+
"│ batch_normalization_9 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,048\u001b[0m │\n",
|
| 534 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 535 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 536 |
+
"│ conv2d_11 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 537 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 538 |
+
"│ batch_normalization_10 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,048\u001b[0m │\n",
|
| 539 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 540 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 541 |
+
"│ conv2d_12 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 542 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 543 |
+
"│ batch_normalization_11 │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,048\u001b[0m │\n",
|
| 544 |
"│ (\u001b[38;5;33mBatchNormalization\u001b[0m) │ │ │\n",
|
| 545 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 546 |
+
"│ max_pooling2d_4 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m3\u001b[0m, \u001b[38;5;34m3\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 547 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 548 |
+
"│ flatten (\u001b[38;5;33mFlatten\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4608\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 549 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 550 |
+
"│ dense (\u001b[38;5;33mDense\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m18,878,464\u001b[0m │\n",
|
| 551 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 552 |
+
"│ dropout (\u001b[38;5;33mDropout\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 553 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 554 |
+
"│ dense_1 (\u001b[38;5;33mDense\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m16,781,312\u001b[0m │\n",
|
| 555 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 556 |
+
"│ dropout_1 (\u001b[38;5;33mDropout\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 557 |
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 558 |
+
"│ dense_2 (\u001b[38;5;33mDense\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m20\u001b[0m) │ \u001b[38;5;34m81,940\u001b[0m │\n",
|
| 559 |
"└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘\n"
|
| 560 |
]
|
| 561 |
},
|
|
|
|
| 656 |
},
|
| 657 |
{
|
| 658 |
"cell_type": "code",
|
| 659 |
+
"execution_count": 11,
|
| 660 |
"metadata": {
|
| 661 |
"execution": {
|
| 662 |
"iopub.execute_input": "2023-01-15T16:01:31.528964Z",
|
|
|
|
| 686 |
"name": "stdout",
|
| 687 |
"output_type": "stream",
|
| 688 |
"text": [
|
| 689 |
+
"\u001b[1m4/4\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m14s\u001b[0m 2s/step - accuracy: 0.0327 - loss: 4.6730 - val_accuracy: 0.6875 - val_loss: 2.9083\n",
|
| 690 |
"Epoch 2/2\n",
|
| 691 |
+
"\u001b[1m4/4\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m7s\u001b[0m 2s/step - accuracy: 0.6119 - loss: 1.7714 - val_accuracy: 0.6875 - val_loss: 2.9367\n"
|
| 692 |
]
|
| 693 |
}
|
| 694 |
],
|
benchmark/tensorflow_12/tensorflow_12_reproduced.ipynb
CHANGED
|
@@ -206,7 +206,7 @@
|
|
| 206 |
},
|
| 207 |
{
|
| 208 |
"cell_type": "code",
|
| 209 |
-
"execution_count":
|
| 210 |
"metadata": {
|
| 211 |
"execution": {
|
| 212 |
"iopub.execute_input": "2023-01-15T15:58:13.581455Z",
|
|
@@ -224,7 +224,7 @@
|
|
| 224 |
},
|
| 225 |
{
|
| 226 |
"cell_type": "code",
|
| 227 |
-
"execution_count":
|
| 228 |
"metadata": {
|
| 229 |
"execution": {
|
| 230 |
"iopub.execute_input": "2023-01-15T15:58:13.886817Z",
|
|
@@ -252,7 +252,7 @@
|
|
| 252 |
},
|
| 253 |
{
|
| 254 |
"cell_type": "code",
|
| 255 |
-
"execution_count":
|
| 256 |
"metadata": {
|
| 257 |
"execution": {
|
| 258 |
"iopub.execute_input": "2023-01-15T15:58:16.537257Z",
|
|
@@ -272,7 +272,7 @@
|
|
| 272 |
},
|
| 273 |
{
|
| 274 |
"cell_type": "code",
|
| 275 |
-
"execution_count":
|
| 276 |
"metadata": {
|
| 277 |
"execution": {
|
| 278 |
"iopub.execute_input": "2023-01-15T15:58:19.936834Z",
|
|
@@ -289,7 +289,7 @@
|
|
| 289 |
},
|
| 290 |
{
|
| 291 |
"cell_type": "code",
|
| 292 |
-
"execution_count":
|
| 293 |
"metadata": {
|
| 294 |
"execution": {
|
| 295 |
"iopub.execute_input": "2023-01-15T16:01:25.682273Z",
|
|
@@ -306,7 +306,7 @@
|
|
| 306 |
},
|
| 307 |
{
|
| 308 |
"cell_type": "code",
|
| 309 |
-
"execution_count":
|
| 310 |
"metadata": {
|
| 311 |
"execution": {
|
| 312 |
"iopub.execute_input": "2023-01-15T16:01:29.535618Z",
|
|
@@ -341,7 +341,7 @@
|
|
| 341 |
},
|
| 342 |
{
|
| 343 |
"cell_type": "code",
|
| 344 |
-
"execution_count":
|
| 345 |
"metadata": {
|
| 346 |
"execution": {
|
| 347 |
"iopub.execute_input": "2023-01-15T16:01:31.246819Z",
|
|
@@ -652,7 +652,7 @@
|
|
| 652 |
},
|
| 653 |
{
|
| 654 |
"cell_type": "code",
|
| 655 |
-
"execution_count":
|
| 656 |
"metadata": {
|
| 657 |
"execution": {
|
| 658 |
"iopub.execute_input": "2023-01-15T16:01:31.528964Z",
|
|
@@ -677,7 +677,7 @@
|
|
| 677 |
"traceback": [
|
| 678 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 679 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 680 |
-
"\u001b[0;32m<ipython-input-
|
| 681 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 682 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py\u001b[0m in \u001b[0;36m_adjust_input_rank\u001b[0;34m(self, flat_inputs)\u001b[0m\n\u001b[1;32m 242\u001b[0m \u001b[0madjusted\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mops\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexpand_dims\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 243\u001b[0m \u001b[0;32mcontinue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 244\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 245\u001b[0m \u001b[0;34mf\"Invalid input shape for input {x}. Expected shape \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 246\u001b[0m \u001b[0;34mf\"{ref_shape}, but input has incompatible shape {x.shape}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 683 |
"\u001b[0;31mValueError\u001b[0m: Exception encountered when calling Sequential.call().\n\n\u001b[1mInvalid input shape for input Tensor(\"VGG19_1/Cast:0\", shape=(None, 100, 100), dtype=float32). Expected shape (None, 100, 100, 3), but input has incompatible shape (None, 100, 100)\u001b[0m\n\nArguments received by Sequential.call():\n • inputs=tf.Tensor(shape=(None, 100, 100), dtype=uint8)\n • training=True\n • mask=None"
|
|
|
|
| 206 |
},
|
| 207 |
{
|
| 208 |
"cell_type": "code",
|
| 209 |
+
"execution_count": 4,
|
| 210 |
"metadata": {
|
| 211 |
"execution": {
|
| 212 |
"iopub.execute_input": "2023-01-15T15:58:13.581455Z",
|
|
|
|
| 224 |
},
|
| 225 |
{
|
| 226 |
"cell_type": "code",
|
| 227 |
+
"execution_count": 5,
|
| 228 |
"metadata": {
|
| 229 |
"execution": {
|
| 230 |
"iopub.execute_input": "2023-01-15T15:58:13.886817Z",
|
|
|
|
| 252 |
},
|
| 253 |
{
|
| 254 |
"cell_type": "code",
|
| 255 |
+
"execution_count": 6,
|
| 256 |
"metadata": {
|
| 257 |
"execution": {
|
| 258 |
"iopub.execute_input": "2023-01-15T15:58:16.537257Z",
|
|
|
|
| 272 |
},
|
| 273 |
{
|
| 274 |
"cell_type": "code",
|
| 275 |
+
"execution_count": 7,
|
| 276 |
"metadata": {
|
| 277 |
"execution": {
|
| 278 |
"iopub.execute_input": "2023-01-15T15:58:19.936834Z",
|
|
|
|
| 289 |
},
|
| 290 |
{
|
| 291 |
"cell_type": "code",
|
| 292 |
+
"execution_count": 8,
|
| 293 |
"metadata": {
|
| 294 |
"execution": {
|
| 295 |
"iopub.execute_input": "2023-01-15T16:01:25.682273Z",
|
|
|
|
| 306 |
},
|
| 307 |
{
|
| 308 |
"cell_type": "code",
|
| 309 |
+
"execution_count": 9,
|
| 310 |
"metadata": {
|
| 311 |
"execution": {
|
| 312 |
"iopub.execute_input": "2023-01-15T16:01:29.535618Z",
|
|
|
|
| 341 |
},
|
| 342 |
{
|
| 343 |
"cell_type": "code",
|
| 344 |
+
"execution_count": 10,
|
| 345 |
"metadata": {
|
| 346 |
"execution": {
|
| 347 |
"iopub.execute_input": "2023-01-15T16:01:31.246819Z",
|
|
|
|
| 652 |
},
|
| 653 |
{
|
| 654 |
"cell_type": "code",
|
| 655 |
+
"execution_count": 11,
|
| 656 |
"metadata": {
|
| 657 |
"execution": {
|
| 658 |
"iopub.execute_input": "2023-01-15T16:01:31.528964Z",
|
|
|
|
| 677 |
"traceback": [
|
| 678 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 679 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 680 |
+
"\u001b[0;32m<ipython-input-11-bb53de7133d1>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mhistory\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrain_images\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtrain_labels\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbatch_size\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m16\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mepochs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalidation_data\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mval_images\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mval_labels\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mverbose\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
| 681 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 682 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py\u001b[0m in \u001b[0;36m_adjust_input_rank\u001b[0;34m(self, flat_inputs)\u001b[0m\n\u001b[1;32m 242\u001b[0m \u001b[0madjusted\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mops\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexpand_dims\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 243\u001b[0m \u001b[0;32mcontinue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 244\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 245\u001b[0m \u001b[0;34mf\"Invalid input shape for input {x}. Expected shape \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 246\u001b[0m \u001b[0;34mf\"{ref_shape}, but input has incompatible shape {x.shape}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 683 |
"\u001b[0;31mValueError\u001b[0m: Exception encountered when calling Sequential.call().\n\n\u001b[1mInvalid input shape for input Tensor(\"VGG19_1/Cast:0\", shape=(None, 100, 100), dtype=float32). Expected shape (None, 100, 100, 3), but input has incompatible shape (None, 100, 100)\u001b[0m\n\nArguments received by Sequential.call():\n • inputs=tf.Tensor(shape=(None, 100, 100), dtype=uint8)\n • training=True\n • mask=None"
|
benchmark/tensorflow_13/tensorflow_13_fixed.ipynb
CHANGED
|
@@ -243,7 +243,7 @@
|
|
| 243 |
},
|
| 244 |
{
|
| 245 |
"cell_type": "code",
|
| 246 |
-
"execution_count":
|
| 247 |
"metadata": {
|
| 248 |
"execution": {
|
| 249 |
"iopub.execute_input": "2023-06-04T16:21:43.780900Z",
|
|
@@ -288,7 +288,7 @@
|
|
| 288 |
},
|
| 289 |
{
|
| 290 |
"cell_type": "code",
|
| 291 |
-
"execution_count":
|
| 292 |
"metadata": {
|
| 293 |
"execution": {
|
| 294 |
"iopub.execute_input": "2023-06-04T16:22:12.413004Z",
|
|
@@ -305,7 +305,7 @@
|
|
| 305 |
"(10, 768)"
|
| 306 |
]
|
| 307 |
},
|
| 308 |
-
"execution_count":
|
| 309 |
"metadata": {},
|
| 310 |
"output_type": "execute_result"
|
| 311 |
}
|
|
|
|
| 243 |
},
|
| 244 |
{
|
| 245 |
"cell_type": "code",
|
| 246 |
+
"execution_count": 3,
|
| 247 |
"metadata": {
|
| 248 |
"execution": {
|
| 249 |
"iopub.execute_input": "2023-06-04T16:21:43.780900Z",
|
|
|
|
| 288 |
},
|
| 289 |
{
|
| 290 |
"cell_type": "code",
|
| 291 |
+
"execution_count": 4,
|
| 292 |
"metadata": {
|
| 293 |
"execution": {
|
| 294 |
"iopub.execute_input": "2023-06-04T16:22:12.413004Z",
|
|
|
|
| 305 |
"(10, 768)"
|
| 306 |
]
|
| 307 |
},
|
| 308 |
+
"execution_count": 4,
|
| 309 |
"metadata": {},
|
| 310 |
"output_type": "execute_result"
|
| 311 |
}
|
benchmark/tensorflow_13/tensorflow_13_reproduced.ipynb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
-
"execution_count":
|
| 6 |
"metadata": {
|
| 7 |
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
|
| 8 |
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
|
|
@@ -35,7 +35,7 @@
|
|
| 35 |
},
|
| 36 |
{
|
| 37 |
"cell_type": "code",
|
| 38 |
-
"execution_count":
|
| 39 |
"metadata": {
|
| 40 |
"execution": {
|
| 41 |
"iopub.execute_input": "2023-06-04T15:57:43.670730Z",
|
|
@@ -243,7 +243,7 @@
|
|
| 243 |
},
|
| 244 |
{
|
| 245 |
"cell_type": "code",
|
| 246 |
-
"execution_count":
|
| 247 |
"metadata": {
|
| 248 |
"execution": {
|
| 249 |
"iopub.execute_input": "2023-06-04T16:21:43.780900Z",
|
|
@@ -288,7 +288,7 @@
|
|
| 288 |
},
|
| 289 |
{
|
| 290 |
"cell_type": "code",
|
| 291 |
-
"execution_count":
|
| 292 |
"metadata": {
|
| 293 |
"execution": {
|
| 294 |
"iopub.execute_input": "2023-06-04T16:22:12.413004Z",
|
|
@@ -310,8 +310,8 @@
|
|
| 310 |
"\u001b[0;31mTypeError\u001b[0m: object of type 'int' has no len()",
|
| 311 |
"\nThe above exception was the direct cause of the following exception:\n",
|
| 312 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 313 |
-
"\u001b[0;32m<ipython-input-
|
| 314 |
-
"\u001b[0;32m<ipython-input-
|
| 315 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/sequence_utils.py\u001b[0m in \u001b[0;36mpad_sequences\u001b[0;34m(sequences, maxlen, dtype, padding, truncating, value)\u001b[0m\n\u001b[1;32m 93\u001b[0m \u001b[0mflag\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 94\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mTypeError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 95\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 96\u001b[0m \u001b[0;34m\"`sequences` must be a list of iterables. \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 97\u001b[0m \u001b[0;34mf\"Found non-iterable: {str(x)}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 316 |
"\u001b[0;31mValueError\u001b[0m: `sequences` must be a list of iterables. Found non-iterable: 101"
|
| 317 |
]
|
|
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
"metadata": {
|
| 7 |
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
|
| 8 |
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
|
|
|
|
| 35 |
},
|
| 36 |
{
|
| 37 |
"cell_type": "code",
|
| 38 |
+
"execution_count": 2,
|
| 39 |
"metadata": {
|
| 40 |
"execution": {
|
| 41 |
"iopub.execute_input": "2023-06-04T15:57:43.670730Z",
|
|
|
|
| 243 |
},
|
| 244 |
{
|
| 245 |
"cell_type": "code",
|
| 246 |
+
"execution_count": 3,
|
| 247 |
"metadata": {
|
| 248 |
"execution": {
|
| 249 |
"iopub.execute_input": "2023-06-04T16:21:43.780900Z",
|
|
|
|
| 288 |
},
|
| 289 |
{
|
| 290 |
"cell_type": "code",
|
| 291 |
+
"execution_count": 4,
|
| 292 |
"metadata": {
|
| 293 |
"execution": {
|
| 294 |
"iopub.execute_input": "2023-06-04T16:22:12.413004Z",
|
|
|
|
| 310 |
"\u001b[0;31mTypeError\u001b[0m: object of type 'int' has no len()",
|
| 311 |
"\nThe above exception was the direct cause of the following exception:\n",
|
| 312 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 313 |
+
"\u001b[0;32m<ipython-input-4-d10e2288d2b9>\u001b[0m in \u001b[0;36m<cell line: 7>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mmax_length\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m768\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 7\u001b[0;31m \u001b[0mdocs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpad_sequences\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtokenize_text\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmaxlen\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mmax_length\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mdocs\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
| 314 |
+
"\u001b[0;32m<ipython-input-4-d10e2288d2b9>\u001b[0m in \u001b[0;36m<listcomp>\u001b[0;34m(.0)\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mmax_length\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m768\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 7\u001b[0;31m \u001b[0mdocs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpad_sequences\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtokenize_text\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmaxlen\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mmax_length\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mdocs\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
| 315 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/sequence_utils.py\u001b[0m in \u001b[0;36mpad_sequences\u001b[0;34m(sequences, maxlen, dtype, padding, truncating, value)\u001b[0m\n\u001b[1;32m 93\u001b[0m \u001b[0mflag\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 94\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mTypeError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 95\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 96\u001b[0m \u001b[0;34m\"`sequences` must be a list of iterables. \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 97\u001b[0m \u001b[0;34mf\"Found non-iterable: {str(x)}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 316 |
"\u001b[0;31mValueError\u001b[0m: `sequences` must be a list of iterables. Found non-iterable: 101"
|
| 317 |
]
|
benchmark/tensorflow_14/data/updated_vgg_face_weights.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 60551544
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbf0b8b0ca043f1ac26251ae64221be5e3824640c6ef9784521e4ed360efdc48
|
| 3 |
size 60551544
|
benchmark/tensorflow_14/tensorflow_14_fixed.ipynb
CHANGED
|
@@ -180,7 +180,7 @@
|
|
| 180 |
"name": "stdout",
|
| 181 |
"output_type": "stream",
|
| 182 |
"text": [
|
| 183 |
-
"\u001b[1m44/44\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 184 |
]
|
| 185 |
}
|
| 186 |
],
|
|
|
|
| 180 |
"name": "stdout",
|
| 181 |
"output_type": "stream",
|
| 182 |
"text": [
|
| 183 |
+
"\u001b[1m44/44\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m162s\u001b[0m 4s/step - accuracy: 0.1995 - loss: 1.9225\n"
|
| 184 |
]
|
| 185 |
}
|
| 186 |
],
|
benchmark/tensorflow_14/tensorflow_14_reproduced.ipynb
CHANGED
|
@@ -62,7 +62,7 @@
|
|
| 62 |
},
|
| 63 |
{
|
| 64 |
"cell_type": "code",
|
| 65 |
-
"execution_count":
|
| 66 |
"metadata": {
|
| 67 |
"execution": {
|
| 68 |
"iopub.execute_input": "2023-10-16T18:38:15.987969Z",
|
|
@@ -72,7 +72,16 @@
|
|
| 72 |
"shell.execute_reply.started": "2023-10-16T18:38:15.987942Z"
|
| 73 |
}
|
| 74 |
},
|
| 75 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
"source": [
|
| 77 |
"# Define VGG_FACE_MODEL architecture\n",
|
| 78 |
"model = Sequential()\n",
|
|
@@ -121,7 +130,7 @@
|
|
| 121 |
},
|
| 122 |
{
|
| 123 |
"cell_type": "code",
|
| 124 |
-
"execution_count":
|
| 125 |
"metadata": {
|
| 126 |
"execution": {
|
| 127 |
"iopub.execute_input": "2023-10-16T18:53:21.121348Z",
|
|
@@ -141,7 +150,7 @@
|
|
| 141 |
},
|
| 142 |
{
|
| 143 |
"cell_type": "code",
|
| 144 |
-
"execution_count":
|
| 145 |
"metadata": {
|
| 146 |
"execution": {
|
| 147 |
"iopub.execute_input": "2023-10-16T18:53:24.463478Z",
|
|
@@ -166,7 +175,7 @@
|
|
| 166 |
"traceback": [
|
| 167 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 168 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 169 |
-
"\u001b[0;32m<ipython-input-
|
| 170 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 171 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/legacy/saving/legacy_h5_format.py\u001b[0m in \u001b[0;36mload_weights_from_hdf5_group\u001b[0;34m(f, model)\u001b[0m\n\u001b[1;32m 355\u001b[0m \u001b[0mlayer_names\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfiltered_layer_names\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 356\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlayer_names\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_layers\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 357\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 358\u001b[0m \u001b[0;34m\"Layer count mismatch when loading weights from file. \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 359\u001b[0m \u001b[0;34mf\"Model expected {len(filtered_layers)} layers, found \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 172 |
"\u001b[0;31mValueError\u001b[0m: Layer count mismatch when loading weights from file. Model expected 13 layers, found 16 saved layers."
|
|
|
|
| 62 |
},
|
| 63 |
{
|
| 64 |
"cell_type": "code",
|
| 65 |
+
"execution_count": 2,
|
| 66 |
"metadata": {
|
| 67 |
"execution": {
|
| 68 |
"iopub.execute_input": "2023-10-16T18:38:15.987969Z",
|
|
|
|
| 72 |
"shell.execute_reply.started": "2023-10-16T18:38:15.987942Z"
|
| 73 |
}
|
| 74 |
},
|
| 75 |
+
"outputs": [
|
| 76 |
+
{
|
| 77 |
+
"name": "stderr",
|
| 78 |
+
"output_type": "stream",
|
| 79 |
+
"text": [
|
| 80 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/layers/reshaping/zero_padding2d.py:72: UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in the model instead.\n",
|
| 81 |
+
" super().__init__(**kwargs)\n"
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
"source": [
|
| 86 |
"# Define VGG_FACE_MODEL architecture\n",
|
| 87 |
"model = Sequential()\n",
|
|
|
|
| 130 |
},
|
| 131 |
{
|
| 132 |
"cell_type": "code",
|
| 133 |
+
"execution_count": 3,
|
| 134 |
"metadata": {
|
| 135 |
"execution": {
|
| 136 |
"iopub.execute_input": "2023-10-16T18:53:21.121348Z",
|
|
|
|
| 150 |
},
|
| 151 |
{
|
| 152 |
"cell_type": "code",
|
| 153 |
+
"execution_count": 4,
|
| 154 |
"metadata": {
|
| 155 |
"execution": {
|
| 156 |
"iopub.execute_input": "2023-10-16T18:53:24.463478Z",
|
|
|
|
| 175 |
"traceback": [
|
| 176 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 177 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 178 |
+
"\u001b[0;32m<ipython-input-4-ec4455d9d5bd>\u001b[0m in \u001b[0;36m<cell line: 36>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 34\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 35\u001b[0m \u001b[0;31m# Load the previously saved model weights\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 36\u001b[0;31m \u001b[0mbase_model\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_weights\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'data/vgg_face_weights.h5'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 37\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 38\u001b[0m \u001b[0;31m# Continue training the model\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 179 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 180 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/legacy/saving/legacy_h5_format.py\u001b[0m in \u001b[0;36mload_weights_from_hdf5_group\u001b[0;34m(f, model)\u001b[0m\n\u001b[1;32m 355\u001b[0m \u001b[0mlayer_names\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfiltered_layer_names\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 356\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlayer_names\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_layers\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 357\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 358\u001b[0m \u001b[0;34m\"Layer count mismatch when loading weights from file. \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 359\u001b[0m \u001b[0;34mf\"Model expected {len(filtered_layers)} layers, found \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 181 |
"\u001b[0;31mValueError\u001b[0m: Layer count mismatch when loading weights from file. Model expected 13 layers, found 16 saved layers."
|
benchmark/tensorflow_15/tensorflow_15_fixed.ipynb
CHANGED
|
@@ -171,7 +171,7 @@
|
|
| 171 |
},
|
| 172 |
{
|
| 173 |
"cell_type": "code",
|
| 174 |
-
"execution_count":
|
| 175 |
"metadata": {
|
| 176 |
"execution": {
|
| 177 |
"iopub.execute_input": "2023-08-13T14:02:45.406959Z",
|
|
@@ -181,15 +181,7 @@
|
|
| 181 |
"shell.execute_reply.started": "2023-08-13T14:02:45.406935Z"
|
| 182 |
}
|
| 183 |
},
|
| 184 |
-
"outputs": [
|
| 185 |
-
{
|
| 186 |
-
"name": "stdout",
|
| 187 |
-
"output_type": "stream",
|
| 188 |
-
"text": [
|
| 189 |
-
"['Chic', 'Duck']\n"
|
| 190 |
-
]
|
| 191 |
-
}
|
| 192 |
-
],
|
| 193 |
"source": [
|
| 194 |
"class_names = train_ds.class_names\n",
|
| 195 |
"print(class_names)"
|
|
@@ -204,7 +196,7 @@
|
|
| 204 |
},
|
| 205 |
{
|
| 206 |
"cell_type": "code",
|
| 207 |
-
"execution_count":
|
| 208 |
"metadata": {
|
| 209 |
"execution": {
|
| 210 |
"iopub.execute_input": "2023-08-13T14:02:45.418637Z",
|
|
@@ -214,23 +206,14 @@
|
|
| 214 |
"shell.execute_reply.started": "2023-08-13T14:02:45.418605Z"
|
| 215 |
}
|
| 216 |
},
|
| 217 |
-
"outputs": [
|
| 218 |
-
{
|
| 219 |
-
"name": "stdout",
|
| 220 |
-
"output_type": "stream",
|
| 221 |
-
"text": [
|
| 222 |
-
"Downloading data from https://storage.googleapis.com/tensorflow/keras-applications/resnet/resnet50_weights_tf_dim_ordering_tf_kernels_notop.h5\n",
|
| 223 |
-
"\u001b[1m94765736/94765736\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m3s\u001b[0m 0us/step\n"
|
| 224 |
-
]
|
| 225 |
-
}
|
| 226 |
-
],
|
| 227 |
"source": [
|
| 228 |
"base_model = tf.keras.applications.ResNet50(weights = 'imagenet', include_top = False, input_shape = (224,224,3))"
|
| 229 |
]
|
| 230 |
},
|
| 231 |
{
|
| 232 |
"cell_type": "code",
|
| 233 |
-
"execution_count":
|
| 234 |
"metadata": {
|
| 235 |
"execution": {
|
| 236 |
"iopub.execute_input": "2023-08-13T14:02:51.116122Z",
|
|
@@ -259,7 +242,7 @@
|
|
| 259 |
},
|
| 260 |
{
|
| 261 |
"cell_type": "code",
|
| 262 |
-
"execution_count":
|
| 263 |
"metadata": {
|
| 264 |
"execution": {
|
| 265 |
"iopub.execute_input": "2023-08-13T14:02:51.199550Z",
|
|
@@ -277,7 +260,7 @@
|
|
| 277 |
},
|
| 278 |
{
|
| 279 |
"cell_type": "code",
|
| 280 |
-
"execution_count":
|
| 281 |
"metadata": {
|
| 282 |
"execution": {
|
| 283 |
"iopub.execute_input": "2023-08-13T14:02:51.215197Z",
|
|
@@ -298,7 +281,7 @@
|
|
| 298 |
},
|
| 299 |
{
|
| 300 |
"cell_type": "code",
|
| 301 |
-
"execution_count":
|
| 302 |
"metadata": {
|
| 303 |
"execution": {
|
| 304 |
"iopub.execute_input": "2023-08-13T14:02:51.238258Z",
|
|
@@ -314,9 +297,9 @@
|
|
| 314 |
"output_type": "stream",
|
| 315 |
"text": [
|
| 316 |
"Epoch 1/2\n",
|
| 317 |
-
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 318 |
"Epoch 2/2\n",
|
| 319 |
-
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 320 |
]
|
| 321 |
}
|
| 322 |
],
|
|
@@ -348,7 +331,7 @@
|
|
| 348 |
},
|
| 349 |
{
|
| 350 |
"cell_type": "code",
|
| 351 |
-
"execution_count":
|
| 352 |
"metadata": {
|
| 353 |
"execution": {
|
| 354 |
"iopub.execute_input": "2023-08-13T14:27:29.800492Z",
|
|
@@ -363,7 +346,7 @@
|
|
| 363 |
"name": "stdout",
|
| 364 |
"output_type": "stream",
|
| 365 |
"text": [
|
| 366 |
-
" Test Loss: 0.
|
| 367 |
"Test Accuracy: 100.00%\n"
|
| 368 |
]
|
| 369 |
}
|
|
@@ -376,7 +359,7 @@
|
|
| 376 |
},
|
| 377 |
{
|
| 378 |
"cell_type": "code",
|
| 379 |
-
"execution_count":
|
| 380 |
"metadata": {
|
| 381 |
"execution": {
|
| 382 |
"iopub.execute_input": "2023-08-13T14:52:01.475250Z",
|
|
@@ -391,7 +374,7 @@
|
|
| 391 |
"name": "stdout",
|
| 392 |
"output_type": "stream",
|
| 393 |
"text": [
|
| 394 |
-
"\u001b[1m49/49\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 395 |
]
|
| 396 |
}
|
| 397 |
],
|
|
@@ -418,7 +401,7 @@
|
|
| 418 |
},
|
| 419 |
{
|
| 420 |
"cell_type": "code",
|
| 421 |
-
"execution_count":
|
| 422 |
"metadata": {
|
| 423 |
"execution": {
|
| 424 |
"iopub.execute_input": "2023-08-13T14:51:40.649738Z",
|
|
@@ -434,53 +417,53 @@
|
|
| 434 |
"output_type": "stream",
|
| 435 |
"text": [
|
| 436 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step\n",
|
| 437 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━
|
| 438 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 439 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 440 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 441 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 442 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 443 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 444 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 445 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 446 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 147ms/step\n",
|
|
|
|
| 447 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 153ms/step\n",
|
| 448 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 449 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 146ms/step\n",
|
| 450 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 140ms/step\n",
|
| 451 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━���\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 159ms/step\n",
|
| 452 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 150ms/step\n",
|
| 453 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 145ms/step\n",
|
| 454 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 146ms/step\n",
|
| 455 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 147ms/step\n",
|
| 456 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 146ms/step\n",
|
| 457 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 145ms/step\n",
|
| 458 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 159ms/step\n",
|
| 459 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 147ms/step\n",
|
| 460 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 147ms/step\n",
|
|
|
|
| 461 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 145ms/step\n",
|
| 462 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 463 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 464 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 465 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
|
|
|
|
|
|
|
|
|
| 466 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 165ms/step\n",
|
| 467 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 468 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 469 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 145ms/step\n",
|
| 470 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 161ms/step\n",
|
| 471 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 160ms/step\n",
|
| 472 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 164ms/step\n",
|
| 473 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 157ms/step\n",
|
| 474 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 160ms/step\n",
|
| 475 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 161ms/step\n",
|
| 476 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 163ms/step\n",
|
| 477 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 478 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 479 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 480 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 481 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 153ms/step\n",
|
| 482 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 167ms/step\n",
|
| 483 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 484 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step\n"
|
| 485 |
]
|
| 486 |
},
|
|
@@ -490,7 +473,7 @@
|
|
| 490 |
"array([[146]], dtype=int32)"
|
| 491 |
]
|
| 492 |
},
|
| 493 |
-
"execution_count":
|
| 494 |
"metadata": {},
|
| 495 |
"output_type": "execute_result"
|
| 496 |
}
|
|
|
|
| 171 |
},
|
| 172 |
{
|
| 173 |
"cell_type": "code",
|
| 174 |
+
"execution_count": null,
|
| 175 |
"metadata": {
|
| 176 |
"execution": {
|
| 177 |
"iopub.execute_input": "2023-08-13T14:02:45.406959Z",
|
|
|
|
| 181 |
"shell.execute_reply.started": "2023-08-13T14:02:45.406935Z"
|
| 182 |
}
|
| 183 |
},
|
| 184 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
"source": [
|
| 186 |
"class_names = train_ds.class_names\n",
|
| 187 |
"print(class_names)"
|
|
|
|
| 196 |
},
|
| 197 |
{
|
| 198 |
"cell_type": "code",
|
| 199 |
+
"execution_count": 6,
|
| 200 |
"metadata": {
|
| 201 |
"execution": {
|
| 202 |
"iopub.execute_input": "2023-08-13T14:02:45.418637Z",
|
|
|
|
| 206 |
"shell.execute_reply.started": "2023-08-13T14:02:45.418605Z"
|
| 207 |
}
|
| 208 |
},
|
| 209 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
"source": [
|
| 211 |
"base_model = tf.keras.applications.ResNet50(weights = 'imagenet', include_top = False, input_shape = (224,224,3))"
|
| 212 |
]
|
| 213 |
},
|
| 214 |
{
|
| 215 |
"cell_type": "code",
|
| 216 |
+
"execution_count": 7,
|
| 217 |
"metadata": {
|
| 218 |
"execution": {
|
| 219 |
"iopub.execute_input": "2023-08-13T14:02:51.116122Z",
|
|
|
|
| 242 |
},
|
| 243 |
{
|
| 244 |
"cell_type": "code",
|
| 245 |
+
"execution_count": 8,
|
| 246 |
"metadata": {
|
| 247 |
"execution": {
|
| 248 |
"iopub.execute_input": "2023-08-13T14:02:51.199550Z",
|
|
|
|
| 260 |
},
|
| 261 |
{
|
| 262 |
"cell_type": "code",
|
| 263 |
+
"execution_count": 9,
|
| 264 |
"metadata": {
|
| 265 |
"execution": {
|
| 266 |
"iopub.execute_input": "2023-08-13T14:02:51.215197Z",
|
|
|
|
| 281 |
},
|
| 282 |
{
|
| 283 |
"cell_type": "code",
|
| 284 |
+
"execution_count": 10,
|
| 285 |
"metadata": {
|
| 286 |
"execution": {
|
| 287 |
"iopub.execute_input": "2023-08-13T14:02:51.238258Z",
|
|
|
|
| 297 |
"output_type": "stream",
|
| 298 |
"text": [
|
| 299 |
"Epoch 1/2\n",
|
| 300 |
+
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m116s\u001b[0m 453ms/step - accuracy: 0.7965 - loss: 0.4471 - val_accuracy: 0.9932 - val_loss: 0.0220 - learning_rate: 0.0010\n",
|
| 301 |
"Epoch 2/2\n",
|
| 302 |
+
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m62s\u001b[0m 318ms/step - accuracy: 1.0000 - loss: 2.8730e-06 - val_accuracy: 1.0000 - val_loss: 0.0018 - learning_rate: 0.0010\n"
|
| 303 |
]
|
| 304 |
}
|
| 305 |
],
|
|
|
|
| 331 |
},
|
| 332 |
{
|
| 333 |
"cell_type": "code",
|
| 334 |
+
"execution_count": 11,
|
| 335 |
"metadata": {
|
| 336 |
"execution": {
|
| 337 |
"iopub.execute_input": "2023-08-13T14:27:29.800492Z",
|
|
|
|
| 346 |
"name": "stdout",
|
| 347 |
"output_type": "stream",
|
| 348 |
"text": [
|
| 349 |
+
" Test Loss: 0.00153\n",
|
| 350 |
"Test Accuracy: 100.00%\n"
|
| 351 |
]
|
| 352 |
}
|
|
|
|
| 359 |
},
|
| 360 |
{
|
| 361 |
"cell_type": "code",
|
| 362 |
+
"execution_count": 12,
|
| 363 |
"metadata": {
|
| 364 |
"execution": {
|
| 365 |
"iopub.execute_input": "2023-08-13T14:52:01.475250Z",
|
|
|
|
| 374 |
"name": "stdout",
|
| 375 |
"output_type": "stream",
|
| 376 |
"text": [
|
| 377 |
+
"\u001b[1m49/49\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m10s\u001b[0m 186ms/step\n"
|
| 378 |
]
|
| 379 |
}
|
| 380 |
],
|
|
|
|
| 401 |
},
|
| 402 |
{
|
| 403 |
"cell_type": "code",
|
| 404 |
+
"execution_count": 13,
|
| 405 |
"metadata": {
|
| 406 |
"execution": {
|
| 407 |
"iopub.execute_input": "2023-08-13T14:51:40.649738Z",
|
|
|
|
| 417 |
"output_type": "stream",
|
| 418 |
"text": [
|
| 419 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step\n",
|
| 420 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 171ms/step\n",
|
| 421 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 174ms/step\n",
|
| 422 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 214ms/step\n",
|
| 423 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 215ms/step\n",
|
| 424 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 219ms/step\n",
|
| 425 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 212ms/step\n",
|
| 426 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 201ms/step\n",
|
| 427 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 192ms/step\n",
|
| 428 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 168ms/step\n",
|
| 429 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 205ms/step\n",
|
| 430 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 246ms/step\n",
|
| 431 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 203ms/step\n",
|
| 432 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 200ms/step\n",
|
| 433 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 168ms/step\n",
|
| 434 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 142ms/step\n",
|
| 435 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 144ms/step\n",
|
| 436 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 147ms/step\n",
|
| 437 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 167ms/step\n",
|
| 438 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 153ms/step\n",
|
| 439 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 148ms/step\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 440 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 147ms/step\n",
|
| 441 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 151ms/step\n",
|
| 442 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 145ms/step\n",
|
| 443 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 143ms/step\n",
|
| 444 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 141ms/step\n",
|
| 445 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 148ms/step\n",
|
| 446 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 141ms/step\n",
|
| 447 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 143ms/step\n",
|
| 448 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 144ms/step\n",
|
| 449 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 153ms/step\n",
|
| 450 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 165ms/step\n",
|
| 451 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 150ms/step\n",
|
| 452 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 148ms/step\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 163ms/step\n",
|
| 454 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 180ms/step\n",
|
| 455 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 190ms/step\n",
|
| 456 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 155ms/step\n",
|
| 457 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 151ms/step\n",
|
|
|
|
| 458 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 167ms/step\n",
|
| 459 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 158ms/step\n",
|
| 460 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 154ms/step\n",
|
| 461 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 143ms/step\n",
|
| 462 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 148ms/step\n",
|
| 463 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 142ms/step\n",
|
| 464 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 141ms/step\n",
|
| 465 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 157ms/step\n",
|
| 466 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 152ms/step\n",
|
| 467 |
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step\n"
|
| 468 |
]
|
| 469 |
},
|
|
|
|
| 473 |
"array([[146]], dtype=int32)"
|
| 474 |
]
|
| 475 |
},
|
| 476 |
+
"execution_count": 13,
|
| 477 |
"metadata": {},
|
| 478 |
"output_type": "execute_result"
|
| 479 |
}
|
benchmark/tensorflow_15/tensorflow_15_reproduced.ipynb
CHANGED
|
@@ -171,7 +171,7 @@
|
|
| 171 |
},
|
| 172 |
{
|
| 173 |
"cell_type": "code",
|
| 174 |
-
"execution_count":
|
| 175 |
"metadata": {
|
| 176 |
"execution": {
|
| 177 |
"iopub.execute_input": "2023-08-13T14:02:45.406959Z",
|
|
@@ -181,15 +181,7 @@
|
|
| 181 |
"shell.execute_reply.started": "2023-08-13T14:02:45.406935Z"
|
| 182 |
}
|
| 183 |
},
|
| 184 |
-
"outputs": [
|
| 185 |
-
{
|
| 186 |
-
"name": "stdout",
|
| 187 |
-
"output_type": "stream",
|
| 188 |
-
"text": [
|
| 189 |
-
"['Chic', 'Duck']\n"
|
| 190 |
-
]
|
| 191 |
-
}
|
| 192 |
-
],
|
| 193 |
"source": [
|
| 194 |
"class_names = train_ds.class_names\n",
|
| 195 |
"print(class_names)"
|
|
@@ -204,7 +196,7 @@
|
|
| 204 |
},
|
| 205 |
{
|
| 206 |
"cell_type": "code",
|
| 207 |
-
"execution_count":
|
| 208 |
"metadata": {
|
| 209 |
"execution": {
|
| 210 |
"iopub.execute_input": "2023-08-13T14:02:45.418637Z",
|
|
@@ -214,23 +206,14 @@
|
|
| 214 |
"shell.execute_reply.started": "2023-08-13T14:02:45.418605Z"
|
| 215 |
}
|
| 216 |
},
|
| 217 |
-
"outputs": [
|
| 218 |
-
{
|
| 219 |
-
"name": "stdout",
|
| 220 |
-
"output_type": "stream",
|
| 221 |
-
"text": [
|
| 222 |
-
"Downloading data from https://storage.googleapis.com/tensorflow/keras-applications/resnet/resnet50_weights_tf_dim_ordering_tf_kernels_notop.h5\n",
|
| 223 |
-
"\u001b[1m94765736/94765736\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m3s\u001b[0m 0us/step\n"
|
| 224 |
-
]
|
| 225 |
-
}
|
| 226 |
-
],
|
| 227 |
"source": [
|
| 228 |
"base_model = tf.keras.applications.ResNet50(weights = 'imagenet', include_top = False, input_shape = (224,224,3))"
|
| 229 |
]
|
| 230 |
},
|
| 231 |
{
|
| 232 |
"cell_type": "code",
|
| 233 |
-
"execution_count":
|
| 234 |
"metadata": {
|
| 235 |
"execution": {
|
| 236 |
"iopub.execute_input": "2023-08-13T14:02:51.116122Z",
|
|
@@ -259,7 +242,7 @@
|
|
| 259 |
},
|
| 260 |
{
|
| 261 |
"cell_type": "code",
|
| 262 |
-
"execution_count":
|
| 263 |
"metadata": {
|
| 264 |
"execution": {
|
| 265 |
"iopub.execute_input": "2023-08-13T14:02:51.199550Z",
|
|
@@ -277,7 +260,7 @@
|
|
| 277 |
},
|
| 278 |
{
|
| 279 |
"cell_type": "code",
|
| 280 |
-
"execution_count":
|
| 281 |
"metadata": {
|
| 282 |
"execution": {
|
| 283 |
"iopub.execute_input": "2023-08-13T14:02:51.215197Z",
|
|
@@ -298,7 +281,7 @@
|
|
| 298 |
},
|
| 299 |
{
|
| 300 |
"cell_type": "code",
|
| 301 |
-
"execution_count":
|
| 302 |
"metadata": {
|
| 303 |
"execution": {
|
| 304 |
"iopub.execute_input": "2023-08-13T14:02:51.238258Z",
|
|
@@ -314,9 +297,9 @@
|
|
| 314 |
"output_type": "stream",
|
| 315 |
"text": [
|
| 316 |
"Epoch 1/2\n",
|
| 317 |
-
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 318 |
"Epoch 2/2\n",
|
| 319 |
-
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 320 |
]
|
| 321 |
}
|
| 322 |
],
|
|
@@ -348,7 +331,7 @@
|
|
| 348 |
},
|
| 349 |
{
|
| 350 |
"cell_type": "code",
|
| 351 |
-
"execution_count":
|
| 352 |
"metadata": {
|
| 353 |
"execution": {
|
| 354 |
"iopub.execute_input": "2023-08-13T14:27:29.800492Z",
|
|
@@ -363,7 +346,7 @@
|
|
| 363 |
"name": "stdout",
|
| 364 |
"output_type": "stream",
|
| 365 |
"text": [
|
| 366 |
-
" Test Loss: 0.
|
| 367 |
"Test Accuracy: 100.00%\n"
|
| 368 |
]
|
| 369 |
}
|
|
@@ -376,7 +359,7 @@
|
|
| 376 |
},
|
| 377 |
{
|
| 378 |
"cell_type": "code",
|
| 379 |
-
"execution_count":
|
| 380 |
"metadata": {
|
| 381 |
"execution": {
|
| 382 |
"iopub.execute_input": "2023-08-13T14:52:01.475250Z",
|
|
@@ -391,7 +374,7 @@
|
|
| 391 |
"name": "stdout",
|
| 392 |
"output_type": "stream",
|
| 393 |
"text": [
|
| 394 |
-
"\u001b[1m49/49\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 395 |
]
|
| 396 |
}
|
| 397 |
],
|
|
@@ -418,7 +401,7 @@
|
|
| 418 |
},
|
| 419 |
{
|
| 420 |
"cell_type": "code",
|
| 421 |
-
"execution_count":
|
| 422 |
"metadata": {
|
| 423 |
"execution": {
|
| 424 |
"iopub.execute_input": "2023-08-13T14:51:40.649738Z",
|
|
@@ -436,7 +419,7 @@
|
|
| 436 |
"traceback": [
|
| 437 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 438 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 439 |
-
"\u001b[0;32m<ipython-input-
|
| 440 |
"\u001b[0;31mAttributeError\u001b[0m: 'Functional' object has no attribute 'predict_classes'"
|
| 441 |
]
|
| 442 |
}
|
|
|
|
| 171 |
},
|
| 172 |
{
|
| 173 |
"cell_type": "code",
|
| 174 |
+
"execution_count": null,
|
| 175 |
"metadata": {
|
| 176 |
"execution": {
|
| 177 |
"iopub.execute_input": "2023-08-13T14:02:45.406959Z",
|
|
|
|
| 181 |
"shell.execute_reply.started": "2023-08-13T14:02:45.406935Z"
|
| 182 |
}
|
| 183 |
},
|
| 184 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
"source": [
|
| 186 |
"class_names = train_ds.class_names\n",
|
| 187 |
"print(class_names)"
|
|
|
|
| 196 |
},
|
| 197 |
{
|
| 198 |
"cell_type": "code",
|
| 199 |
+
"execution_count": 6,
|
| 200 |
"metadata": {
|
| 201 |
"execution": {
|
| 202 |
"iopub.execute_input": "2023-08-13T14:02:45.418637Z",
|
|
|
|
| 206 |
"shell.execute_reply.started": "2023-08-13T14:02:45.418605Z"
|
| 207 |
}
|
| 208 |
},
|
| 209 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
"source": [
|
| 211 |
"base_model = tf.keras.applications.ResNet50(weights = 'imagenet', include_top = False, input_shape = (224,224,3))"
|
| 212 |
]
|
| 213 |
},
|
| 214 |
{
|
| 215 |
"cell_type": "code",
|
| 216 |
+
"execution_count": 7,
|
| 217 |
"metadata": {
|
| 218 |
"execution": {
|
| 219 |
"iopub.execute_input": "2023-08-13T14:02:51.116122Z",
|
|
|
|
| 242 |
},
|
| 243 |
{
|
| 244 |
"cell_type": "code",
|
| 245 |
+
"execution_count": 8,
|
| 246 |
"metadata": {
|
| 247 |
"execution": {
|
| 248 |
"iopub.execute_input": "2023-08-13T14:02:51.199550Z",
|
|
|
|
| 260 |
},
|
| 261 |
{
|
| 262 |
"cell_type": "code",
|
| 263 |
+
"execution_count": 9,
|
| 264 |
"metadata": {
|
| 265 |
"execution": {
|
| 266 |
"iopub.execute_input": "2023-08-13T14:02:51.215197Z",
|
|
|
|
| 281 |
},
|
| 282 |
{
|
| 283 |
"cell_type": "code",
|
| 284 |
+
"execution_count": 10,
|
| 285 |
"metadata": {
|
| 286 |
"execution": {
|
| 287 |
"iopub.execute_input": "2023-08-13T14:02:51.238258Z",
|
|
|
|
| 297 |
"output_type": "stream",
|
| 298 |
"text": [
|
| 299 |
"Epoch 1/2\n",
|
| 300 |
+
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m128s\u001b[0m 578ms/step - accuracy: 0.8190 - loss: 0.4595 - val_accuracy: 0.9932 - val_loss: 0.0371 - learning_rate: 0.0010\n",
|
| 301 |
"Epoch 2/2\n",
|
| 302 |
+
"\u001b[1m196/196\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m63s\u001b[0m 321ms/step - accuracy: 0.9957 - loss: 0.0163 - val_accuracy: 1.0000 - val_loss: 5.0102e-05 - learning_rate: 0.0010\n"
|
| 303 |
]
|
| 304 |
}
|
| 305 |
],
|
|
|
|
| 331 |
},
|
| 332 |
{
|
| 333 |
"cell_type": "code",
|
| 334 |
+
"execution_count": 11,
|
| 335 |
"metadata": {
|
| 336 |
"execution": {
|
| 337 |
"iopub.execute_input": "2023-08-13T14:27:29.800492Z",
|
|
|
|
| 346 |
"name": "stdout",
|
| 347 |
"output_type": "stream",
|
| 348 |
"text": [
|
| 349 |
+
" Test Loss: 0.00002\n",
|
| 350 |
"Test Accuracy: 100.00%\n"
|
| 351 |
]
|
| 352 |
}
|
|
|
|
| 359 |
},
|
| 360 |
{
|
| 361 |
"cell_type": "code",
|
| 362 |
+
"execution_count": 12,
|
| 363 |
"metadata": {
|
| 364 |
"execution": {
|
| 365 |
"iopub.execute_input": "2023-08-13T14:52:01.475250Z",
|
|
|
|
| 374 |
"name": "stdout",
|
| 375 |
"output_type": "stream",
|
| 376 |
"text": [
|
| 377 |
+
"\u001b[1m49/49\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m19s\u001b[0m 311ms/step\n"
|
| 378 |
]
|
| 379 |
}
|
| 380 |
],
|
|
|
|
| 401 |
},
|
| 402 |
{
|
| 403 |
"cell_type": "code",
|
| 404 |
+
"execution_count": 13,
|
| 405 |
"metadata": {
|
| 406 |
"execution": {
|
| 407 |
"iopub.execute_input": "2023-08-13T14:51:40.649738Z",
|
|
|
|
| 419 |
"traceback": [
|
| 420 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 421 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 422 |
+
"\u001b[0;32m<ipython-input-13-eb8427388746>\u001b[0m in \u001b[0;36m<cell line: 3>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mlabels\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mtest_ds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0mpredictions\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mconcatenate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mpredictions\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpredict_classes\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 5\u001b[0m \u001b[0mlabels\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mconcatenate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mlabels\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0margmax\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnumpy\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 423 |
"\u001b[0;31mAttributeError\u001b[0m: 'Functional' object has no attribute 'predict_classes'"
|
| 424 |
]
|
| 425 |
}
|
benchmark/tensorflow_2/tensorflow_2_fixed.ipynb
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
},
|
| 28 |
{
|
| 29 |
"cell_type": "code",
|
| 30 |
-
"execution_count":
|
| 31 |
"metadata": {
|
| 32 |
"execution": {
|
| 33 |
"iopub.execute_input": "2023-12-20T19:50:38.166455Z",
|
|
@@ -44,7 +44,7 @@
|
|
| 44 |
},
|
| 45 |
{
|
| 46 |
"cell_type": "code",
|
| 47 |
-
"execution_count":
|
| 48 |
"metadata": {},
|
| 49 |
"outputs": [],
|
| 50 |
"source": [
|
|
@@ -61,7 +61,7 @@
|
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"cell_type": "code",
|
| 64 |
-
"execution_count":
|
| 65 |
"metadata": {
|
| 66 |
"execution": {
|
| 67 |
"iopub.execute_input": "2023-12-20T19:50:45.790896Z",
|
|
@@ -107,7 +107,7 @@
|
|
| 107 |
},
|
| 108 |
{
|
| 109 |
"cell_type": "code",
|
| 110 |
-
"execution_count":
|
| 111 |
"metadata": {
|
| 112 |
"execution": {
|
| 113 |
"iopub.execute_input": "2023-12-20T19:50:56.614037Z",
|
|
@@ -140,7 +140,7 @@
|
|
| 140 |
},
|
| 141 |
{
|
| 142 |
"cell_type": "code",
|
| 143 |
-
"execution_count":
|
| 144 |
"metadata": {
|
| 145 |
"execution": {
|
| 146 |
"iopub.execute_input": "2023-12-20T19:51:29.354256Z",
|
|
@@ -151,6 +151,13 @@
|
|
| 151 |
}
|
| 152 |
},
|
| 153 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
{
|
| 155 |
"name": "stderr",
|
| 156 |
"output_type": "stream",
|
|
@@ -163,7 +170,8 @@
|
|
| 163 |
"name": "stdout",
|
| 164 |
"output_type": "stream",
|
| 165 |
"text": [
|
| 166 |
-
"
|
|
|
|
| 167 |
]
|
| 168 |
},
|
| 169 |
{
|
|
@@ -178,25 +186,25 @@
|
|
| 178 |
"name": "stdout",
|
| 179 |
"output_type": "stream",
|
| 180 |
"text": [
|
| 181 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step - accuracy: 0.
|
| 182 |
"Epoch 2/5\n",
|
| 183 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 184 |
"Epoch 3/5\n",
|
| 185 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 186 |
"Epoch 4/5\n",
|
| 187 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 188 |
"Epoch 5/5\n",
|
| 189 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 190 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 191 |
]
|
| 192 |
},
|
| 193 |
{
|
| 194 |
"data": {
|
| 195 |
"text/plain": [
|
| 196 |
-
"[
|
| 197 |
]
|
| 198 |
},
|
| 199 |
-
"execution_count":
|
| 200 |
"metadata": {},
|
| 201 |
"output_type": "execute_result"
|
| 202 |
}
|
|
@@ -223,7 +231,7 @@
|
|
| 223 |
},
|
| 224 |
{
|
| 225 |
"cell_type": "code",
|
| 226 |
-
"execution_count":
|
| 227 |
"metadata": {
|
| 228 |
"execution": {
|
| 229 |
"iopub.execute_input": "2023-12-20T19:51:58.182938Z",
|
|
@@ -233,32 +241,14 @@
|
|
| 233 |
"shell.execute_reply.started": "2023-12-20T19:51:58.182905Z"
|
| 234 |
}
|
| 235 |
},
|
| 236 |
-
"outputs": [
|
| 237 |
-
{
|
| 238 |
-
"name": "stdout",
|
| 239 |
-
"output_type": "stream",
|
| 240 |
-
"text": [
|
| 241 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 7ms/step - accuracy: 0.2180 - loss: 2.2783 \n"
|
| 242 |
-
]
|
| 243 |
-
},
|
| 244 |
-
{
|
| 245 |
-
"data": {
|
| 246 |
-
"text/plain": [
|
| 247 |
-
"[1.4066473245620728, 0.5]"
|
| 248 |
-
]
|
| 249 |
-
},
|
| 250 |
-
"execution_count": 7,
|
| 251 |
-
"metadata": {},
|
| 252 |
-
"output_type": "execute_result"
|
| 253 |
-
}
|
| 254 |
-
],
|
| 255 |
"source": [
|
| 256 |
"model.evaluate(test_generator)"
|
| 257 |
]
|
| 258 |
},
|
| 259 |
{
|
| 260 |
"cell_type": "code",
|
| 261 |
-
"execution_count":
|
| 262 |
"metadata": {
|
| 263 |
"execution": {
|
| 264 |
"iopub.execute_input": "2023-12-20T19:53:59.121550Z",
|
|
@@ -268,35 +258,7 @@
|
|
| 268 |
"shell.execute_reply.started": "2023-12-20T19:53:59.121510Z"
|
| 269 |
}
|
| 270 |
},
|
| 271 |
-
"outputs": [
|
| 272 |
-
{
|
| 273 |
-
"name": "stdout",
|
| 274 |
-
"output_type": "stream",
|
| 275 |
-
"text": [
|
| 276 |
-
"Epoch 1/5\n",
|
| 277 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m2s\u001b[0m 2s/step - accuracy: 0.5000 - loss: 0.6962 - val_accuracy: 0.0000e+00 - val_loss: 5.6572\n",
|
| 278 |
-
"Epoch 2/5\n",
|
| 279 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 969ms/step - accuracy: 1.0000 - loss: 0.0075 - val_accuracy: 0.5000 - val_loss: 35.4526\n",
|
| 280 |
-
"Epoch 3/5\n",
|
| 281 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step - accuracy: 0.5000 - loss: 11.1134 - val_accuracy: 0.5000 - val_loss: 66.2266\n",
|
| 282 |
-
"Epoch 4/5\n",
|
| 283 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step - accuracy: 0.5000 - loss: 31.7608 - val_accuracy: 0.5000 - val_loss: 48.0883\n",
|
| 284 |
-
"Epoch 5/5\n",
|
| 285 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 986ms/step - accuracy: 0.7500 - loss: 11.7477 - val_accuracy: 0.0000e+00 - val_loss: 18.7021\n",
|
| 286 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 27ms/step - accuracy: 0.2336 - loss: 6.5994 \n"
|
| 287 |
-
]
|
| 288 |
-
},
|
| 289 |
-
{
|
| 290 |
-
"data": {
|
| 291 |
-
"text/plain": [
|
| 292 |
-
"[8.03508472442627, 0.25]"
|
| 293 |
-
]
|
| 294 |
-
},
|
| 295 |
-
"execution_count": 10,
|
| 296 |
-
"metadata": {},
|
| 297 |
-
"output_type": "execute_result"
|
| 298 |
-
}
|
| 299 |
-
],
|
| 300 |
"source": [
|
| 301 |
"def prepare_model():\n",
|
| 302 |
" model = Sequential()\n",
|
|
@@ -322,7 +284,7 @@
|
|
| 322 |
},
|
| 323 |
{
|
| 324 |
"cell_type": "code",
|
| 325 |
-
"execution_count":
|
| 326 |
"metadata": {
|
| 327 |
"execution": {
|
| 328 |
"iopub.execute_input": "2023-12-20T19:56:11.309742Z",
|
|
@@ -332,35 +294,7 @@
|
|
| 332 |
"shell.execute_reply.started": "2023-12-20T19:56:11.309713Z"
|
| 333 |
}
|
| 334 |
},
|
| 335 |
-
"outputs": [
|
| 336 |
-
{
|
| 337 |
-
"name": "stdout",
|
| 338 |
-
"output_type": "stream",
|
| 339 |
-
"text": [
|
| 340 |
-
"Epoch 1/5\n",
|
| 341 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m2s\u001b[0m 2s/step - accuracy: 0.7500 - loss: 0.6904 - val_accuracy: 0.5000 - val_loss: 1.0907\n",
|
| 342 |
-
"Epoch 2/5\n",
|
| 343 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 264ms/step - accuracy: 0.5000 - loss: 0.6330 - val_accuracy: 0.5000 - val_loss: 1.3007\n",
|
| 344 |
-
"Epoch 3/5\n",
|
| 345 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 249ms/step - accuracy: 0.5000 - loss: 0.7753 - val_accuracy: 0.5000 - val_loss: 0.7774\n",
|
| 346 |
-
"Epoch 4/5\n",
|
| 347 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 267ms/step - accuracy: 0.7500 - loss: 0.4554 - val_accuracy: 0.5000 - val_loss: 0.9031\n",
|
| 348 |
-
"Epoch 5/5\n",
|
| 349 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 271ms/step - accuracy: 1.0000 - loss: 0.3848 - val_accuracy: 0.5000 - val_loss: 0.8823\n",
|
| 350 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 9ms/step - accuracy: 0.3458 - loss: 0.7522 \n"
|
| 351 |
-
]
|
| 352 |
-
},
|
| 353 |
-
{
|
| 354 |
-
"data": {
|
| 355 |
-
"text/plain": [
|
| 356 |
-
"[0.7701693177223206, 0.375]"
|
| 357 |
-
]
|
| 358 |
-
},
|
| 359 |
-
"execution_count": 12,
|
| 360 |
-
"metadata": {},
|
| 361 |
-
"output_type": "execute_result"
|
| 362 |
-
}
|
| 363 |
-
],
|
| 364 |
"source": [
|
| 365 |
"def prepare_model():\n",
|
| 366 |
" model = Sequential()\n",
|
|
@@ -393,7 +327,7 @@
|
|
| 393 |
},
|
| 394 |
{
|
| 395 |
"cell_type": "code",
|
| 396 |
-
"execution_count":
|
| 397 |
"metadata": {
|
| 398 |
"execution": {
|
| 399 |
"iopub.execute_input": "2023-12-20T19:57:28.208777Z",
|
|
@@ -403,35 +337,7 @@
|
|
| 403 |
"shell.execute_reply.started": "2023-12-20T19:57:28.208744Z"
|
| 404 |
}
|
| 405 |
},
|
| 406 |
-
"outputs": [
|
| 407 |
-
{
|
| 408 |
-
"name": "stdout",
|
| 409 |
-
"output_type": "stream",
|
| 410 |
-
"text": [
|
| 411 |
-
"Epoch 1/5\n",
|
| 412 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m2s\u001b[0m 2s/step - accuracy: 0.3750 - loss: 0.7022 - val_accuracy: 0.5000 - val_loss: 0.9562\n",
|
| 413 |
-
"Epoch 2/5\n",
|
| 414 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 256ms/step - accuracy: 0.6250 - loss: 0.6158 - val_accuracy: 0.5000 - val_loss: 2.0259\n",
|
| 415 |
-
"Epoch 3/5\n",
|
| 416 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 251ms/step - accuracy: 0.5000 - loss: 0.8807 - val_accuracy: 0.0000e+00 - val_loss: 1.0135\n",
|
| 417 |
-
"Epoch 4/5\n",
|
| 418 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 261ms/step - accuracy: 0.8750 - loss: 0.3902 - val_accuracy: 0.5000 - val_loss: 1.2975\n",
|
| 419 |
-
"Epoch 5/5\n",
|
| 420 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 269ms/step - accuracy: 0.7500 - loss: 0.4320 - val_accuracy: 0.5000 - val_loss: 1.1843\n",
|
| 421 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 8ms/step - accuracy: 0.2180 - loss: 1.2437 \n"
|
| 422 |
-
]
|
| 423 |
-
},
|
| 424 |
-
{
|
| 425 |
-
"data": {
|
| 426 |
-
"text/plain": [
|
| 427 |
-
"[0.8738863468170166, 0.5]"
|
| 428 |
-
]
|
| 429 |
-
},
|
| 430 |
-
"execution_count": 14,
|
| 431 |
-
"metadata": {},
|
| 432 |
-
"output_type": "execute_result"
|
| 433 |
-
}
|
| 434 |
-
],
|
| 435 |
"source": [
|
| 436 |
"def prepare_model():\n",
|
| 437 |
" model = Sequential()\n",
|
|
@@ -464,7 +370,7 @@
|
|
| 464 |
},
|
| 465 |
{
|
| 466 |
"cell_type": "code",
|
| 467 |
-
"execution_count":
|
| 468 |
"metadata": {
|
| 469 |
"execution": {
|
| 470 |
"iopub.execute_input": "2023-12-20T20:04:08.984286Z",
|
|
@@ -474,200 +380,7 @@
|
|
| 474 |
"shell.execute_reply.started": "2023-12-20T20:04:08.984240Z"
|
| 475 |
}
|
| 476 |
},
|
| 477 |
-
"outputs": [
|
| 478 |
-
{
|
| 479 |
-
"data": {
|
| 480 |
-
"text/html": [
|
| 481 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Model: \"sequential_10\"</span>\n",
|
| 482 |
-
"</pre>\n"
|
| 483 |
-
],
|
| 484 |
-
"text/plain": [
|
| 485 |
-
"\u001b[1mModel: \"sequential_10\"\u001b[0m\n"
|
| 486 |
-
]
|
| 487 |
-
},
|
| 488 |
-
"metadata": {},
|
| 489 |
-
"output_type": "display_data"
|
| 490 |
-
},
|
| 491 |
-
{
|
| 492 |
-
"data": {
|
| 493 |
-
"text/html": [
|
| 494 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 495 |
-
"┃<span style=\"font-weight: bold\"> Layer (type) </span>┃<span style=\"font-weight: bold\"> Output Shape </span>┃<span style=\"font-weight: bold\"> Param # </span>┃\n",
|
| 496 |
-
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 497 |
-
"│ conv2d_43 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">223</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">223</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">64</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">1,792</span> │\n",
|
| 498 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 499 |
-
"│ conv2d_44 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">223</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">223</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">64</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">36,928</span> │\n",
|
| 500 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 501 |
-
"│ max_pooling2d_26 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">111</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">111</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">64</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 502 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 503 |
-
"│ conv2d_45 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">111</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">111</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">73,856</span> │\n",
|
| 504 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 505 |
-
"│ conv2d_46 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">111</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">111</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">147,584</span> │\n",
|
| 506 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 507 |
-
"│ max_pooling2d_27 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">128</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 508 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 509 |
-
"│ conv2d_47 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">295,168</span> │\n",
|
| 510 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 511 |
-
"│ conv2d_48 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">590,080</span> │\n",
|
| 512 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 513 |
-
"│ conv2d_49 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">55</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">590,080</span> │\n",
|
| 514 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 515 |
-
"│ max_pooling2d_28 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 516 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 517 |
-
"│ conv2d_50 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">1,180,160</span> │\n",
|
| 518 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 519 |
-
"│ conv2d_51 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 520 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 521 |
-
"│ conv2d_52 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">27</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 522 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 523 |
-
"│ max_pooling2d_29 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 524 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 525 |
-
"│ conv2d_53 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 526 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 527 |
-
"│ conv2d_54 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 528 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 529 |
-
"│ conv2d_55 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Conv2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">13</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">2,359,808</span> │\n",
|
| 530 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 531 |
-
"│ max_pooling2d_30 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">MaxPooling2D</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">6</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">512</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 532 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 533 |
-
"│ flatten_10 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Flatten</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">18432</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 534 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 535 |
-
"│ dense_29 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dense</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">75,501,568</span> │\n",
|
| 536 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 537 |
-
"│ dropout_4 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dropout</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 538 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 539 |
-
"│ dense_30 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dense</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">16,781,312</span> │\n",
|
| 540 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 541 |
-
"│ dropout_5 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dropout</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">4096</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> │\n",
|
| 542 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 543 |
-
"│ dense_31 (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dense</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">2</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">8,194</span> │\n",
|
| 544 |
-
"└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘\n",
|
| 545 |
-
"</pre>\n"
|
| 546 |
-
],
|
| 547 |
-
"text/plain": [
|
| 548 |
-
"┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 549 |
-
"┃\u001b[1m \u001b[0m\u001b[1mLayer (type) \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mOutput Shape \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Param #\u001b[0m\u001b[1m \u001b[0m┃\n",
|
| 550 |
-
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 551 |
-
"│ conv2d_43 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m223\u001b[0m, \u001b[38;5;34m223\u001b[0m, \u001b[38;5;34m64\u001b[0m) │ \u001b[38;5;34m1,792\u001b[0m │\n",
|
| 552 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 553 |
-
"│ conv2d_44 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m223\u001b[0m, \u001b[38;5;34m223\u001b[0m, \u001b[38;5;34m64\u001b[0m) │ \u001b[38;5;34m36,928\u001b[0m │\n",
|
| 554 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 555 |
-
"│ max_pooling2d_26 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m111\u001b[0m, \u001b[38;5;34m111\u001b[0m, \u001b[38;5;34m64\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 556 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 557 |
-
"│ conv2d_45 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m111\u001b[0m, \u001b[38;5;34m111\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m73,856\u001b[0m │\n",
|
| 558 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 559 |
-
"│ conv2d_46 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m111\u001b[0m, \u001b[38;5;34m111\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m147,584\u001b[0m │\n",
|
| 560 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 561 |
-
"│ max_pooling2d_27 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m128\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 562 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 563 |
-
"│ conv2d_47 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m295,168\u001b[0m │\n",
|
| 564 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 565 |
-
"│ conv2d_48 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m590,080\u001b[0m │\n",
|
| 566 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 567 |
-
"│ conv2d_49 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m55\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m590,080\u001b[0m │\n",
|
| 568 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 569 |
-
"│ max_pooling2d_28 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 570 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 571 |
-
"│ conv2d_50 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m1,180,160\u001b[0m │\n",
|
| 572 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 573 |
-
"│ conv2d_51 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 574 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 575 |
-
"│ conv2d_52 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m27\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 576 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 577 |
-
"│ max_pooling2d_29 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 578 |
-
"├──────────────────────────────────────┼──────────────���──────────────┼─────────────────┤\n",
|
| 579 |
-
"│ conv2d_53 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 580 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 581 |
-
"│ conv2d_54 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 582 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 583 |
-
"│ conv2d_55 (\u001b[38;5;33mConv2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m13\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m2,359,808\u001b[0m │\n",
|
| 584 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 585 |
-
"│ max_pooling2d_30 (\u001b[38;5;33mMaxPooling2D\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m6\u001b[0m, \u001b[38;5;34m512\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 586 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 587 |
-
"│ flatten_10 (\u001b[38;5;33mFlatten\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m18432\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 588 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 589 |
-
"│ dense_29 (\u001b[38;5;33mDense\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m75,501,568\u001b[0m │\n",
|
| 590 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 591 |
-
"│ dropout_4 (\u001b[38;5;33mDropout\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 592 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 593 |
-
"│ dense_30 (\u001b[38;5;33mDense\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m16,781,312\u001b[0m │\n",
|
| 594 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 595 |
-
"│ dropout_5 (\u001b[38;5;33mDropout\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m4096\u001b[0m) │ \u001b[38;5;34m0\u001b[0m │\n",
|
| 596 |
-
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 597 |
-
"│ dense_31 (\u001b[38;5;33mDense\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m2\u001b[0m) │ \u001b[38;5;34m8,194\u001b[0m │\n",
|
| 598 |
-
"└──────────────────────────────────────┴─────────────────────────────┴─────────────��───┘\n"
|
| 599 |
-
]
|
| 600 |
-
},
|
| 601 |
-
"metadata": {},
|
| 602 |
-
"output_type": "display_data"
|
| 603 |
-
},
|
| 604 |
-
{
|
| 605 |
-
"data": {
|
| 606 |
-
"text/html": [
|
| 607 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\"> Total params: </span><span style=\"color: #00af00; text-decoration-color: #00af00\">107,005,762</span> (408.19 MB)\n",
|
| 608 |
-
"</pre>\n"
|
| 609 |
-
],
|
| 610 |
-
"text/plain": [
|
| 611 |
-
"\u001b[1m Total params: \u001b[0m\u001b[38;5;34m107,005,762\u001b[0m (408.19 MB)\n"
|
| 612 |
-
]
|
| 613 |
-
},
|
| 614 |
-
"metadata": {},
|
| 615 |
-
"output_type": "display_data"
|
| 616 |
-
},
|
| 617 |
-
{
|
| 618 |
-
"data": {
|
| 619 |
-
"text/html": [
|
| 620 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\"> Trainable params: </span><span style=\"color: #00af00; text-decoration-color: #00af00\">107,005,762</span> (408.19 MB)\n",
|
| 621 |
-
"</pre>\n"
|
| 622 |
-
],
|
| 623 |
-
"text/plain": [
|
| 624 |
-
"\u001b[1m Trainable params: \u001b[0m\u001b[38;5;34m107,005,762\u001b[0m (408.19 MB)\n"
|
| 625 |
-
]
|
| 626 |
-
},
|
| 627 |
-
"metadata": {},
|
| 628 |
-
"output_type": "display_data"
|
| 629 |
-
},
|
| 630 |
-
{
|
| 631 |
-
"data": {
|
| 632 |
-
"text/html": [
|
| 633 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\"> Non-trainable params: </span><span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> (0.00 B)\n",
|
| 634 |
-
"</pre>\n"
|
| 635 |
-
],
|
| 636 |
-
"text/plain": [
|
| 637 |
-
"\u001b[1m Non-trainable params: \u001b[0m\u001b[38;5;34m0\u001b[0m (0.00 B)\n"
|
| 638 |
-
]
|
| 639 |
-
},
|
| 640 |
-
"metadata": {},
|
| 641 |
-
"output_type": "display_data"
|
| 642 |
-
},
|
| 643 |
-
{
|
| 644 |
-
"name": "stdout",
|
| 645 |
-
"output_type": "stream",
|
| 646 |
-
"text": [
|
| 647 |
-
"Epoch 1/5\n",
|
| 648 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m8s\u001b[0m 8s/step - accuracy: 0.5000 - loss: 0.6933 - val_accuracy: 0.5000 - val_loss: 2.4683\n",
|
| 649 |
-
"Epoch 2/5\n",
|
| 650 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m4s\u001b[0m 4s/step - accuracy: 0.5000 - loss: 1.1338 - val_accuracy: 0.5000 - val_loss: 0.7069\n",
|
| 651 |
-
"Epoch 3/5\n",
|
| 652 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m4s\u001b[0m 4s/step - accuracy: 0.5000 - loss: 0.7134 - val_accuracy: 0.5000 - val_loss: 0.7027\n",
|
| 653 |
-
"Epoch 4/5\n",
|
| 654 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m4s\u001b[0m 4s/step - accuracy: 0.5000 - loss: 0.7037 - val_accuracy: 0.5000 - val_loss: 0.6958\n",
|
| 655 |
-
"Epoch 5/5\n",
|
| 656 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m4s\u001b[0m 4s/step - accuracy: 0.5000 - loss: 0.6952 - val_accuracy: 0.5000 - val_loss: 0.6949\n",
|
| 657 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 110ms/step - accuracy: 0.2180 - loss: 0.7284\n"
|
| 658 |
-
]
|
| 659 |
-
},
|
| 660 |
-
{
|
| 661 |
-
"data": {
|
| 662 |
-
"text/plain": [
|
| 663 |
-
"[0.6948874592781067, 0.5]"
|
| 664 |
-
]
|
| 665 |
-
},
|
| 666 |
-
"execution_count": 17,
|
| 667 |
-
"metadata": {},
|
| 668 |
-
"output_type": "execute_result"
|
| 669 |
-
}
|
| 670 |
-
],
|
| 671 |
"source": [
|
| 672 |
"from keras.models import Sequential\n",
|
| 673 |
"from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout\n",
|
|
|
|
| 27 |
},
|
| 28 |
{
|
| 29 |
"cell_type": "code",
|
| 30 |
+
"execution_count": null,
|
| 31 |
"metadata": {
|
| 32 |
"execution": {
|
| 33 |
"iopub.execute_input": "2023-12-20T19:50:38.166455Z",
|
|
|
|
| 44 |
},
|
| 45 |
{
|
| 46 |
"cell_type": "code",
|
| 47 |
+
"execution_count": 2,
|
| 48 |
"metadata": {},
|
| 49 |
"outputs": [],
|
| 50 |
"source": [
|
|
|
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"cell_type": "code",
|
| 64 |
+
"execution_count": 3,
|
| 65 |
"metadata": {
|
| 66 |
"execution": {
|
| 67 |
"iopub.execute_input": "2023-12-20T19:50:45.790896Z",
|
|
|
|
| 107 |
},
|
| 108 |
{
|
| 109 |
"cell_type": "code",
|
| 110 |
+
"execution_count": 4,
|
| 111 |
"metadata": {
|
| 112 |
"execution": {
|
| 113 |
"iopub.execute_input": "2023-12-20T19:50:56.614037Z",
|
|
|
|
| 140 |
},
|
| 141 |
{
|
| 142 |
"cell_type": "code",
|
| 143 |
+
"execution_count": 5,
|
| 144 |
"metadata": {
|
| 145 |
"execution": {
|
| 146 |
"iopub.execute_input": "2023-12-20T19:51:29.354256Z",
|
|
|
|
| 151 |
}
|
| 152 |
},
|
| 153 |
"outputs": [
|
| 154 |
+
{
|
| 155 |
+
"name": "stdout",
|
| 156 |
+
"output_type": "stream",
|
| 157 |
+
"text": [
|
| 158 |
+
"Epoch 1/5\n"
|
| 159 |
+
]
|
| 160 |
+
},
|
| 161 |
{
|
| 162 |
"name": "stderr",
|
| 163 |
"output_type": "stream",
|
|
|
|
| 170 |
"name": "stdout",
|
| 171 |
"output_type": "stream",
|
| 172 |
"text": [
|
| 173 |
+
"\r",
|
| 174 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 910ms/step - accuracy: 0.3750 - loss: 0.7235"
|
| 175 |
]
|
| 176 |
},
|
| 177 |
{
|
|
|
|
| 186 |
"name": "stdout",
|
| 187 |
"output_type": "stream",
|
| 188 |
"text": [
|
| 189 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m1s\u001b[0m 1s/step - accuracy: 0.3750 - loss: 0.7235 - val_accuracy: 0.5000 - val_loss: 13.4394\n",
|
| 190 |
"Epoch 2/5\n",
|
| 191 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 220ms/step - accuracy: 0.6250 - loss: 4.9176 - val_accuracy: 0.5000 - val_loss: 13.2867\n",
|
| 192 |
"Epoch 3/5\n",
|
| 193 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 215ms/step - accuracy: 0.5000 - loss: 3.4270 - val_accuracy: 0.5000 - val_loss: 10.7268\n",
|
| 194 |
"Epoch 4/5\n",
|
| 195 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 217ms/step - accuracy: 0.6250 - loss: 1.1602 - val_accuracy: 0.0000e+00 - val_loss: 5.7769\n",
|
| 196 |
"Epoch 5/5\n",
|
| 197 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 215ms/step - accuracy: 1.0000 - loss: 0.0021 - val_accuracy: 0.5000 - val_loss: 10.3910\n",
|
| 198 |
+
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 17ms/step - accuracy: 0.2180 - loss: 12.0928\n"
|
| 199 |
]
|
| 200 |
},
|
| 201 |
{
|
| 202 |
"data": {
|
| 203 |
"text/plain": [
|
| 204 |
+
"[7.4195027351379395, 0.5]"
|
| 205 |
]
|
| 206 |
},
|
| 207 |
+
"execution_count": 5,
|
| 208 |
"metadata": {},
|
| 209 |
"output_type": "execute_result"
|
| 210 |
}
|
|
|
|
| 231 |
},
|
| 232 |
{
|
| 233 |
"cell_type": "code",
|
| 234 |
+
"execution_count": null,
|
| 235 |
"metadata": {
|
| 236 |
"execution": {
|
| 237 |
"iopub.execute_input": "2023-12-20T19:51:58.182938Z",
|
|
|
|
| 241 |
"shell.execute_reply.started": "2023-12-20T19:51:58.182905Z"
|
| 242 |
}
|
| 243 |
},
|
| 244 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
"source": [
|
| 246 |
"model.evaluate(test_generator)"
|
| 247 |
]
|
| 248 |
},
|
| 249 |
{
|
| 250 |
"cell_type": "code",
|
| 251 |
+
"execution_count": null,
|
| 252 |
"metadata": {
|
| 253 |
"execution": {
|
| 254 |
"iopub.execute_input": "2023-12-20T19:53:59.121550Z",
|
|
|
|
| 258 |
"shell.execute_reply.started": "2023-12-20T19:53:59.121510Z"
|
| 259 |
}
|
| 260 |
},
|
| 261 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
"source": [
|
| 263 |
"def prepare_model():\n",
|
| 264 |
" model = Sequential()\n",
|
|
|
|
| 284 |
},
|
| 285 |
{
|
| 286 |
"cell_type": "code",
|
| 287 |
+
"execution_count": null,
|
| 288 |
"metadata": {
|
| 289 |
"execution": {
|
| 290 |
"iopub.execute_input": "2023-12-20T19:56:11.309742Z",
|
|
|
|
| 294 |
"shell.execute_reply.started": "2023-12-20T19:56:11.309713Z"
|
| 295 |
}
|
| 296 |
},
|
| 297 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
"source": [
|
| 299 |
"def prepare_model():\n",
|
| 300 |
" model = Sequential()\n",
|
|
|
|
| 327 |
},
|
| 328 |
{
|
| 329 |
"cell_type": "code",
|
| 330 |
+
"execution_count": null,
|
| 331 |
"metadata": {
|
| 332 |
"execution": {
|
| 333 |
"iopub.execute_input": "2023-12-20T19:57:28.208777Z",
|
|
|
|
| 337 |
"shell.execute_reply.started": "2023-12-20T19:57:28.208744Z"
|
| 338 |
}
|
| 339 |
},
|
| 340 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
"source": [
|
| 342 |
"def prepare_model():\n",
|
| 343 |
" model = Sequential()\n",
|
|
|
|
| 370 |
},
|
| 371 |
{
|
| 372 |
"cell_type": "code",
|
| 373 |
+
"execution_count": null,
|
| 374 |
"metadata": {
|
| 375 |
"execution": {
|
| 376 |
"iopub.execute_input": "2023-12-20T20:04:08.984286Z",
|
|
|
|
| 380 |
"shell.execute_reply.started": "2023-12-20T20:04:08.984240Z"
|
| 381 |
}
|
| 382 |
},
|
| 383 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
"source": [
|
| 385 |
"from keras.models import Sequential\n",
|
| 386 |
"from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout\n",
|
benchmark/tensorflow_2/tensorflow_2_reproduced.ipynb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
-
"execution_count":
|
| 6 |
"metadata": {
|
| 7 |
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
|
| 8 |
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
},
|
| 28 |
{
|
| 29 |
"cell_type": "code",
|
| 30 |
-
"execution_count":
|
| 31 |
"metadata": {
|
| 32 |
"execution": {
|
| 33 |
"iopub.execute_input": "2023-12-20T19:50:38.166455Z",
|
|
@@ -44,7 +44,7 @@
|
|
| 44 |
},
|
| 45 |
{
|
| 46 |
"cell_type": "code",
|
| 47 |
-
"execution_count":
|
| 48 |
"metadata": {},
|
| 49 |
"outputs": [],
|
| 50 |
"source": [
|
|
@@ -61,7 +61,7 @@
|
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"cell_type": "code",
|
| 64 |
-
"execution_count":
|
| 65 |
"metadata": {
|
| 66 |
"execution": {
|
| 67 |
"iopub.execute_input": "2023-12-20T19:50:45.790896Z",
|
|
@@ -107,7 +107,7 @@
|
|
| 107 |
},
|
| 108 |
{
|
| 109 |
"cell_type": "code",
|
| 110 |
-
"execution_count":
|
| 111 |
"metadata": {
|
| 112 |
"execution": {
|
| 113 |
"iopub.execute_input": "2023-12-20T19:50:56.614037Z",
|
|
@@ -140,7 +140,7 @@
|
|
| 140 |
},
|
| 141 |
{
|
| 142 |
"cell_type": "code",
|
| 143 |
-
"execution_count":
|
| 144 |
"metadata": {
|
| 145 |
"execution": {
|
| 146 |
"iopub.execute_input": "2023-12-20T19:51:29.354256Z",
|
|
@@ -151,6 +151,14 @@
|
|
| 151 |
}
|
| 152 |
},
|
| 153 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
{
|
| 155 |
"name": "stdout",
|
| 156 |
"output_type": "stream",
|
|
@@ -160,15 +168,15 @@
|
|
| 160 |
},
|
| 161 |
{
|
| 162 |
"ename": "ValueError",
|
| 163 |
-
"evalue": "Exception encountered when calling Sequential.call().\n\n\u001b[1mInput 0 of layer \"
|
| 164 |
"output_type": "error",
|
| 165 |
"traceback": [
|
| 166 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 167 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 168 |
-
"\u001b[0;32m<ipython-input-
|
| 169 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 170 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/layers/input_spec.py\u001b[0m in \u001b[0;36massert_input_compatibility\u001b[0;34m(input_spec, inputs, layer_name)\u001b[0m\n\u001b[1;32m 225\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 226\u001b[0m }:\n\u001b[0;32m--> 227\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 228\u001b[0m \u001b[0;34mf'Input {input_index} of layer \"{layer_name}\" is '\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 229\u001b[0m \u001b[0;34mf\"incompatible with the layer: expected axis {axis} \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 171 |
-
"\u001b[0;31mValueError\u001b[0m: Exception encountered when calling Sequential.call().\n\n\u001b[1mInput 0 of layer \"
|
| 172 |
]
|
| 173 |
}
|
| 174 |
],
|
|
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
"metadata": {
|
| 7 |
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
|
| 8 |
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
|
|
|
|
| 27 |
},
|
| 28 |
{
|
| 29 |
"cell_type": "code",
|
| 30 |
+
"execution_count": null,
|
| 31 |
"metadata": {
|
| 32 |
"execution": {
|
| 33 |
"iopub.execute_input": "2023-12-20T19:50:38.166455Z",
|
|
|
|
| 44 |
},
|
| 45 |
{
|
| 46 |
"cell_type": "code",
|
| 47 |
+
"execution_count": 2,
|
| 48 |
"metadata": {},
|
| 49 |
"outputs": [],
|
| 50 |
"source": [
|
|
|
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"cell_type": "code",
|
| 64 |
+
"execution_count": 3,
|
| 65 |
"metadata": {
|
| 66 |
"execution": {
|
| 67 |
"iopub.execute_input": "2023-12-20T19:50:45.790896Z",
|
|
|
|
| 107 |
},
|
| 108 |
{
|
| 109 |
"cell_type": "code",
|
| 110 |
+
"execution_count": 4,
|
| 111 |
"metadata": {
|
| 112 |
"execution": {
|
| 113 |
"iopub.execute_input": "2023-12-20T19:50:56.614037Z",
|
|
|
|
| 140 |
},
|
| 141 |
{
|
| 142 |
"cell_type": "code",
|
| 143 |
+
"execution_count": 5,
|
| 144 |
"metadata": {
|
| 145 |
"execution": {
|
| 146 |
"iopub.execute_input": "2023-12-20T19:51:29.354256Z",
|
|
|
|
| 151 |
}
|
| 152 |
},
|
| 153 |
"outputs": [
|
| 154 |
+
{
|
| 155 |
+
"name": "stderr",
|
| 156 |
+
"output_type": "stream",
|
| 157 |
+
"text": [
|
| 158 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/layers/convolutional/base_conv.py:107: UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in the model instead.\n",
|
| 159 |
+
" super().__init__(activity_regularizer=activity_regularizer, **kwargs)\n"
|
| 160 |
+
]
|
| 161 |
+
},
|
| 162 |
{
|
| 163 |
"name": "stdout",
|
| 164 |
"output_type": "stream",
|
|
|
|
| 168 |
},
|
| 169 |
{
|
| 170 |
"ename": "ValueError",
|
| 171 |
+
"evalue": "Exception encountered when calling Sequential.call().\n\n\u001b[1mInput 0 of layer \"dense\" is incompatible with the layer: expected axis -1 of input shape to have value 76832, but received input with shape (None, 387200)\u001b[0m\n\nArguments received by Sequential.call():\n • inputs=tf.Tensor(shape=(None, 223, 223, 3), dtype=float32)\n • training=True\n • mask=None",
|
| 172 |
"output_type": "error",
|
| 173 |
"traceback": [
|
| 174 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 175 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 176 |
+
"\u001b[0;32m<ipython-input-5-88477c8a9c0c>\u001b[0m in \u001b[0;36m<cell line: 11>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 10\u001b[0m \u001b[0mmodel\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mprepare_model\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 11\u001b[0;31m model.fit(train_generator,\n\u001b[0m\u001b[1;32m 12\u001b[0m \u001b[0mvalidation_data\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mvalid_generator\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 13\u001b[0m epochs=5)\n",
|
| 177 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 178 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/layers/input_spec.py\u001b[0m in \u001b[0;36massert_input_compatibility\u001b[0;34m(input_spec, inputs, layer_name)\u001b[0m\n\u001b[1;32m 225\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 226\u001b[0m }:\n\u001b[0;32m--> 227\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 228\u001b[0m \u001b[0;34mf'Input {input_index} of layer \"{layer_name}\" is '\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 229\u001b[0m \u001b[0;34mf\"incompatible with the layer: expected axis {axis} \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 179 |
+
"\u001b[0;31mValueError\u001b[0m: Exception encountered when calling Sequential.call().\n\n\u001b[1mInput 0 of layer \"dense\" is incompatible with the layer: expected axis -1 of input shape to have value 76832, but received input with shape (None, 387200)\u001b[0m\n\nArguments received by Sequential.call():\n • inputs=tf.Tensor(shape=(None, 223, 223, 3), dtype=float32)\n • training=True\n • mask=None"
|
| 180 |
]
|
| 181 |
}
|
| 182 |
],
|
benchmark/tensorflow_3/tensorflow_3_fixed.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/tensorflow_3/tensorflow_3_reproduced.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/tensorflow_3/train.h5
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:991c9642eb194621a1db5271828bdb8191d354f7b14cd59242b0294de9c4a45e
|
| 3 |
+
size 28529464
|
benchmark/tensorflow_4/tensorflow_4_fixed.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/tensorflow_4/tensorflow_4_reproduced.ipynb
CHANGED
|
@@ -96,7 +96,7 @@
|
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"cell_type": "code",
|
| 99 |
-
"execution_count":
|
| 100 |
"metadata": {
|
| 101 |
"execution": {
|
| 102 |
"iopub.execute_input": "2023-10-29T14:53:47.494705Z",
|
|
@@ -119,7 +119,7 @@
|
|
| 119 |
},
|
| 120 |
{
|
| 121 |
"cell_type": "code",
|
| 122 |
-
"execution_count":
|
| 123 |
"metadata": {
|
| 124 |
"execution": {
|
| 125 |
"iopub.execute_input": "2023-10-29T14:53:47.510005Z",
|
|
@@ -129,18 +129,7 @@
|
|
| 129 |
"shell.execute_reply.started": "2023-10-29T14:53:47.509969Z"
|
| 130 |
}
|
| 131 |
},
|
| 132 |
-
"outputs": [
|
| 133 |
-
{
|
| 134 |
-
"name": "stdout",
|
| 135 |
-
"output_type": "stream",
|
| 136 |
-
"text": [
|
| 137 |
-
"Class_names1_train1: 64\n",
|
| 138 |
-
"Class_names2_train 64\n",
|
| 139 |
-
"Class_names1_test 21\n",
|
| 140 |
-
"Class_names2_test 21\n"
|
| 141 |
-
]
|
| 142 |
-
}
|
| 143 |
-
],
|
| 144 |
"source": [
|
| 145 |
"# train\n",
|
| 146 |
"Class_names1_train = set()\n",
|
|
@@ -174,7 +163,7 @@
|
|
| 174 |
},
|
| 175 |
{
|
| 176 |
"cell_type": "code",
|
| 177 |
-
"execution_count":
|
| 178 |
"metadata": {
|
| 179 |
"execution": {
|
| 180 |
"iopub.execute_input": "2023-10-29T14:53:47.586296Z",
|
|
@@ -182,55 +171,10 @@
|
|
| 182 |
"iopub.status.idle": "2023-10-29T14:53:47.998495Z",
|
| 183 |
"shell.execute_reply": "2023-10-29T14:53:47.997197Z",
|
| 184 |
"shell.execute_reply.started": "2023-10-29T14:53:47.586236Z"
|
| 185 |
-
}
|
|
|
|
| 186 |
},
|
| 187 |
-
"outputs": [
|
| 188 |
-
{
|
| 189 |
-
"data": {
|
| 190 |
-
"text/plain": [
|
| 191 |
-
"{'04': 18,\n",
|
| 192 |
-
" '07': 18,\n",
|
| 193 |
-
" '08': 18,\n",
|
| 194 |
-
" '09': 18,\n",
|
| 195 |
-
" '10': 18,\n",
|
| 196 |
-
" '11': 18,\n",
|
| 197 |
-
" '12': 18,\n",
|
| 198 |
-
" '13': 18,\n",
|
| 199 |
-
" '14': 18,\n",
|
| 200 |
-
" '15': 18,\n",
|
| 201 |
-
" '16': 18,\n",
|
| 202 |
-
" '17': 18,\n",
|
| 203 |
-
" '18': 18,\n",
|
| 204 |
-
" '19': 18,\n",
|
| 205 |
-
" '22': 18,\n",
|
| 206 |
-
" '25': 18,\n",
|
| 207 |
-
" '28': 18,\n",
|
| 208 |
-
" '29': 18,\n",
|
| 209 |
-
" '30': 18,\n",
|
| 210 |
-
" '31': 18,\n",
|
| 211 |
-
" '32': 18,\n",
|
| 212 |
-
" '33': 18,\n",
|
| 213 |
-
" '34': 18,\n",
|
| 214 |
-
" '35': 18,\n",
|
| 215 |
-
" '36': 18,\n",
|
| 216 |
-
" '37': 18,\n",
|
| 217 |
-
" '38': 18,\n",
|
| 218 |
-
" '39': 18,\n",
|
| 219 |
-
" '40': 18,\n",
|
| 220 |
-
" '41': 18,\n",
|
| 221 |
-
" '42': 19,\n",
|
| 222 |
-
" '43': 18,\n",
|
| 223 |
-
" '44': 24,\n",
|
| 224 |
-
" '45': 18,\n",
|
| 225 |
-
" '46': 18,\n",
|
| 226 |
-
" '47': 18}"
|
| 227 |
-
]
|
| 228 |
-
},
|
| 229 |
-
"execution_count": 5,
|
| 230 |
-
"metadata": {},
|
| 231 |
-
"output_type": "execute_result"
|
| 232 |
-
}
|
| 233 |
-
],
|
| 234 |
"source": [
|
| 235 |
"freq= {}\n",
|
| 236 |
"directory='data/'\n",
|
|
@@ -249,7 +193,7 @@
|
|
| 249 |
},
|
| 250 |
{
|
| 251 |
"cell_type": "code",
|
| 252 |
-
"execution_count":
|
| 253 |
"metadata": {
|
| 254 |
"execution": {
|
| 255 |
"iopub.execute_input": "2023-10-29T14:53:48.001500Z",
|
|
@@ -259,27 +203,7 @@
|
|
| 259 |
"shell.execute_reply.started": "2023-10-29T14:53:48.001445Z"
|
| 260 |
}
|
| 261 |
},
|
| 262 |
-
"outputs": [
|
| 263 |
-
{
|
| 264 |
-
"data": {
|
| 265 |
-
"text/plain": [
|
| 266 |
-
"{'02': 18,\n",
|
| 267 |
-
" '03': 18,\n",
|
| 268 |
-
" '05': 18,\n",
|
| 269 |
-
" '06': 18,\n",
|
| 270 |
-
" '20': 18,\n",
|
| 271 |
-
" '21': 18,\n",
|
| 272 |
-
" '23': 18,\n",
|
| 273 |
-
" '24': 18,\n",
|
| 274 |
-
" '26': 18,\n",
|
| 275 |
-
" '27': 18}"
|
| 276 |
-
]
|
| 277 |
-
},
|
| 278 |
-
"execution_count": 6,
|
| 279 |
-
"metadata": {},
|
| 280 |
-
"output_type": "execute_result"
|
| 281 |
-
}
|
| 282 |
-
],
|
| 283 |
"source": [
|
| 284 |
"freq= {}\n",
|
| 285 |
"directory='data'\n",
|
|
@@ -319,7 +243,7 @@
|
|
| 319 |
},
|
| 320 |
{
|
| 321 |
"cell_type": "code",
|
| 322 |
-
"execution_count":
|
| 323 |
"metadata": {
|
| 324 |
"execution": {
|
| 325 |
"iopub.execute_input": "2023-10-29T14:53:48.147497Z",
|
|
@@ -336,7 +260,7 @@
|
|
| 336 |
},
|
| 337 |
{
|
| 338 |
"cell_type": "code",
|
| 339 |
-
"execution_count":
|
| 340 |
"metadata": {
|
| 341 |
"execution": {
|
| 342 |
"iopub.execute_input": "2023-10-29T14:53:48.161246Z",
|
|
@@ -346,7 +270,17 @@
|
|
| 346 |
"shell.execute_reply.started": "2023-10-29T14:53:48.161197Z"
|
| 347 |
}
|
| 348 |
},
|
| 349 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
"source": [
|
| 351 |
"def find_files_in_folder(path, folder_name):\n",
|
| 352 |
" folder_path = None\n",
|
|
@@ -502,7 +436,7 @@
|
|
| 502 |
},
|
| 503 |
{
|
| 504 |
"cell_type": "code",
|
| 505 |
-
"execution_count":
|
| 506 |
"metadata": {
|
| 507 |
"execution": {
|
| 508 |
"iopub.execute_input": "2023-10-29T14:54:18.031748Z",
|
|
@@ -549,7 +483,7 @@
|
|
| 549 |
},
|
| 550 |
{
|
| 551 |
"cell_type": "code",
|
| 552 |
-
"execution_count":
|
| 553 |
"metadata": {
|
| 554 |
"execution": {
|
| 555 |
"iopub.execute_input": "2023-10-29T14:54:18.228892Z",
|
|
@@ -574,7 +508,7 @@
|
|
| 574 |
},
|
| 575 |
{
|
| 576 |
"cell_type": "code",
|
| 577 |
-
"execution_count":
|
| 578 |
"metadata": {
|
| 579 |
"execution": {
|
| 580 |
"iopub.execute_input": "2023-10-29T14:54:18.239789Z",
|
|
@@ -585,37 +519,109 @@
|
|
| 585 |
}
|
| 586 |
},
|
| 587 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 588 |
{
|
| 589 |
"name": "stdout",
|
| 590 |
"output_type": "stream",
|
| 591 |
"text": [
|
| 592 |
-
"Model: \"sequential\"\n",
|
| 593 |
-
"_________________________________________________________________\n",
|
| 594 |
-
" Layer (type) Output Shape Param # \n",
|
| 595 |
-
"=================================================================\n",
|
| 596 |
-
" lstm (LSTM) (None, 256) 492544 \n",
|
| 597 |
-
" \n",
|
| 598 |
-
" dense (Dense) (None, 2) 514 \n",
|
| 599 |
-
" \n",
|
| 600 |
-
"=================================================================\n",
|
| 601 |
-
"Total params: 493,058\n",
|
| 602 |
-
"Trainable params: 493,058\n",
|
| 603 |
-
"Non-trainable params: 0\n",
|
| 604 |
-
"_________________________________________________________________\n",
|
| 605 |
"Epoch 1/10\n"
|
| 606 |
]
|
| 607 |
},
|
| 608 |
{
|
| 609 |
"ename": "ValueError",
|
| 610 |
-
"evalue": "
|
| 611 |
"output_type": "error",
|
| 612 |
"traceback": [
|
| 613 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 614 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 615 |
-
"
|
| 616 |
-
"
|
| 617 |
-
"
|
| 618 |
-
"\u001b[0;31mValueError\u001b[0m:
|
| 619 |
]
|
| 620 |
}
|
| 621 |
],
|
|
@@ -704,7 +710,7 @@
|
|
| 704 |
},
|
| 705 |
{
|
| 706 |
"cell_type": "code",
|
| 707 |
-
"execution_count":
|
| 708 |
"metadata": {
|
| 709 |
"execution": {
|
| 710 |
"iopub.execute_input": "2023-10-29T14:54:40.076229Z",
|
|
@@ -714,86 +720,7 @@
|
|
| 714 |
"shell.execute_reply.started": "2023-10-29T14:54:40.076187Z"
|
| 715 |
}
|
| 716 |
},
|
| 717 |
-
"outputs": [
|
| 718 |
-
{
|
| 719 |
-
"name": "stdout",
|
| 720 |
-
"output_type": "stream",
|
| 721 |
-
"text": [
|
| 722 |
-
"Model: \"sequential_1\"\n",
|
| 723 |
-
"_________________________________________________________________\n",
|
| 724 |
-
" Layer (type) Output Shape Param # \n",
|
| 725 |
-
"=================================================================\n",
|
| 726 |
-
" conv2d (Conv2D) (None, 216, 216, 16) 1312 \n",
|
| 727 |
-
" \n",
|
| 728 |
-
" max_pooling2d (MaxPooling2D (None, 108, 108, 16) 0 \n",
|
| 729 |
-
" ) \n",
|
| 730 |
-
" \n",
|
| 731 |
-
" conv2d_1 (Conv2D) (None, 104, 104, 32) 12832 \n",
|
| 732 |
-
" \n",
|
| 733 |
-
" max_pooling2d_1 (MaxPooling (None, 52, 52, 32) 0 \n",
|
| 734 |
-
" 2D) \n",
|
| 735 |
-
" \n",
|
| 736 |
-
" conv2d_2 (Conv2D) (None, 50, 50, 32) 9248 \n",
|
| 737 |
-
" \n",
|
| 738 |
-
" max_pooling2d_2 (MaxPooling (None, 25, 25, 32) 0 \n",
|
| 739 |
-
" 2D) \n",
|
| 740 |
-
" \n",
|
| 741 |
-
" conv2d_3 (Conv2D) (None, 23, 23, 16) 4624 \n",
|
| 742 |
-
" \n",
|
| 743 |
-
" max_pooling2d_3 (MaxPooling (None, 11, 11, 16) 0 \n",
|
| 744 |
-
" 2D) \n",
|
| 745 |
-
" \n",
|
| 746 |
-
" conv2d_4 (Conv2D) (None, 9, 9, 8) 1160 \n",
|
| 747 |
-
" \n",
|
| 748 |
-
" max_pooling2d_4 (MaxPooling (None, 4, 4, 8) 0 \n",
|
| 749 |
-
" 2D) \n",
|
| 750 |
-
" \n",
|
| 751 |
-
" flatten (Flatten) (None, 128) 0 \n",
|
| 752 |
-
" \n",
|
| 753 |
-
" dense_1 (Dense) (None, 256) 33024 \n",
|
| 754 |
-
" \n",
|
| 755 |
-
" dropout (Dropout) (None, 256) 0 \n",
|
| 756 |
-
" \n",
|
| 757 |
-
" dense_2 (Dense) (None, 128) 32896 \n",
|
| 758 |
-
" \n",
|
| 759 |
-
" dropout_1 (Dropout) (None, 128) 0 \n",
|
| 760 |
-
" \n",
|
| 761 |
-
" dense_3 (Dense) (None, 1) 129 \n",
|
| 762 |
-
" \n",
|
| 763 |
-
"=================================================================\n",
|
| 764 |
-
"Total params: 95,225\n",
|
| 765 |
-
"Trainable params: 95,225\n",
|
| 766 |
-
"Non-trainable params: 0\n",
|
| 767 |
-
"_________________________________________________________________\n",
|
| 768 |
-
"Epoch 1/3\n",
|
| 769 |
-
"22/22 [==============================] - 85s 4s/step - loss: 0.6931 - accuracy: 0.5578 - val_loss: 0.6932 - val_accuracy: 0.4622\n",
|
| 770 |
-
"Epoch 2/3\n",
|
| 771 |
-
"22/22 [==============================] - 81s 4s/step - loss: 0.6931 - accuracy: 0.5469 - val_loss: 0.6932 - val_accuracy: 0.4622\n",
|
| 772 |
-
"Epoch 3/3\n",
|
| 773 |
-
"22/22 [==============================] - 83s 4s/step - loss: 0.6931 - accuracy: 0.5469 - val_loss: 0.6932 - val_accuracy: 0.4622\n"
|
| 774 |
-
]
|
| 775 |
-
},
|
| 776 |
-
{
|
| 777 |
-
"data": {
|
| 778 |
-
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiwAAAGxCAYAAABBZ+3pAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAABEOklEQVR4nO3de1zUVeL/8fdwHQhBU0ESRE3D+w1bRfMWhWm5uuVmmrfSytRWU9c0M2+VXbSsNm2t1DXLbAOtTU1JJSksL4HZqqSmQoprWoKXBIXz+4Mv82scQAZvH+j1fDzmUZ8z55zPOTPzcd58bmMzxhgBAABYmMe1HgAAAMDFEFgAAIDlEVgAAIDlEVgAAIDlEVgAAIDlEVgAAIDlEVgAAIDlEVgAAIDlEVgAAIDlEVhgKTabrVSPxMTES1rP1KlTZbPZytQ2MTHxsozB6gYPHqzatWtbYr21a9fW4MGDL9r2Ut6b5ORkTZ06VSdOnHB5rnPnzurcubPbfQK4fLyu9QCA39u0aZPT8owZM7RhwwatX7/eqbxRo0aXtJ6hQ4fqjjvuKFPbVq1aadOmTZc8BpTe8uXLFRgYeEXXkZycrGnTpmnw4MGqXLmy03Nz5869ousGcHEEFlhK27ZtnZarV68uDw8Pl/ILnTlzRv7+/qVeT1hYmMLCwso0xsDAwIuOB5dXy5Ytr+n6Caelc+7cOdlsNnl58dWCy49DQih3OnfurCZNmmjjxo1q166d/P399eCDD0qSli1bptjYWIWGhsrPz08NGzbUhAkTdPr0aac+ijokVLt2bd1111367LPP1KpVK/n5+alBgwZasGCBU72iDjsMHjxYAQEB2rt3r7p3766AgACFh4dr7NixysnJcWr/008/qXfv3qpUqZIqV66s+++/X1u2bJHNZtOiRYtKnPvPP/+s4cOHq1GjRgoICFBwcLBuvfVWJSUlOdU7cOCAbDabZs2apZdffll16tRRQECAoqOj9fXXX7v0u2jRIkVGRsrX11cNGzbU4sWLSxxHoV69eikiIkL5+fkuz7Vp00atWrVyLL/xxhvq2LGjgoODdd1116lp06Z68cUXde7cuYuup6hDQrt379Ydd9whf39/VatWTcOGDdPJkydd2iYkJKhnz54KCwuT3W5XvXr19Mgjj+jYsWOOOlOnTtXf//53SVKdOnVcDj0WdUjol19+0fDhw1WzZk35+Piobt26mjRpksv7bbPZNHLkSL377rtq2LCh/P391bx5c3366acXnffZs2c1duxYtWjRQkFBQbr++usVHR2tjz/+2KVufn6+Xn/9dbVo0UJ+fn6qXLmy2rZtq08++cSp3vvvv6/o6GgFBAQoICBALVq00DvvvFPia13Ua1C4Hbz77rsaO3asatasKV9fX+3du7fUn1NJysnJ0fTp09WwYUPZ7XZVrVpVXbp0UXJysiQpJiZGDRo00IW/02uMUb169XTnnXde9HVExUAMRrmUmZmp/v37a/z48Xruuefk4VGQvffs2aPu3btr9OjRuu6667R792698MIL2rx5s8thpaJs375dY8eO1YQJExQSEqK3335bQ4YMUb169dSxY8cS2547d05//vOfNWTIEI0dO1YbN27UjBkzFBQUpKefflqSdPr0aXXp0kW//PK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Vr1zrKJJmQkBCTnZ3tKDty5Ijx8PAwM2fOLHKcxSl8v4cMGWJatmzpKN+4caORZCZNmlRs2x9//NF4enqa+++/v8R1XPhaF7rwNSjcDjp27FjqcV/4OV28eLGRZN56661i2+bl5Zm6deuanj17OpV369bN3HjjjU6fW1RsHBJCuVSlShXdeuutLuU//vij+vXrpxo1asjT01Pe3t7q1KmTJGnXrl0X7bdFixaqVauWY9lut+umm24q1V+gNptNPXr0cCpr1qyZU9svvvhClSpVcjnht2/fvhftv9Cbb76pVq1ayW63y8vLS97e3lq3bl2R87vzzjvl6enpNB5JjjGlpaXp8OHD6tevn9MhsoiICLVr1+6iY/Hy8lL//v0VHx+vrKwsSVJeXp7effdd9ezZU1WrVnXUTUlJ0Z///GdVrVrV8d4MHDhQeXl5+uGHH0o9f0nasGGDGjdurObNmzuV9+vXz6Xu0aNHNWzYMIWHhzter4iICEml+0wUZf369bruuuvUu3dvp/LCQynr1q1zKu/SpYsqVarkWA4JCVFwcHCpPlf//ve/1b59ewUEBDjG/8477ziNffXq1ZKkESNGFNtPQkKC8vLySqxTFvfcc0+R5aX5nK5evVp2u91xSLcoHh4eGjlypD799FOlp6dLKthr9tlnn2n48OFlvtoP5Q+BBeVS4S773zt16pQ6dOigb775Rs8884wSExO1ZcsWxcfHS5J+++23i/b7+y/YQr6+vqVq6+/vL7vd7tL27NmzjuXjx48rJCTEpW1RZUV5+eWX9eijj6pNmzaKi4vT119/rS1btuiOO+4ocowXzsfX11fS/38tjh8/LkmqUaOGS9uiyory4IMP6uzZs/rggw8kSWvWrFFmZqYeeOABR5309HR16NBBhw4d0quvvqqkpCRt2bJFb7zxhtN4Suv48eOlGnN+fr5iY2MVHx+v8ePHa926ddq8ebPjPB5313vh+i/8sgwODpaXl5fjdS1U1s9VfHy87r33XtWsWVNLlizRpk2btGXLFsdrXujnn3+Wp6dnie9Z4WGasp5sXpyitsXSfk5//vln3XDDDaU69Ojn56c333xTUsGhTj8/vxKDDioezmFBuVTUX1Xr16/X4cOHlZiY6NirIqnI+2pcK1WrVtXmzZtdyo8cOVKq9kuWLFHnzp01b948p/KiTjYt7XiKW39px9SoUSP96U9/0sKFC/XII49o4cKFuuGGGxQbG+uos2LFCp0+fVrx8fGOvRuSlJqaWuZxl2bM33//vbZv365FixZp0KBBjvK9e/eWab2/X/8333wjY4zTZ/Ho0aM6f/68qlWrdkn9F1qyZInq1KmjZcuWOa3nwhN7q1evrry8PB05cqTIAFFYRyo46Ts8PLzYddrtdpf+JenYsWNFzquobbG0n9Pq1avryy+/VH5+fomhJSgoSIMGDdLbb7+tcePGaeHCherXr5/L5eeo2NjDggqj8B/Owr0Ihf75z39ei+EUqVOnTjp58qRjF36hwr0TF2Oz2Vzm991337ncv6a0IiMjFRoaqqVLlzpdhXHw4EHHVRql8cADD+ibb77Rl19+qf/85z8aNGiQ06Goot4bY4zeeuutMo27S5cu+u9//6vt27c7lb///vtOy+58Ji7c+1SSmJgYnTp1SitWrHAqL7y6KiYm5qJ9lIbNZpOPj49TKDhy5IjLVULdunWTJJeA8HuxsbHy9PQssY5UcJXQd99951T2ww8/KC0tza1xl+Zz2q1bN509e/aiV8dJ0t/+9jcdO3ZMvXv31okTJ4o8wRoVG3tYUGG0a9dOVapU0bBhwzRlyhR5e3vrvffec/lSu5YGDRqkV155Rf3799czzzyjevXqafXq1VqzZo0kXXTX+F133aUZM2ZoypQp6tSpk9LS0jR9+nTVqVNH58+fd3s8Hh4emjFjhoYOHaq//OUveuihh3TixAlNnTq11IeEpIJzcMaMGaO+ffsqJyfH5bLY22+/XT4+Purbt6/Gjx+vs2fPat68efr111/dHrMkjR49WgsWLNCdd96pZ555xnGV0O7du53qNWjQQDfeeKMmTJggY4yuv/56/ec//1FCQoJLn02bNpUkvfrqqxo0aJC8vb0VGRnpdO5JoYEDB+qNN97QoEGDdODAATVt2lRffvmlnnvuOXXv3t3papZLcddddyk+Pl7Dhw9X7969lZGRoRkzZig0NFR79uxx1OvQoYMGDBigZ555Rv/73/901113ydfXV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SOdQtmGDRsUGhqqDRs2aO/everTp49atGihhx56qJjX85S6d++uZ555Rna7Xf/617/Uo0cPpaWlqVatWpKkgQMHatOmTXrttdfUvHlz7d+/X8eOHZMkHTp0SB07dlTnzp21fv16BQYG6quvvtL58+cv+vqVmakgsrKyjCSTlZV1rYcCABXCb7/9Znbu3Gl+++03Y4wxp04ZU7Cv4+o/Tp0q/bh37dplJJn169c7yjp27Gj69u1bbJvu3bubsWPHOpY7depkRo0a5ViOiIgwr7zyijHGmDVr1hhPT0+TkZHheH716tVGklm+fHmx63jxxRdNVFSUY3nKlCmmefPmLvV+38/8+fNNlSpVzKnfvQArV640Hh4e5siRI8YYYwYNGmQiIiLM+fPnHXX++te/mj59+hQ7lqI0atTIvP7668YYY9LS0owkk5CQUGTdiRMnmjp16pjc3NxS9X3hZ+n3Svv9zR4WAECp+PsX7Om4VusurQYNGqhdu3ZasGCBunTpon379ikpKUlr166VJOXl5en555/XsmXLdOjQIeXk5CgnJ0fXlWYXjqRdu3apVq1aCgsLc5RFR0e71Pvoo480Z84c7d27V6dOndL58+cVGBhY+on837qaN2/uNLb27dsrPz9faWlpCgkJkSQ1btxYnp6ejjqhoaHasWNHsf2ePn1a06ZN06effqrDhw/r/Pnz+u2335Seni5JSk1Nlaenpzp16lRk+9TUVHXo0EHe3t5uzedSEFgAAKVis5XusIwVDBkyRCNHjtQbb7yhhQsXKiIiQjExMZKk2bNn65VXXtGcOXPUtGlTXXfddRo9erRyc3NL1bcp4oSawkNPhb7++mvdd999mjZtmrp27aqgoCB98MEHmj17tlvzMMa49F3UOi8MDjabTfn5+cX2+/e//11r1qzRrFmzVK9ePfn5+al3796O18DPz6/EcV3s+SuBk24BABXOvffeK09PT73//vv617/+pQceeMDxBZ+UlKSePXuqf//+at68uerWras9e/aUuu9GjRopPT1dhw8fdpRt2rTJqc5XX32liIgITZo0Sa1bt1b9+vVdrlzy8fFRXl7eRdeVmpqq06dPO/Xt4eGhm266qdRjvlBSUpIGDx6sv/zlL2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d0/XXX19snZkzZyooKMjxCA8PL/1EAABAueJWYDl27Jjy8vIUEhLiVB4SEqIjR44U2SY0NFTz589XXFyc4uPjFRkZqZiYGG3cuLHY9UyYMEE1a9bUbbfdVmydiRMnKisry/HIyMhwZyoAAKAc8SpLI5vN5rRsjHEpKxQZGanIyEjHcnR0tDIyMjRr1ix17NjRpf6LL76opUuXKjExUXa7vdgx+Pr6ytfXtyzDBwAA5Yxbe1iqVasmT09Pl70pR48eddnrUpK2bdtqz549LuWzZs3Sc889p7Vr16pZs2buDA0AAFRgbgUWHx8fRUVFKSEhwak8ISFB7dq1K3U/KSkpCg0NdSp76aWXNGPGDH322Wdq3bq1O8MCAAAVnNuHhMaMGaMBAwaodevWio6O1vz585Wenq5hw4ZJKji35NChQ1q8eLEkac6cOapdu7YaN26s3NxcLVmyRHFxcYqLi3P0+eKLL2ry5Ml6//33Vbt2bccenICAAAUEBFyOeQIAgHLM7cDSp08fHT9+XNOnT1dmZqaaNGmiVatWKSIiQpKUmZnpdE+W3NxcjRs3TocOHZKfn58aN26slStXqnv37o46c+fOVW5urnr37u20rilTpmjq1KllnBoAAKgo3L4Pi1WV9jpuAABgHVfkPiwAAADXAoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYHoEFAABYXpkCy9y5c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16623avLkyRowYICGDh0qSWratKlOnz6thx9+WJMmTZKHh2uu8vX1la+vrzvDBwAA5ZRbe1h8fHwUFRWlhIQEp/KEhAS1a9fOpX5gYKB27Nih1NRUx2PYsGGKjIxUamqq2rRpI0k6c+aMSyjx9PSUMUZunhMMAAAqILf2sEjSmDFjNGDAALVu3VrR0dGaP3++0tPTNWzYMEkFh2oOHTqkxYsXy8PDQ02aNHFqHxwcLLvd7lTeo0cPvfzyy2rZsqXatGmjvXv3avLkyfrzn/8sT0/PS5wiAAAo79wOLH369NHx48c1ffp0ZWZmqkmTJlq1apUiIiIkSZmZmRe9J8uFnnrqKdlsNj311FM6dOiQqlevrh49eujZZ591d3gAAKACcvs+LFbFfVgAACh/rsh9WAAAAK4FAgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8AgsAALA8r2s9ACszRjpz5lqPAgAAa/D3l2y2a7NuAksJzpyRAgKu9SgAALCGU6ek6667NuvmkBAAALA89rCUwN+/IE0CAICC78VrhcBSApvt2u36AgAA/x+HhAAAgOWVKbDMnTtXderUkd1uV1RUlJKSkkrV7quvvpKXl5datGjh8tyJEyc0YsQIhYaGym63q2HDhlq1alVZhgcAACoYtw8JLVu2TKNHj9bcuXPVvn17/fOf/1S3bt20c+dO1apVq9h2WVlZGjhwoGJiYvS///3P6bnc3FzdfvvtCg4O1kcffaSwsDBlZG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YWNgV6z8wMLBCfgh/r6LPkfmVfxV9jsyv/Kvoc7xS8ytpz0ohTroFAACWR2ABAACWR2C5CF9fX02ZMqVC/25RRZ8j8yv/KvocmV/5V9HnaIX5VZiTbgEAQMXFHhYAAGB5BBYAAGB5BBYAAGB5BBYAAGB5BBYAAGB5f6jAsnHjRvXo0UM33HCDbDabVqxYcdE2X3zxhaKiomS321W3bl29+eabLnXi4uLUqFEj+fr6qlGjRlq+fPkVGH3puDvH+Ph43X777apevboCAwMVHR2tNWvWONVZtGiRbDaby+Ps2bNXcCZFc3d+iYmJRY599+7dTvWs8h66O7/BgwcXOb/GjRs76ljp/Zs5c6ZuvvlmVapUScHBwerVq5fS0tIu2q48bYdlmWN52g7LMr/ytB2WZX7lbTucN2+emjVr5rhrbXR0tFavXl1iGytsg3+owHL69Gk1b95c//jHP0pVf//+/erevbs6dOiglJQUPfnkk/rb3/6muLg4R51NmzapT58+GjBggLZv364BAwbo3nvv1TfffHOlplEid+e4ceNG3X777Vq1apW2bdumLl26qEePHkpJSXGqFxgYqMzMTKeH3W6/ElMokbvzK5SWluY09vr16zues9J76O78Xn31Vad5ZWRk6Prrr9df//pXp3pWef+++OILjRgxQl9//bUSEhJ0/vx5xcbG6vTp08W2KW/bYVnmWJ62w7LMr1B52A7LMr/yth2GhYXp+eef19atW7V161bdeuut6tmzp/773/8WWd8y26D5g5Jkli9fXmKd8ePHmwYNGjiVPfLII6Zt27aO5XvvvdfccccdTnW6du1q7rvvvss21rIqzRyL0qhRIzNt2jTH8sKFC01QUNDlG9hlUpr5bdiwwUgyv/76a7F1rPoeluX9W758ubHZbObAgQOOMqu+f8YYc/ToUSPJfPHFF8XWKe/bYWnmWJTysh2WZn7leTssy/tX3rZDY4ypUqWKefvtt4t8zirb4B9qD4u7Nm3apNjYWKeyrl27auvWrTp37lyJdZKTk6/aOC+n/Px8nTx5Utdff71T+alTpxQREaGwsDDdddddLn/5WV3Lli0VGhqqmJgYbdiwwem5ivQevvPOO7rtttsUERH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mY6HidOnHDUmTp1qvnss8/Mvn37TEpKinnggQeMl5eX+eabbyw/v1deecUsX77c/PDDD+b77783EyZMMJJMXFyco46V3kN351eof//+pk2bNkX2aaX379FHHzVBQUEmMTHR6fN25swZR53yvh2WZY7laTssy/zK03ZYlvkVKi/b4cSJE83GjRvN/v37zXfffWeefPJJ4+HhYdauXWuMse42+IcKLIWX1l34GDRokDHGmEGDBplOnTo5tUlMTDQtW7Y0Pj4+pnbt2mbevHku/f773/82kZGRxtvb2zRo0MBpI7za3J1jp06dSqxvjDGjR482tWrVMj4+PqZ69eomNjbWJCcnX92J/R935/fCCy+YG2+80djtdlOlShVzyy23mJUrV7r0a5X3sCyf0RMnThg/Pz8zf/78Ivu00vtX1NwkmYULFzrqlPftsCxzLE/bYVnmV562w7J+RsvTdvjggw+aiIgIx1hiYmIcYcUY626DNmP+78wZAAAAi+IcFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHkEFgAAYHn/DyBrkXHoM5jsAAAAAElFTkSuQmCC",
|
| 779 |
-
"text/plain": [
|
| 780 |
-
"<Figure size 640x480 with 1 Axes>"
|
| 781 |
-
]
|
| 782 |
-
},
|
| 783 |
-
"metadata": {},
|
| 784 |
-
"output_type": "display_data"
|
| 785 |
-
},
|
| 786 |
-
{
|
| 787 |
-
"data": {
|
| 788 |
-
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAhYAAAGxCAYAAAA+tv8YAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAABIoklEQVR4nO3deVxUVeMG8GfYd0QFAdlcQRRxxyVFc7cMJZfcApey1NSfmpotYllqvrj0vmlZitVbaAn6Zr5abqBl7rgjkqKi4q4gqIBwfn/cl2kuMyADl2EGn+/nM5+aO+feey4z13nm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QEiIiKqPhgsiIiISDEMFkRERKQYBgsiIiJSDIMFERERKYbBgoiIiBTDYEFERESKYbAgIiIixTBYEBERkWIYLIiIiEgxDBZERESkGAYLIiIiUgyDBRERESmGwYKIiIgUw2BBREREimGwICIiIsUwWBAREZFiGCyIiIhIMQwWREREpBgGCyIiIlIMgwUREREphsGCiIiIFMNgQURERIphsCAiIiLFMFgQERGRYhgsiIiISDEMFkRERKQYBgsiIiJSDIMFERERKYbBgoiIiBTDYEFERESKYbAgIiIixTBYEBERkWIYLIiIiEgxDBZERESkGAYLIiIiUgyDBRERESmGwYKIiIgUw2BBREREimGwICIiIsUwWBAREZFiGCyIiIhIMQwWREREpBgGCyIiIlIMgwUREREphsGCiIiIFMNgQURERIphsCAiIiLFMFgQERGRYhgsiIiISDEMFkRERKQYBgsiIiJSDIMFERERKYbBgoiIiBTDYEFERESK0StYREVFQaVSyR7u7u6VVTciIiIyMRb6rtC0aVPs2LFD/dzc3FzRChEREZHp0jtYWFhYsJWCiIiIdNJ7jEVqaio8PT1Rr149vPLKK7hw4UKp5XNzc5GVlSV7EBERUfWkV7AICQnBt99+i19//RVfffUVrl+/jo4dO+LOnTslrrNgwQI4OzurH97e3hWuNBERERknlRBClHflnJwcNGjQADNnzsS0adN0lsnNzUVubq76eVZWFry9vZGZmQknJ6fy7pqIiIgMKCsrC87Ozk/9/tZ7jIUme3t7BAUFITU1tcQy1tbWsLa2rshuiIiIyERUaB6L3NxcJCcnw8PDQ6n6EBERkQnTK1jMmDEDiYmJSEtLw4EDBzBo0CBkZWUhIiKisupHREREJkSvrpArV65g2LBhuH37NlxdXdG+fXvs378fvr6+lVU/IiIiMiF6BYt169ZVVj2IiIioGuC9QoiIiEgxDBZERESkGAYLIiIiUgyDBRERESmGwYKIiIgUw2BBREREimGwICIiIsUwWBAREZFiGCyIiIhIMQwWREREpBgGCyIiIlIMgwUREREphsGCiIiIFMNgQURERIphsCAiIiLFMFgQERGRYhgsiIiISDEMFkRERKQYBgsiIiJSDI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jx490KBBA3z55ZeKVoyIiIiMR1m/vys8j4UQQtYiQURERM8uvQZvzpkzB3379oW3tzcePHiAdevWISEhAdu2baus+hEREZEJ0StY3LhxA6NGjUJGRgacnZ3RvHlzbNu2DT179qys+hEREZEJ0StYrF69urLqQURERNUA7xVCREREimGwICIiIsUwWBAREZFiGCyIiIhIMQwWREREpBgGCyIiIlIMgwUREREphsGCiIiIFMNgQURERIphsCAiIiLFMFgQERGRYhgsiIiISDEMFkRERKQYBgsiIiJSjF63TSciIiLjVFAA7N0LZGQAHh5A586Aubnh68FgQUREZOLi44EpU4ArV/5e5uUFLF8OhIcbti7sCiEiIjJh8fHAoEHyUAEAV69Ky+PjDVsfBgsiIiITVVAgtVQIof1a0bKpU6VyhsJgQUREZKL27tVuqdAkBJCeLpUzFAYLIiIiE5WRoWw5JTBYEBERmSgPD2XLKYHBgoiIyER17ixd/aFS6X5dpQK8vaVyhsJgQUREZKLMzaVLSgHtcFH0fNkyw85nwWBBRERkwsLDgQ0bgLp15cu9vKTlhp7HghNkERERmbjwcCAsjDNvEhERkULMzYGuXau6FuwKISIiIgUxWBAREZFiGCyIiIhIMQwWREREpBgGCyIiIlIMgwUREREphsGCiIiIFMNgQURERIphsCAiIiLFGHzmTSEEACArK8vQuyYiIqJyKvreLvoeL4nBg8WDBw8AAN7e3obeNREREVXQgwcP4OzsXOLrKvG06KGwwsJCXLt2DY6OjlCVdAP5csjKyoK3tzfS09Ph5OSk2HaNSXU/Rh6f6avux8jjM33V/Rgr8/iEEHjw4AE8PT1hZlbySAqDt1iYmZnBy8ur0rbv5ORULT8smqr7MfL4TF91P0Yen+mr7sdYWcdXWktFEQ7eJCIiIsUwWBAREZFiqk2wsLa2xty5c2FtbV3VVak01f0YeXymr7ofI4/P9FX3YzSG4zP44E0iIiKqvqpNiwURERFVPQYLIiIiUgyDBRERESmGwYKIiIgUw2BBREREijHKYLFnzx70798fnp6eUKlU2LRp01PXSUxMROvWrWFjY4P69evjiy++0CoTFxeHwMBAW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T8UdERIQQQoiIiAgRGhoqWychIUG0bNlSWFlZCT8/P7Fy5Uqt7f7000/C399fWFpaioCAANnJYmj6HmNoaGip5YUQYurUqcLHx0dYWVkJV1dX0atXL7Fv3z7DHtj/6Ht8ixYtEg0aNBA2NjbCxcVFPPfcc2LLli1a2zWW97A8n9H79+8LW1tbsWrVKp3bNKb3T9exARAxMTHqMqZ8Hpbn+EztHCzPMZrSeVjez6gpnYdjxowRvr6+6rp0795dHSqEMN5zUCXE/0Z2EBEREVVQtRhjQURERMaBwYKIiIgUw2BBREREimGwICIiIsUwWBAREZFiGCyIiIhIMQwWREREpBgGCyIiIlIMgwUREREphsGCiIiIFMNgQURERIr5fyLlEU1p2S5rAAAAAElFTkSuQmCC",
|
| 789 |
-
"text/plain": [
|
| 790 |
-
"<Figure size 640x480 with 1 Axes>"
|
| 791 |
-
]
|
| 792 |
-
},
|
| 793 |
-
"metadata": {},
|
| 794 |
-
"output_type": "display_data"
|
| 795 |
-
}
|
| 796 |
-
],
|
| 797 |
"source": [
|
| 798 |
"# import tensorflow as tf\n",
|
| 799 |
"from tensorflow import keras\n",
|
|
@@ -868,7 +795,7 @@
|
|
| 868 |
},
|
| 869 |
{
|
| 870 |
"cell_type": "code",
|
| 871 |
-
"execution_count":
|
| 872 |
"metadata": {
|
| 873 |
"execution": {
|
| 874 |
"iopub.execute_input": "2023-10-29T15:00:24.673773Z",
|
|
@@ -878,17 +805,7 @@
|
|
| 878 |
"shell.execute_reply.started": "2023-10-29T15:00:24.673739Z"
|
| 879 |
}
|
| 880 |
},
|
| 881 |
-
"outputs": [
|
| 882 |
-
{
|
| 883 |
-
"name": "stdout",
|
| 884 |
-
"output_type": "stream",
|
| 885 |
-
"text": [
|
| 886 |
-
"14/14 [==============================] - 5s 353ms/step - loss: 0.6931 - accuracy: 0.5326\n",
|
| 887 |
-
"Final Loss: 69.31%\n",
|
| 888 |
-
"Final Accuracy: 53.26%\n"
|
| 889 |
-
]
|
| 890 |
-
}
|
| 891 |
-
],
|
| 892 |
"source": [
|
| 893 |
"# get the final loss and accuracy\n",
|
| 894 |
"final_loss, final_accuracy = model.evaluate(test_data, test_labels)\n",
|
|
@@ -900,7 +817,7 @@
|
|
| 900 |
},
|
| 901 |
{
|
| 902 |
"cell_type": "code",
|
| 903 |
-
"execution_count":
|
| 904 |
"metadata": {
|
| 905 |
"execution": {
|
| 906 |
"iopub.execute_input": "2023-10-29T15:01:49.457438Z",
|
|
|
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"cell_type": "code",
|
| 99 |
+
"execution_count": null,
|
| 100 |
"metadata": {
|
| 101 |
"execution": {
|
| 102 |
"iopub.execute_input": "2023-10-29T14:53:47.494705Z",
|
|
|
|
| 119 |
},
|
| 120 |
{
|
| 121 |
"cell_type": "code",
|
| 122 |
+
"execution_count": null,
|
| 123 |
"metadata": {
|
| 124 |
"execution": {
|
| 125 |
"iopub.execute_input": "2023-10-29T14:53:47.510005Z",
|
|
|
|
| 129 |
"shell.execute_reply.started": "2023-10-29T14:53:47.509969Z"
|
| 130 |
}
|
| 131 |
},
|
| 132 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
"source": [
|
| 134 |
"# train\n",
|
| 135 |
"Class_names1_train = set()\n",
|
|
|
|
| 163 |
},
|
| 164 |
{
|
| 165 |
"cell_type": "code",
|
| 166 |
+
"execution_count": null,
|
| 167 |
"metadata": {
|
| 168 |
"execution": {
|
| 169 |
"iopub.execute_input": "2023-10-29T14:53:47.586296Z",
|
|
|
|
| 171 |
"iopub.status.idle": "2023-10-29T14:53:47.998495Z",
|
| 172 |
"shell.execute_reply": "2023-10-29T14:53:47.997197Z",
|
| 173 |
"shell.execute_reply.started": "2023-10-29T14:53:47.586236Z"
|
| 174 |
+
},
|
| 175 |
+
"scrolled": true
|
| 176 |
},
|
| 177 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
"source": [
|
| 179 |
"freq= {}\n",
|
| 180 |
"directory='data/'\n",
|
|
|
|
| 193 |
},
|
| 194 |
{
|
| 195 |
"cell_type": "code",
|
| 196 |
+
"execution_count": null,
|
| 197 |
"metadata": {
|
| 198 |
"execution": {
|
| 199 |
"iopub.execute_input": "2023-10-29T14:53:48.001500Z",
|
|
|
|
| 203 |
"shell.execute_reply.started": "2023-10-29T14:53:48.001445Z"
|
| 204 |
}
|
| 205 |
},
|
| 206 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
"source": [
|
| 208 |
"freq= {}\n",
|
| 209 |
"directory='data'\n",
|
|
|
|
| 243 |
},
|
| 244 |
{
|
| 245 |
"cell_type": "code",
|
| 246 |
+
"execution_count": 3,
|
| 247 |
"metadata": {
|
| 248 |
"execution": {
|
| 249 |
"iopub.execute_input": "2023-10-29T14:53:48.147497Z",
|
|
|
|
| 260 |
},
|
| 261 |
{
|
| 262 |
"cell_type": "code",
|
| 263 |
+
"execution_count": 4,
|
| 264 |
"metadata": {
|
| 265 |
"execution": {
|
| 266 |
"iopub.execute_input": "2023-10-29T14:53:48.161246Z",
|
|
|
|
| 270 |
"shell.execute_reply.started": "2023-10-29T14:53:48.161197Z"
|
| 271 |
}
|
| 272 |
},
|
| 273 |
+
"outputs": [
|
| 274 |
+
{
|
| 275 |
+
"name": "stdout",
|
| 276 |
+
"output_type": "stream",
|
| 277 |
+
"text": [
|
| 278 |
+
"number of real_images 887\n",
|
| 279 |
+
"number of real_images 1139\n",
|
| 280 |
+
"number of forged_images 1010\n"
|
| 281 |
+
]
|
| 282 |
+
}
|
| 283 |
+
],
|
| 284 |
"source": [
|
| 285 |
"def find_files_in_folder(path, folder_name):\n",
|
| 286 |
" folder_path = None\n",
|
|
|
|
| 436 |
},
|
| 437 |
{
|
| 438 |
"cell_type": "code",
|
| 439 |
+
"execution_count": 5,
|
| 440 |
"metadata": {
|
| 441 |
"execution": {
|
| 442 |
"iopub.execute_input": "2023-10-29T14:54:18.031748Z",
|
|
|
|
| 483 |
},
|
| 484 |
{
|
| 485 |
"cell_type": "code",
|
| 486 |
+
"execution_count": 6,
|
| 487 |
"metadata": {
|
| 488 |
"execution": {
|
| 489 |
"iopub.execute_input": "2023-10-29T14:54:18.228892Z",
|
|
|
|
| 508 |
},
|
| 509 |
{
|
| 510 |
"cell_type": "code",
|
| 511 |
+
"execution_count": 7,
|
| 512 |
"metadata": {
|
| 513 |
"execution": {
|
| 514 |
"iopub.execute_input": "2023-10-29T14:54:18.239789Z",
|
|
|
|
| 519 |
}
|
| 520 |
},
|
| 521 |
"outputs": [
|
| 522 |
+
{
|
| 523 |
+
"name": "stderr",
|
| 524 |
+
"output_type": "stream",
|
| 525 |
+
"text": [
|
| 526 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/layers/rnn/rnn.py:204: UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in the model instead.\n",
|
| 527 |
+
" super().__init__(**kwargs)\n"
|
| 528 |
+
]
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"data": {
|
| 532 |
+
"text/html": [
|
| 533 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Model: \"sequential\"</span>\n",
|
| 534 |
+
"</pre>\n"
|
| 535 |
+
],
|
| 536 |
+
"text/plain": [
|
| 537 |
+
"\u001b[1mModel: \"sequential\"\u001b[0m\n"
|
| 538 |
+
]
|
| 539 |
+
},
|
| 540 |
+
"metadata": {},
|
| 541 |
+
"output_type": "display_data"
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"data": {
|
| 545 |
+
"text/html": [
|
| 546 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 547 |
+
"┃<span style=\"font-weight: bold\"> Layer (type) </span>┃<span style=\"font-weight: bold\"> Output Shape </span>┃<span style=\"font-weight: bold\"> Param # </span>┃\n",
|
| 548 |
+
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 549 |
+
"│ lstm (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">LSTM</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">256</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">492,544</span> │\n",
|
| 550 |
+
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 551 |
+
"│ dense (<span style=\"color: #0087ff; text-decoration-color: #0087ff\">Dense</span>) │ (<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\">None</span>, <span style=\"color: #00af00; text-decoration-color: #00af00\">2</span>) │ <span style=\"color: #00af00; text-decoration-color: #00af00\">514</span> │\n",
|
| 552 |
+
"└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘\n",
|
| 553 |
+
"</pre>\n"
|
| 554 |
+
],
|
| 555 |
+
"text/plain": [
|
| 556 |
+
"┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
|
| 557 |
+
"┃\u001b[1m \u001b[0m\u001b[1mLayer (type) \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mOutput Shape \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Param #\u001b[0m\u001b[1m \u001b[0m┃\n",
|
| 558 |
+
"┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
|
| 559 |
+
"│ lstm (\u001b[38;5;33mLSTM\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m256\u001b[0m) │ \u001b[38;5;34m492,544\u001b[0m │\n",
|
| 560 |
+
"├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤\n",
|
| 561 |
+
"│ dense (\u001b[38;5;33mDense\u001b[0m) │ (\u001b[38;5;45mNone\u001b[0m, \u001b[38;5;34m2\u001b[0m) │ \u001b[38;5;34m514\u001b[0m │\n",
|
| 562 |
+
"└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘\n"
|
| 563 |
+
]
|
| 564 |
+
},
|
| 565 |
+
"metadata": {},
|
| 566 |
+
"output_type": "display_data"
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"data": {
|
| 570 |
+
"text/html": [
|
| 571 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\"> Total params: </span><span style=\"color: #00af00; text-decoration-color: #00af00\">493,058</span> (1.88 MB)\n",
|
| 572 |
+
"</pre>\n"
|
| 573 |
+
],
|
| 574 |
+
"text/plain": [
|
| 575 |
+
"\u001b[1m Total params: \u001b[0m\u001b[38;5;34m493,058\u001b[0m (1.88 MB)\n"
|
| 576 |
+
]
|
| 577 |
+
},
|
| 578 |
+
"metadata": {},
|
| 579 |
+
"output_type": "display_data"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"data": {
|
| 583 |
+
"text/html": [
|
| 584 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\"> Trainable params: </span><span style=\"color: #00af00; text-decoration-color: #00af00\">493,058</span> (1.88 MB)\n",
|
| 585 |
+
"</pre>\n"
|
| 586 |
+
],
|
| 587 |
+
"text/plain": [
|
| 588 |
+
"\u001b[1m Trainable params: \u001b[0m\u001b[38;5;34m493,058\u001b[0m (1.88 MB)\n"
|
| 589 |
+
]
|
| 590 |
+
},
|
| 591 |
+
"metadata": {},
|
| 592 |
+
"output_type": "display_data"
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"data": {
|
| 596 |
+
"text/html": [
|
| 597 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\"> Non-trainable params: </span><span style=\"color: #00af00; text-decoration-color: #00af00\">0</span> (0.00 B)\n",
|
| 598 |
+
"</pre>\n"
|
| 599 |
+
],
|
| 600 |
+
"text/plain": [
|
| 601 |
+
"\u001b[1m Non-trainable params: \u001b[0m\u001b[38;5;34m0\u001b[0m (0.00 B)\n"
|
| 602 |
+
]
|
| 603 |
+
},
|
| 604 |
+
"metadata": {},
|
| 605 |
+
"output_type": "display_data"
|
| 606 |
+
},
|
| 607 |
{
|
| 608 |
"name": "stdout",
|
| 609 |
"output_type": "stream",
|
| 610 |
"text": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 611 |
"Epoch 1/10\n"
|
| 612 |
]
|
| 613 |
},
|
| 614 |
{
|
| 615 |
"ename": "ValueError",
|
| 616 |
+
"evalue": "Exception encountered when calling Sequential.call().\n\n\u001b[1mInvalid input shape for input Tensor(\"data:0\", shape=(None, 1, 224, 224), dtype=float32). Expected shape (None, 1, 224), but input has incompatible shape (None, 1, 224, 224)\u001b[0m\n\nArguments received by Sequential.call():\n • inputs=tf.Tensor(shape=(None, 1, 224, 224), dtype=float32)\n • training=True\n • mask=None",
|
| 617 |
"output_type": "error",
|
| 618 |
"traceback": [
|
| 619 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 620 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 621 |
+
"\u001b[0;32m<ipython-input-7-bb833a2141e2>\u001b[0m in \u001b[0;36m<cell line: 29>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 27\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 28\u001b[0m \u001b[0;31m# train the model\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 29\u001b[0;31m \u001b[0mhistory\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrain_data\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtrain_labels\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbatch_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m32\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mepochs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m10\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalidation_split\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m.2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcallbacks\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mearly_stop\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 30\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 31\u001b[0m \u001b[0;31m# plot accuracy and loss\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 622 |
+
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 623 |
+
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py\u001b[0m in \u001b[0;36m_adjust_input_rank\u001b[0;34m(self, flat_inputs)\u001b[0m\n\u001b[1;32m 242\u001b[0m \u001b[0madjusted\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mops\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexpand_dims\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 243\u001b[0m \u001b[0;32mcontinue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 244\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 245\u001b[0m \u001b[0;34mf\"Invalid input shape for input {x}. Expected shape \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 246\u001b[0m \u001b[0;34mf\"{ref_shape}, but input has incompatible shape {x.shape}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 624 |
+
"\u001b[0;31mValueError\u001b[0m: Exception encountered when calling Sequential.call().\n\n\u001b[1mInvalid input shape for input Tensor(\"data:0\", shape=(None, 1, 224, 224), dtype=float32). Expected shape (None, 1, 224), but input has incompatible shape (None, 1, 224, 224)\u001b[0m\n\nArguments received by Sequential.call():\n • inputs=tf.Tensor(shape=(None, 1, 224, 224), dtype=float32)\n • training=True\n • mask=None"
|
| 625 |
]
|
| 626 |
}
|
| 627 |
],
|
|
|
|
| 710 |
},
|
| 711 |
{
|
| 712 |
"cell_type": "code",
|
| 713 |
+
"execution_count": null,
|
| 714 |
"metadata": {
|
| 715 |
"execution": {
|
| 716 |
"iopub.execute_input": "2023-10-29T14:54:40.076229Z",
|
|
|
|
| 720 |
"shell.execute_reply.started": "2023-10-29T14:54:40.076187Z"
|
| 721 |
}
|
| 722 |
},
|
| 723 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 724 |
"source": [
|
| 725 |
"# import tensorflow as tf\n",
|
| 726 |
"from tensorflow import keras\n",
|
|
|
|
| 795 |
},
|
| 796 |
{
|
| 797 |
"cell_type": "code",
|
| 798 |
+
"execution_count": null,
|
| 799 |
"metadata": {
|
| 800 |
"execution": {
|
| 801 |
"iopub.execute_input": "2023-10-29T15:00:24.673773Z",
|
|
|
|
| 805 |
"shell.execute_reply.started": "2023-10-29T15:00:24.673739Z"
|
| 806 |
}
|
| 807 |
},
|
| 808 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 809 |
"source": [
|
| 810 |
"# get the final loss and accuracy\n",
|
| 811 |
"final_loss, final_accuracy = model.evaluate(test_data, test_labels)\n",
|
|
|
|
| 817 |
},
|
| 818 |
{
|
| 819 |
"cell_type": "code",
|
| 820 |
+
"execution_count": null,
|
| 821 |
"metadata": {
|
| 822 |
"execution": {
|
| 823 |
"iopub.execute_input": "2023-10-29T15:01:49.457438Z",
|
benchmark/tensorflow_5/tensorflow_5_fixed.ipynb
CHANGED
|
@@ -151,7 +151,7 @@
|
|
| 151 |
},
|
| 152 |
{
|
| 153 |
"cell_type": "code",
|
| 154 |
-
"execution_count":
|
| 155 |
"metadata": {
|
| 156 |
"execution": {
|
| 157 |
"iopub.execute_input": "2023-12-07T13:26:39.148833Z",
|
|
@@ -161,25 +161,14 @@
|
|
| 161 |
"shell.execute_reply.started": "2023-12-07T13:26:39.148792Z"
|
| 162 |
}
|
| 163 |
},
|
| 164 |
-
"outputs": [
|
| 165 |
-
{
|
| 166 |
-
"data": {
|
| 167 |
-
"text/plain": [
|
| 168 |
-
"0"
|
| 169 |
-
]
|
| 170 |
-
},
|
| 171 |
-
"execution_count": 4,
|
| 172 |
-
"metadata": {},
|
| 173 |
-
"output_type": "execute_result"
|
| 174 |
-
}
|
| 175 |
-
],
|
| 176 |
"source": [
|
| 177 |
"rating_df['rating'].isna().sum()"
|
| 178 |
]
|
| 179 |
},
|
| 180 |
{
|
| 181 |
"cell_type": "code",
|
| 182 |
-
"execution_count":
|
| 183 |
"metadata": {
|
| 184 |
"execution": {
|
| 185 |
"iopub.execute_input": "2023-12-07T11:29:10.997404Z",
|
|
@@ -314,7 +303,7 @@
|
|
| 314 |
},
|
| 315 |
{
|
| 316 |
"cell_type": "code",
|
| 317 |
-
"execution_count":
|
| 318 |
"metadata": {},
|
| 319 |
"outputs": [],
|
| 320 |
"source": [
|
|
@@ -339,7 +328,7 @@
|
|
| 339 |
},
|
| 340 |
{
|
| 341 |
"cell_type": "code",
|
| 342 |
-
"execution_count":
|
| 343 |
"metadata": {
|
| 344 |
"execution": {
|
| 345 |
"iopub.execute_input": "2023-12-07T12:01:00.036863Z",
|
|
@@ -362,7 +351,7 @@
|
|
| 362 |
},
|
| 363 |
{
|
| 364 |
"cell_type": "code",
|
| 365 |
-
"execution_count":
|
| 366 |
"metadata": {
|
| 367 |
"execution": {
|
| 368 |
"iopub.execute_input": "2023-12-07T12:01:11.473101Z",
|
|
@@ -379,7 +368,7 @@
|
|
| 379 |
"1000"
|
| 380 |
]
|
| 381 |
},
|
| 382 |
-
"execution_count":
|
| 383 |
"metadata": {},
|
| 384 |
"output_type": "execute_result"
|
| 385 |
}
|
|
@@ -390,7 +379,7 @@
|
|
| 390 |
},
|
| 391 |
{
|
| 392 |
"cell_type": "code",
|
| 393 |
-
"execution_count":
|
| 394 |
"metadata": {
|
| 395 |
"execution": {
|
| 396 |
"iopub.execute_input": "2023-12-07T13:52:39.565889Z",
|
|
@@ -445,7 +434,7 @@
|
|
| 445 |
},
|
| 446 |
{
|
| 447 |
"cell_type": "code",
|
| 448 |
-
"execution_count":
|
| 449 |
"metadata": {
|
| 450 |
"execution": {
|
| 451 |
"iopub.execute_input": "2023-12-07T12:39:18.292278Z",
|
|
@@ -493,7 +482,7 @@
|
|
| 493 |
},
|
| 494 |
{
|
| 495 |
"cell_type": "code",
|
| 496 |
-
"execution_count":
|
| 497 |
"metadata": {
|
| 498 |
"execution": {
|
| 499 |
"iopub.execute_input": "2023-12-07T12:39:33.627085Z",
|
|
@@ -513,7 +502,7 @@
|
|
| 513 |
},
|
| 514 |
{
|
| 515 |
"cell_type": "code",
|
| 516 |
-
"execution_count":
|
| 517 |
"metadata": {
|
| 518 |
"execution": {
|
| 519 |
"iopub.execute_input": "2023-12-07T13:06:05.665173Z",
|
|
@@ -675,7 +664,7 @@
|
|
| 675 |
},
|
| 676 |
{
|
| 677 |
"cell_type": "code",
|
| 678 |
-
"execution_count":
|
| 679 |
"metadata": {
|
| 680 |
"execution": {
|
| 681 |
"iopub.execute_input": "2023-12-07T13:06:21.674206Z",
|
|
@@ -734,7 +723,7 @@
|
|
| 734 |
},
|
| 735 |
{
|
| 736 |
"cell_type": "code",
|
| 737 |
-
"execution_count":
|
| 738 |
"metadata": {
|
| 739 |
"execution": {
|
| 740 |
"iopub.execute_input": "2023-12-07T13:06:27.387608Z",
|
|
@@ -744,198 +733,14 @@
|
|
| 744 |
"shell.execute_reply.started": "2023-12-07T13:06:27.387574Z"
|
| 745 |
}
|
| 746 |
},
|
| 747 |
-
"outputs": [
|
| 748 |
-
{
|
| 749 |
-
"name": "stdout",
|
| 750 |
-
"output_type": "stream",
|
| 751 |
-
"text": [
|
| 752 |
-
"[array([17630, 27556, 13937, 6410, 33577, 7397, 14950, 4690, 8329,\n",
|
| 753 |
-
" 29061, 7162, 3565, 28951, 25967, 14472, 24584, 12455, 22938,\n",
|
| 754 |
-
" 17548, 31256, 15968, 26333, 21170, 5644, 8341, 8973, 28151,\n",
|
| 755 |
-
" 22054, 6231, 25095, 18001, 34150, 31555, 7449, 21938, 17771,\n",
|
| 756 |
-
" 18300, 11871, 4932, 26034, 21251, 20301, 25261, 5125, 16680,\n",
|
| 757 |
-
" 959, 30762, 10490, 5226, 7564, 28018, 1597, 30405, 10550,\n",
|
| 758 |
-
" 29160, 21862, 3093, 6123, 32987, 29897, 16679, 3647, 18791,\n",
|
| 759 |
-
" 32300, 7848, 22732, 2268, 28430, 1076, 2799, 8601, 12904,\n",
|
| 760 |
-
" 27698, 11231, 28343, 12641, 14211, 13741, 2279, 22745, 17313,\n",
|
| 761 |
-
" 30535, 2739, 13346, 27555, 23985, 18256, 14804, 14350, 21553,\n",
|
| 762 |
-
" 12733, 12718, 29325, 34554, 23170, 26063, 23198, 13095, 32036,\n",
|
| 763 |
-
" 122, 21349, 3502, 4486, 32575, 16810, 32495, 4401, 29738,\n",
|
| 764 |
-
" 13539, 23277, 18833, 29129, 6204, 5266, 2645, 13997, 34273,\n",
|
| 765 |
-
" 19991, 17705, 10982, 1163, 7557, 16877, 9780, 30575, 20533,\n",
|
| 766 |
-
" 9514, 2508, 5533, 5678, 27996, 5977, 10558, 24740, 25719,\n",
|
| 767 |
-
" 30181, 25461, 6821, 22322, 3447, 22399, 2421, 809, 22121,\n",
|
| 768 |
-
" 12873, 18028, 3399, 18688, 22264, 7352, 6118, 10299, 17261,\n",
|
| 769 |
-
" 28591, 22939, 13935, 24908, 6160, 18178, 33600, 7448, 22740,\n",
|
| 770 |
-
" 23335, 24857, 15309, 26354, 21, 153, 3487, 11600, 16402,\n",
|
| 771 |
-
" 24167, 6032, 25878, 32739, 32814, 4642, 19704, 32375, 28072,\n",
|
| 772 |
-
" 15439, 13472, 19371, 32269, 7999, 4626, 30984, 16619, 6780,\n",
|
| 773 |
-
" 24680, 2580, 19666, 16492, 7361, 14336, 13449, 26324, 5009,\n",
|
| 774 |
-
" 6886, 2596, 2420, 5262, 8772, 31115, 28278, 18753, 28002,\n",
|
| 775 |
-
" 24693, 11623, 21253, 583, 21768, 24725, 15650, 28871, 29975,\n",
|
| 776 |
-
" 6846, 15390, 29610, 25475, 32834, 26205, 19086, 13656, 19964,\n",
|
| 777 |
-
" 2196, 22724, 3971, 17867, 4549, 21626, 7774, 18868, 8838,\n",
|
| 778 |
-
" 27074, 7938, 11370, 29672, 17699, 33478, 35010, 33272, 2375,\n",
|
| 779 |
-
" 16637, 249, 32277, 6027, 31677, 7319, 10839, 12402, 21187,\n",
|
| 780 |
-
" 34357, 30612, 7563, 25202, 11490, 29636, 21568, 18139, 28804,\n",
|
| 781 |
-
" 21723, 32930, 8239, 25650, 18068, 28889, 11290, 7831, 31058,\n",
|
| 782 |
-
" 20878, 33222, 23984, 27336, 22338, 16455, 4945, 13109, 936,\n",
|
| 783 |
-
" 19330, 25844, 6134, 28040, 12289, 3579, 12373, 24728, 33038,\n",
|
| 784 |
-
" 19712, 18867, 22911, 2356, 2374, 6673, 4075, 18883, 23604,\n",
|
| 785 |
-
" 4091, 15689, 34327, 17773, 9799, 4599, 16508, 33739, 3603,\n",
|
| 786 |
-
" 13707, 11520, 7256, 28988, 31751, 33476, 23564, 18026, 21009,\n",
|
| 787 |
-
" 25130, 33308, 14131, 16911, 27344, 13842, 17409, 27568, 26266,\n",
|
| 788 |
-
" 23370, 11402, 12198, 21192, 20649, 3252, 7748, 27757, 1311,\n",
|
| 789 |
-
" 21700, 5059, 8424, 1678, 12286, 27390, 9873, 32625, 22740,\n",
|
| 790 |
-
" 459, 21740, 1260, 14810, 3504, 28309, 11140, 27923, 28160,\n",
|
| 791 |
-
" 30247, 33977, 15226, 5845, 6526, 9778, 22587, 28247, 23472,\n",
|
| 792 |
-
" 8361, 26176, 20264, 15597, 310, 12539, 3133, 3266, 3573,\n",
|
| 793 |
-
" 2400, 33918, 20250, 21083, 34932, 2676, 23694, 7144, 1543,\n",
|
| 794 |
-
" 21502, 2748, 27322, 11214, 30610, 20062, 30822, 16234, 20458,\n",
|
| 795 |
-
" 33609, 17874, 21878, 30033, 3764, 24982, 9061, 34878, 23011,\n",
|
| 796 |
-
" 29819, 30958, 34996, 9816, 31303, 32824, 6666, 19493, 4498,\n",
|
| 797 |
-
" 2973, 18283, 21483, 17284, 18478, 26370, 1999, 34846, 19173,\n",
|
| 798 |
-
" 5186, 34683, 21214, 824, 17986, 5772, 11766, 5400, 7748,\n",
|
| 799 |
-
" 32078, 21550, 28336, 24754, 21376, 944, 19918, 29731, 4242,\n",
|
| 800 |
-
" 278, 34075, 5048, 12332, 34213, 10768, 6995, 14927, 14640,\n",
|
| 801 |
-
" 24547, 20990, 31891, 10912, 11758, 2238, 4955, 7024, 9619,\n",
|
| 802 |
-
" 21261, 18472, 12777, 34941, 21419, 6712, 10823, 4472, 8104,\n",
|
| 803 |
-
" 20174, 34200, 26900, 22180, 26033, 16957, 12583, 3143, 19361,\n",
|
| 804 |
-
" 18719, 34750, 34833, 32384, 8595, 32595, 29452, 32556, 20299,\n",
|
| 805 |
-
" 23598, 15338, 14341, 26747, 16193, 615, 5024, 29974, 20638,\n",
|
| 806 |
-
" 17545, 17970, 15409, 22578, 23224, 12107, 30788, 4185, 34737,\n",
|
| 807 |
-
" 26471, 18767, 3615, 6585, 15820, 19008, 26366, 15312, 772,\n",
|
| 808 |
-
" 32935, 15746, 32073, 24812, 1008, 13476, 28316, 1282, 14786,\n",
|
| 809 |
-
" 2780, 31565, 31798, 29247, 21990, 35135, 33211, 19527, 14751,\n",
|
| 810 |
-
" 13763, 17519, 1421, 5820, 33762, 20645, 9872, 19254, 33879,\n",
|
| 811 |
-
" 5513, 1472, 9925, 8131, 18388, 22695, 20848, 25002, 23920,\n",
|
| 812 |
-
" 28597, 33794, 33694, 23721, 472, 33339, 33661, 31408, 10110,\n",
|
| 813 |
-
" 20205, 6321, 32672, 3491, 19041, 8449, 34096, 13354, 15173,\n",
|
| 814 |
-
" 27413, 2308, 25513, 15043, 6349, 22146, 30401, 28383, 16941,\n",
|
| 815 |
-
" 23153, 21250, 11326, 891, 210, 4653, 356, 25113, 15926,\n",
|
| 816 |
-
" 28732, 17940, 32930, 2368, 21821, 13653, 13414, 4270, 32733,\n",
|
| 817 |
-
" 25328, 34488, 33901, 15091, 29997, 27300, 26279, 15404, 2390,\n",
|
| 818 |
-
" 33826, 16589, 22358, 4873, 3877, 18209, 12889, 3408, 30505,\n",
|
| 819 |
-
" 15329, 8950, 9737, 12358, 5671, 20472, 4090, 31772, 12943,\n",
|
| 820 |
-
" 4435, 14907, 29127, 14288, 16278, 2697, 25042, 21239, 33703,\n",
|
| 821 |
-
" 10334, 19925, 8715, 16876, 4625, 5655, 14892, 29660, 20537,\n",
|
| 822 |
-
" 15841, 5381, 32041, 15230, 28034, 12449, 30398, 21595, 25228,\n",
|
| 823 |
-
" 857, 14858, 8707, 14140, 26814, 9726, 23086, 26395, 21845,\n",
|
| 824 |
-
" 4108, 15942, 18478, 14820, 23897, 15998, 782, 6727, 31703,\n",
|
| 825 |
-
" 23781, 23670, 5993, 744, 9945, 7761, 30040, 8247, 16086,\n",
|
| 826 |
-
" 17018, 33425, 32353, 24268, 25085, 3749, 25961, 592, 9991,\n",
|
| 827 |
-
" 7560, 3949, 11680, 7125, 19358, 17785, 9502, 14193, 13259,\n",
|
| 828 |
-
" 5633, 32796, 15609, 22852, 15521, 6812, 6641, 5189, 13897,\n",
|
| 829 |
-
" 17779, 17962, 26620, 809, 26203, 24145, 733, 13526, 14565,\n",
|
| 830 |
-
" 4034, 29322, 9222, 3284, 25320, 4685, 32480, 8810, 22567,\n",
|
| 831 |
-
" 4111, 4342, 31467, 29518, 8817, 24310, 31838, 10533, 8568,\n",
|
| 832 |
-
" 20363, 15037, 24793, 6384, 34252, 25320, 27556, 13298, 6543,\n",
|
| 833 |
-
" 28210, 7691, 1306, 24542, 4535, 11938, 31032, 17701, 33193,\n",
|
| 834 |
-
" 21211, 32827, 25177, 6555, 12448, 12864, 21835, 14681, 9801,\n",
|
| 835 |
-
" 16416, 25821, 32923, 14718, 1029, 4278, 5750, 31825, 22312,\n",
|
| 836 |
-
" 31069, 32796, 5884, 8131, 18888, 9968, 19699, 21704, 28080,\n",
|
| 837 |
-
" 4442, 14213, 9401, 287, 13188, 24082, 13652, 33361, 20994,\n",
|
| 838 |
-
" 24635, 28069, 27122, 6778, 23789, 14952, 11317, 1539, 24729,\n",
|
| 839 |
-
" 22993, 13483, 5740, 18419, 12740, 13732, 14637, 29962, 13212,\n",
|
| 840 |
-
" 29317, 29973, 6835, 1023, 8062, 16111, 11874, 28108]), array([ 783, 3996, 981, 856, 8239, 1910, 22, 860, 2189,\n",
|
| 841 |
-
" 4230, 313, 53, 141, 3803, 6515, 656, 1786, 1982,\n",
|
| 842 |
-
" 1341, 505, 189, 2108, 3701, 585, 253, 764, 3358,\n",
|
| 843 |
-
" 1962, 5778, 1258, 3586, 4015, 1922, 215, 1057, 3646,\n",
|
| 844 |
-
" 3085, 9897, 2969, 396, 4326, 2227, 272, 2667, 1939,\n",
|
| 845 |
-
" 1817, 3507, 638, 3364, 369, 769, 2358, 1079, 141,\n",
|
| 846 |
-
" 272, 881, 1050, 4364, 3391, 5015, 263, 3056, 2652,\n",
|
| 847 |
-
" 6939, 2040, 233, 9233, 3519, 3399, 1803, 1355, 714,\n",
|
| 848 |
-
" 4150, 654, 3578, 2029, 3351, 1120, 2544, 317, 524,\n",
|
| 849 |
-
" 1126, 682, 764, 1474, 3124, 5622, 2628, 1707, 2767,\n",
|
| 850 |
-
" 2163, 4290, 3507, 346, 495, 916, 9, 1148, 224,\n",
|
| 851 |
-
" 9830, 860, 599, 966, 216, 2488, 1031, 474, 8057,\n",
|
| 852 |
-
" 840, 474, 2287, 10719, 867, 1799, 13, 302, 1340,\n",
|
| 853 |
-
" 2062, 532, 1945, 488, 2623, 398, 2758, 172, 1060,\n",
|
| 854 |
-
" 415, 911, 662, 812, 2252, 832, 3909, 7875, 3063,\n",
|
| 855 |
-
" 1938, 4133, 2977, 4439, 6398, 697, 2319, 3744, 395,\n",
|
| 856 |
-
" 1794, 10117, 2639, 2325, 3860, 1947, 806, 2623, 584,\n",
|
| 857 |
-
" 4727, 1087, 105, 1743, 4693, 244, 1072, 908, 1995,\n",
|
| 858 |
-
" 584, 49, 5167, 620, 3705, 10375, 14587, 4604, 56,\n",
|
| 859 |
-
" 4447, 3615, 2310, 669, 1803, 1863, 1106, 802, 1870,\n",
|
| 860 |
-
" 1307, 1966, 6357, 1039, 3732, 7854, 2958, 1876, 3407,\n",
|
| 861 |
-
" 5349, 10132, 637, 9147, 1605, 5363, 631, 3619, 2253,\n",
|
| 862 |
-
" 4971, 1342, 433, 8058, 3193, 649, 954, 393, 3255,\n",
|
| 863 |
-
" 858, 442, 1039, 597, 411, 556, 317, 3421, 5795,\n",
|
| 864 |
-
" 4772, 2300, 152, 1834, 898, 1702, 1096, 8244, 585,\n",
|
| 865 |
-
" 843, 1989, 3808, 1268, 8600, 4278, 3825, 8001, 1721,\n",
|
| 866 |
-
" 2998, 568, 3857, 1619, 2847, 1775, 2171, 2041, 176,\n",
|
| 867 |
-
" 4169, 763, 402, 146, 2077, 2795, 968, 4856, 61,\n",
|
| 868 |
-
" 840, 4481, 2265, 1480, 2262, 171, 1246, 177, 263,\n",
|
| 869 |
-
" 356, 2309, 2402, 2310, 393, 1879, 162, 3614, 1937,\n",
|
| 870 |
-
" 2996, 324, 1091, 1207, 5442, 1136, 1008, 1958, 4017,\n",
|
| 871 |
-
" 3322, 1929, 9494, 346, 2890, 222, 858, 1552, 303,\n",
|
| 872 |
-
" 2901, 2864, 803, 5328, 143, 2728, 878, 2969, 982,\n",
|
| 873 |
-
" 287, 15, 315, 1282, 610, 2066, 637, 87, 10603,\n",
|
| 874 |
-
" 139, 597, 124, 2715, 289, 53, 3403, 4172, 708,\n",
|
| 875 |
-
" 512, 3618, 202, 3766, 1862, 333, 24, 83, 8090,\n",
|
| 876 |
-
" 4773, 1049, 2307, 102, 3492, 2172, 7953, 1134, 189,\n",
|
| 877 |
-
" 529, 929, 338, 2975, 2871, 334, 3741, 2442, 2860,\n",
|
| 878 |
-
" 5294, 4880, 4128, 383, 361, 1607, 2154, 678, 2,\n",
|
| 879 |
-
" 454, 2144, 932, 629, 1913, 2604, 557, 1530, 2030,\n",
|
| 880 |
-
" 124, 647, 1042, 55, 981, 56, 133, 8540, 13884,\n",
|
| 881 |
-
" 669, 1985, 253, 10533, 9310, 2082, 3728, 322, 831,\n",
|
| 882 |
-
" 3619, 126, 3664, 807, 5042, 2081, 719, 1325, 274,\n",
|
| 883 |
-
" 1187, 18, 753, 7921, 1003, 10406, 1026, 166, 847,\n",
|
| 884 |
-
" 4390, 416, 2801, 315, 844, 675, 1790, 1140, 4460,\n",
|
| 885 |
-
" 263, 409, 310, 15209, 941, 3450, 564, 1086, 223,\n",
|
| 886 |
-
" 978, 6194, 758, 1008, 676, 3438, 882, 1143, 4711,\n",
|
| 887 |
-
" 99, 7330, 2338, 2783, 4471, 5889, 5501, 618, 3246,\n",
|
| 888 |
-
" 2260, 3881, 604, 1151, 919, 2022, 2080, 4104, 982,\n",
|
| 889 |
-
" 304, 6, 346, 5244, 2100, 4519, 183, 1712, 1901,\n",
|
| 890 |
-
" 808, 249, 2116, 3530, 10153, 115, 10351, 1101, 1345,\n",
|
| 891 |
-
" 2355, 5307, 605, 2873, 581, 317, 2026, 1258, 2067,\n",
|
| 892 |
-
" 6357, 3061, 3853, 4475, 2213, 930, 72, 1969, 852,\n",
|
| 893 |
-
" 607, 2217, 1162, 3610, 387, 725, 7535, 731, 4606,\n",
|
| 894 |
-
" 605, 375, 1989, 711, 3151, 352, 2357, 604, 2018,\n",
|
| 895 |
-
" 269, 112, 860, 397, 447, 1969, 1073, 267, 9774,\n",
|
| 896 |
-
" 445, 2740, 4987, 728, 2588, 4958, 5782, 2919, 351,\n",
|
| 897 |
-
" 118, 489, 229, 952, 202, 2154, 1821, 34, 632,\n",
|
| 898 |
-
" 963, 436, 96, 506, 5860, 8614, 6122, 3720, 2085,\n",
|
| 899 |
-
" 2062, 53, 3243, 1347, 220, 3405, 861, 1552, 109,\n",
|
| 900 |
-
" 398, 356, 2613, 209, 462, 709, 99, 2632, 220,\n",
|
| 901 |
-
" 2045, 900, 396, 535, 196, 2135, 3590, 4258, 552,\n",
|
| 902 |
-
" 1726, 4662, 5371, 2980, 3397, 615, 2202, 594, 857,\n",
|
| 903 |
-
" 18, 989, 5471, 875, 4028, 2065, 179, 310, 3893,\n",
|
| 904 |
-
" 85, 2478, 4082, 961, 2189, 55, 9315, 5251, 266,\n",
|
| 905 |
-
" 566, 2267, 1901, 4259, 648, 1004, 182, 1128, 9666,\n",
|
| 906 |
-
" 302, 4453, 3833, 611, 5054, 2766, 10541, 314, 635,\n",
|
| 907 |
-
" 80, 3970, 319, 126, 99, 10465, 622, 1008, 641,\n",
|
| 908 |
-
" 312, 3239, 2014, 742, 171, 7962, 5153, 1378, 742,\n",
|
| 909 |
-
" 3447, 2176, 579, 1150, 1922, 5403, 1792, 207, 802,\n",
|
| 910 |
-
" 342, 2774, 5876, 895, 4276, 3357, 11850, 19, 2540,\n",
|
| 911 |
-
" 3503, 644, 557, 84, 2075, 1039, 1953, 2337, 234,\n",
|
| 912 |
-
" 1292, 2747, 790, 3767, 561, 472, 219, 6050, 464,\n",
|
| 913 |
-
" 898, 2182, 1881, 553, 910, 3681, 952, 2649, 118,\n",
|
| 914 |
-
" 2062, 178, 736, 2152, 1863, 7966, 3917, 413, 6456,\n",
|
| 915 |
-
" 2470, 2482, 6476, 377, 2321, 1265, 2142, 864, 2436,\n",
|
| 916 |
-
" 724, 8372, 18, 4350, 4700, 2153, 3950, 66, 1689,\n",
|
| 917 |
-
" 198, 3926, 476, 498, 346, 1816, 146, 1760, 80,\n",
|
| 918 |
-
" 3291, 424, 1057, 1915, 4203, 592, 1956, 162, 2039,\n",
|
| 919 |
-
" 3526, 555, 189, 4492, 3522, 6172, 1127, 2610, 7985,\n",
|
| 920 |
-
" 3066, 218, 1203, 716, 752, 2895, 7574, 166, 1087,\n",
|
| 921 |
-
" 2073, 352, 5428, 968, 4508, 886, 1036, 1576, 257,\n",
|
| 922 |
-
" 641, 996, 18, 10569, 938, 1011, 3632, 379, 291,\n",
|
| 923 |
-
" 1691, 11686, 2410, 2287, 7940, 5412, 3712, 982, 1906,\n",
|
| 924 |
-
" 56, 765, 304, 1058, 389, 2289, 505, 1134, 361,\n",
|
| 925 |
-
" 499, 6461, 302, 509, 2559, 9886, 2569, 2103, 904,\n",
|
| 926 |
-
" 5841, 1085, 1224, 6440, 599, 2052, 1726, 1028, 9859,\n",
|
| 927 |
-
" 587, 1085, 3847, 2242, 564, 1091, 3406, 1884, 2091,\n",
|
| 928 |
-
" 902, 604, 371, 2631, 1025, 7781, 3646, 16])]\n"
|
| 929 |
-
]
|
| 930 |
-
}
|
| 931 |
-
],
|
| 932 |
"source": [
|
| 933 |
"print(X_train_array)"
|
| 934 |
]
|
| 935 |
},
|
| 936 |
{
|
| 937 |
"cell_type": "code",
|
| 938 |
-
"execution_count":
|
| 939 |
"metadata": {
|
| 940 |
"execution": {
|
| 941 |
"iopub.execute_input": "2023-12-07T13:06:40.924775Z",
|
|
@@ -951,13 +756,13 @@
|
|
| 951 |
"output_type": "stream",
|
| 952 |
"text": [
|
| 953 |
"Epoch 1/5\n",
|
| 954 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m2s\u001b[0m
|
| 955 |
"Epoch 2/5\n",
|
| 956 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 957 |
"Epoch 3/5\n",
|
| 958 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 959 |
"Epoch 4/5\n",
|
| 960 |
-
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 961 |
]
|
| 962 |
}
|
| 963 |
],
|
|
|
|
| 151 |
},
|
| 152 |
{
|
| 153 |
"cell_type": "code",
|
| 154 |
+
"execution_count": null,
|
| 155 |
"metadata": {
|
| 156 |
"execution": {
|
| 157 |
"iopub.execute_input": "2023-12-07T13:26:39.148833Z",
|
|
|
|
| 161 |
"shell.execute_reply.started": "2023-12-07T13:26:39.148792Z"
|
| 162 |
}
|
| 163 |
},
|
| 164 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
"source": [
|
| 166 |
"rating_df['rating'].isna().sum()"
|
| 167 |
]
|
| 168 |
},
|
| 169 |
{
|
| 170 |
"cell_type": "code",
|
| 171 |
+
"execution_count": 4,
|
| 172 |
"metadata": {
|
| 173 |
"execution": {
|
| 174 |
"iopub.execute_input": "2023-12-07T11:29:10.997404Z",
|
|
|
|
| 303 |
},
|
| 304 |
{
|
| 305 |
"cell_type": "code",
|
| 306 |
+
"execution_count": 5,
|
| 307 |
"metadata": {},
|
| 308 |
"outputs": [],
|
| 309 |
"source": [
|
|
|
|
| 328 |
},
|
| 329 |
{
|
| 330 |
"cell_type": "code",
|
| 331 |
+
"execution_count": 6,
|
| 332 |
"metadata": {
|
| 333 |
"execution": {
|
| 334 |
"iopub.execute_input": "2023-12-07T12:01:00.036863Z",
|
|
|
|
| 351 |
},
|
| 352 |
{
|
| 353 |
"cell_type": "code",
|
| 354 |
+
"execution_count": 7,
|
| 355 |
"metadata": {
|
| 356 |
"execution": {
|
| 357 |
"iopub.execute_input": "2023-12-07T12:01:11.473101Z",
|
|
|
|
| 368 |
"1000"
|
| 369 |
]
|
| 370 |
},
|
| 371 |
+
"execution_count": 7,
|
| 372 |
"metadata": {},
|
| 373 |
"output_type": "execute_result"
|
| 374 |
}
|
|
|
|
| 379 |
},
|
| 380 |
{
|
| 381 |
"cell_type": "code",
|
| 382 |
+
"execution_count": 8,
|
| 383 |
"metadata": {
|
| 384 |
"execution": {
|
| 385 |
"iopub.execute_input": "2023-12-07T13:52:39.565889Z",
|
|
|
|
| 434 |
},
|
| 435 |
{
|
| 436 |
"cell_type": "code",
|
| 437 |
+
"execution_count": 9,
|
| 438 |
"metadata": {
|
| 439 |
"execution": {
|
| 440 |
"iopub.execute_input": "2023-12-07T12:39:18.292278Z",
|
|
|
|
| 482 |
},
|
| 483 |
{
|
| 484 |
"cell_type": "code",
|
| 485 |
+
"execution_count": 10,
|
| 486 |
"metadata": {
|
| 487 |
"execution": {
|
| 488 |
"iopub.execute_input": "2023-12-07T12:39:33.627085Z",
|
|
|
|
| 502 |
},
|
| 503 |
{
|
| 504 |
"cell_type": "code",
|
| 505 |
+
"execution_count": 11,
|
| 506 |
"metadata": {
|
| 507 |
"execution": {
|
| 508 |
"iopub.execute_input": "2023-12-07T13:06:05.665173Z",
|
|
|
|
| 664 |
},
|
| 665 |
{
|
| 666 |
"cell_type": "code",
|
| 667 |
+
"execution_count": 12,
|
| 668 |
"metadata": {
|
| 669 |
"execution": {
|
| 670 |
"iopub.execute_input": "2023-12-07T13:06:21.674206Z",
|
|
|
|
| 723 |
},
|
| 724 |
{
|
| 725 |
"cell_type": "code",
|
| 726 |
+
"execution_count": null,
|
| 727 |
"metadata": {
|
| 728 |
"execution": {
|
| 729 |
"iopub.execute_input": "2023-12-07T13:06:27.387608Z",
|
|
|
|
| 733 |
"shell.execute_reply.started": "2023-12-07T13:06:27.387574Z"
|
| 734 |
}
|
| 735 |
},
|
| 736 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 737 |
"source": [
|
| 738 |
"print(X_train_array)"
|
| 739 |
]
|
| 740 |
},
|
| 741 |
{
|
| 742 |
"cell_type": "code",
|
| 743 |
+
"execution_count": 13,
|
| 744 |
"metadata": {
|
| 745 |
"execution": {
|
| 746 |
"iopub.execute_input": "2023-12-07T13:06:40.924775Z",
|
|
|
|
| 756 |
"output_type": "stream",
|
| 757 |
"text": [
|
| 758 |
"Epoch 1/5\n",
|
| 759 |
+
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m2s\u001b[0m 141ms/step - loss: 0.7945 - mae: 0.2766 - mse: 0.1126 - val_loss: 0.6952 - val_mae: 0.2494 - val_mse: 0.0808 - learning_rate: 1.0000e-05\n",
|
| 760 |
"Epoch 2/5\n",
|
| 761 |
+
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 46ms/step - loss: 0.7902 - mae: 0.2791 - mse: 0.1153 - val_loss: 0.6954 - val_mae: 0.2494 - val_mse: 0.0809 - learning_rate: 1.8000e-05\n",
|
| 762 |
"Epoch 3/5\n",
|
| 763 |
+
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 44ms/step - loss: 0.7946 - mae: 0.2775 - mse: 0.1151 - val_loss: 0.6955 - val_mae: 0.2494 - val_mse: 0.0809 - learning_rate: 2.6000e-05\n",
|
| 764 |
"Epoch 4/5\n",
|
| 765 |
+
"\u001b[1m8/8\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 46ms/step - loss: 0.7835 - mae: 0.2703 - mse: 0.1090 - val_loss: 0.6956 - val_mae: 0.2494 - val_mse: 0.0810 - learning_rate: 3.4000e-05\n"
|
| 766 |
]
|
| 767 |
}
|
| 768 |
],
|
benchmark/tensorflow_5/tensorflow_5_reproduced.ipynb
CHANGED
|
@@ -151,7 +151,7 @@
|
|
| 151 |
},
|
| 152 |
{
|
| 153 |
"cell_type": "code",
|
| 154 |
-
"execution_count":
|
| 155 |
"metadata": {
|
| 156 |
"execution": {
|
| 157 |
"iopub.execute_input": "2023-12-07T13:26:39.148833Z",
|
|
@@ -161,25 +161,14 @@
|
|
| 161 |
"shell.execute_reply.started": "2023-12-07T13:26:39.148792Z"
|
| 162 |
}
|
| 163 |
},
|
| 164 |
-
"outputs": [
|
| 165 |
-
{
|
| 166 |
-
"data": {
|
| 167 |
-
"text/plain": [
|
| 168 |
-
"0"
|
| 169 |
-
]
|
| 170 |
-
},
|
| 171 |
-
"execution_count": 4,
|
| 172 |
-
"metadata": {},
|
| 173 |
-
"output_type": "execute_result"
|
| 174 |
-
}
|
| 175 |
-
],
|
| 176 |
"source": [
|
| 177 |
"rating_df['rating'].isna().sum()"
|
| 178 |
]
|
| 179 |
},
|
| 180 |
{
|
| 181 |
"cell_type": "code",
|
| 182 |
-
"execution_count":
|
| 183 |
"metadata": {
|
| 184 |
"execution": {
|
| 185 |
"iopub.execute_input": "2023-12-07T11:29:10.997404Z",
|
|
@@ -282,7 +271,7 @@
|
|
| 282 |
},
|
| 283 |
{
|
| 284 |
"cell_type": "code",
|
| 285 |
-
"execution_count":
|
| 286 |
"metadata": {
|
| 287 |
"execution": {
|
| 288 |
"iopub.execute_input": "2023-12-07T11:40:24.564887Z",
|
|
@@ -322,7 +311,7 @@
|
|
| 322 |
},
|
| 323 |
{
|
| 324 |
"cell_type": "code",
|
| 325 |
-
"execution_count":
|
| 326 |
"metadata": {
|
| 327 |
"execution": {
|
| 328 |
"iopub.execute_input": "2023-12-07T12:01:00.036863Z",
|
|
@@ -345,7 +334,7 @@
|
|
| 345 |
},
|
| 346 |
{
|
| 347 |
"cell_type": "code",
|
| 348 |
-
"execution_count":
|
| 349 |
"metadata": {
|
| 350 |
"execution": {
|
| 351 |
"iopub.execute_input": "2023-12-07T12:01:11.473101Z",
|
|
@@ -362,7 +351,7 @@
|
|
| 362 |
"1000"
|
| 363 |
]
|
| 364 |
},
|
| 365 |
-
"execution_count":
|
| 366 |
"metadata": {},
|
| 367 |
"output_type": "execute_result"
|
| 368 |
}
|
|
@@ -373,7 +362,7 @@
|
|
| 373 |
},
|
| 374 |
{
|
| 375 |
"cell_type": "code",
|
| 376 |
-
"execution_count":
|
| 377 |
"metadata": {
|
| 378 |
"execution": {
|
| 379 |
"iopub.execute_input": "2023-12-07T13:52:39.565889Z",
|
|
@@ -428,7 +417,7 @@
|
|
| 428 |
},
|
| 429 |
{
|
| 430 |
"cell_type": "code",
|
| 431 |
-
"execution_count":
|
| 432 |
"metadata": {
|
| 433 |
"execution": {
|
| 434 |
"iopub.execute_input": "2023-12-07T12:39:18.292278Z",
|
|
@@ -476,7 +465,7 @@
|
|
| 476 |
},
|
| 477 |
{
|
| 478 |
"cell_type": "code",
|
| 479 |
-
"execution_count":
|
| 480 |
"metadata": {
|
| 481 |
"execution": {
|
| 482 |
"iopub.execute_input": "2023-12-07T12:39:33.627085Z",
|
|
@@ -496,7 +485,7 @@
|
|
| 496 |
},
|
| 497 |
{
|
| 498 |
"cell_type": "code",
|
| 499 |
-
"execution_count":
|
| 500 |
"metadata": {
|
| 501 |
"execution": {
|
| 502 |
"iopub.execute_input": "2023-12-07T13:06:05.665173Z",
|
|
@@ -658,7 +647,7 @@
|
|
| 658 |
},
|
| 659 |
{
|
| 660 |
"cell_type": "code",
|
| 661 |
-
"execution_count":
|
| 662 |
"metadata": {
|
| 663 |
"execution": {
|
| 664 |
"iopub.execute_input": "2023-12-07T13:06:21.674206Z",
|
|
@@ -717,7 +706,7 @@
|
|
| 717 |
},
|
| 718 |
{
|
| 719 |
"cell_type": "code",
|
| 720 |
-
"execution_count":
|
| 721 |
"metadata": {
|
| 722 |
"execution": {
|
| 723 |
"iopub.execute_input": "2023-12-07T13:06:27.387608Z",
|
|
@@ -727,166 +716,14 @@
|
|
| 727 |
"shell.execute_reply.started": "2023-12-07T13:06:27.387574Z"
|
| 728 |
}
|
| 729 |
},
|
| 730 |
-
"outputs": [
|
| 731 |
-
{
|
| 732 |
-
"name": "stdout",
|
| 733 |
-
"output_type": "stream",
|
| 734 |
-
"text": [
|
| 735 |
-
"[array([ nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 736 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 737 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 738 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 739 |
-
" nan, 959., nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 740 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 741 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 742 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 743 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 744 |
-
" 122., nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 745 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 746 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 747 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 809.,\n",
|
| 748 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 749 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 750 |
-
" nan, 21., 153., nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 751 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 752 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 753 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 754 |
-
" nan, 583., nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 755 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 756 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 757 |
-
" nan, nan, 249., nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 758 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 759 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 760 |
-
" nan, nan, nan, 936., nan, nan, nan, nan, nan, nan, nan,\n",
|
| 761 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 762 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 763 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 764 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 765 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 766 |
-
" nan, 459., nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 767 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 768 |
-
" nan, 310., nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 769 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 770 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 771 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 772 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 824.,\n",
|
| 773 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 944.,\n",
|
| 774 |
-
" nan, nan, nan, 278., nan, nan, nan, nan, nan, nan, nan,\n",
|
| 775 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 776 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 777 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 778 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, 615., nan,\n",
|
| 779 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 780 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, 772., nan, nan,\n",
|
| 781 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 782 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 783 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 784 |
-
" nan, nan, nan, nan, nan, 472., nan, nan, nan, nan, nan,\n",
|
| 785 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 786 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, 891., 210.,\n",
|
| 787 |
-
" nan, 356., nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 788 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 789 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 790 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 791 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 792 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 793 |
-
" nan, 857., nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 794 |
-
" nan, nan, nan, nan, nan, 782., nan, nan, nan, nan, nan,\n",
|
| 795 |
-
" 744., nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 796 |
-
" nan, nan, 592., nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 797 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 798 |
-
" nan, nan, nan, 809., nan, nan, 733., nan, nan, nan, nan,\n",
|
| 799 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 800 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 801 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 802 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 803 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 804 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, 287., nan,\n",
|
| 805 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 806 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 807 |
-
" nan, nan, nan, nan, nan, nan, nan, nan]), array([783., nan, 981., 856., nan, nan, 22., 860., nan, nan, 313.,\n",
|
| 808 |
-
" 53., 141., nan, nan, 656., nan, nan, nan, 505., 189., nan,\n",
|
| 809 |
-
" nan, 585., 253., 764., nan, nan, nan, nan, nan, nan, nan,\n",
|
| 810 |
-
" 215., nan, nan, nan, nan, nan, 396., nan, nan, 272., nan,\n",
|
| 811 |
-
" nan, nan, nan, 638., nan, 369., 769., nan, nan, 141., 272.,\n",
|
| 812 |
-
" 881., nan, nan, nan, nan, 263., nan, nan, nan, nan, 233.,\n",
|
| 813 |
-
" nan, nan, nan, nan, nan, 714., nan, 654., nan, nan, nan,\n",
|
| 814 |
-
" nan, nan, 317., 524., nan, 682., 764., nan, nan, nan, nan,\n",
|
| 815 |
-
" nan, nan, nan, nan, nan, 346., 495., 916., 9., nan, 224.,\n",
|
| 816 |
-
" nan, 860., 599., 966., 216., nan, nan, 474., nan, 840., 474.,\n",
|
| 817 |
-
" nan, nan, 867., nan, 13., 302., nan, nan, 532., nan, 488.,\n",
|
| 818 |
-
" nan, 398., nan, 172., nan, 415., 911., 662., 812., nan, 832.,\n",
|
| 819 |
-
" nan, nan, nan, nan, nan, nan, nan, nan, 697., nan, nan,\n",
|
| 820 |
-
" 395., nan, nan, nan, nan, nan, nan, 806., nan, 584., nan,\n",
|
| 821 |
-
" nan, 105., nan, nan, 244., nan, 908., nan, 584., 49., nan,\n",
|
| 822 |
-
" 620., nan, nan, nan, nan, 56., nan, nan, nan, 669., nan,\n",
|
| 823 |
-
" nan, nan, 802., nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 824 |
-
" nan, nan, nan, nan, 637., nan, nan, nan, 631., nan, nan,\n",
|
| 825 |
-
" nan, nan, 433., nan, nan, 649., 954., 393., nan, 858., 442.,\n",
|
| 826 |
-
" nan, 597., 411., 556., 317., nan, nan, nan, nan, 152., nan,\n",
|
| 827 |
-
" 898., nan, nan, nan, 585., 843., nan, nan, nan, nan, nan,\n",
|
| 828 |
-
" nan, nan, nan, nan, 568., nan, nan, nan, nan, nan, nan,\n",
|
| 829 |
-
" 176., nan, 763., 402., 146., nan, nan, 968., nan, 61., 840.,\n",
|
| 830 |
-
" nan, nan, nan, nan, 171., nan, 177., 263., 356., nan, nan,\n",
|
| 831 |
-
" nan, 393., nan, 162., nan, nan, nan, 324., nan, nan, nan,\n",
|
| 832 |
-
" nan, nan, nan, nan, nan, nan, nan, 346., nan, 222., 858.,\n",
|
| 833 |
-
" nan, 303., nan, nan, 803., nan, 143., nan, 878., nan, 982.,\n",
|
| 834 |
-
" 287., 15., 315., nan, 610., nan, 637., 87., nan, 139., 597.,\n",
|
| 835 |
-
" 124., nan, 289., 53., nan, nan, 708., 512., nan, 202., nan,\n",
|
| 836 |
-
" nan, 333., 24., 83., nan, nan, nan, nan, 102., nan, nan,\n",
|
| 837 |
-
" nan, nan, 189., 529., 929., 338., nan, nan, 334., nan, nan,\n",
|
| 838 |
-
" nan, nan, nan, nan, 383., 361., nan, nan, 678., 2., 454.,\n",
|
| 839 |
-
" nan, 932., 629., nan, nan, 557., nan, nan, 124., 647., nan,\n",
|
| 840 |
-
" 55., 981., 56., 133., nan, nan, 669., nan, 253., nan, nan,\n",
|
| 841 |
-
" nan, nan, 322., 831., nan, 126., nan, 807., nan, nan, 719.,\n",
|
| 842 |
-
" nan, 274., nan, 18., 753., nan, nan, nan, nan, 166., 847.,\n",
|
| 843 |
-
" nan, 416., nan, 315., 844., 675., nan, nan, nan, 263., 409.,\n",
|
| 844 |
-
" 310., nan, 941., nan, 564., nan, 223., 978., nan, 758., nan,\n",
|
| 845 |
-
" 676., nan, 882., nan, nan, 99., nan, nan, nan, nan, nan,\n",
|
| 846 |
-
" nan, 618., nan, nan, nan, 604., nan, 919., nan, nan, nan,\n",
|
| 847 |
-
" 982., 304., 6., 346., nan, nan, nan, 183., nan, nan, 808.,\n",
|
| 848 |
-
" 249., nan, nan, nan, 115., nan, nan, nan, nan, nan, 605.,\n",
|
| 849 |
-
" nan, 581., 317., nan, nan, nan, nan, nan, nan, nan, nan,\n",
|
| 850 |
-
" 930., 72., nan, 852., 607., nan, nan, nan, 387., 725., nan,\n",
|
| 851 |
-
" 731., nan, 605., 375., nan, 711., nan, 352., nan, 604., nan,\n",
|
| 852 |
-
" 269., 112., 860., 397., 447., nan, nan, 267., nan, 445., nan,\n",
|
| 853 |
-
" nan, 728., nan, nan, nan, nan, 351., 118., 489., 229., 952.,\n",
|
| 854 |
-
" 202., nan, nan, 34., 632., 963., 436., 96., 506., nan, nan,\n",
|
| 855 |
-
" nan, nan, nan, nan, 53., nan, nan, 220., nan, 861., nan,\n",
|
| 856 |
-
" 109., 398., 356., nan, 209., 462., 709., 99., nan, 220., nan,\n",
|
| 857 |
-
" 900., 396., 535., 196., nan, nan, nan, 552., nan, nan, nan,\n",
|
| 858 |
-
" nan, nan, 615., nan, 594., 857., 18., 989., nan, 875., nan,\n",
|
| 859 |
-
" nan, 179., 310., nan, 85., nan, nan, 961., nan, 55., nan,\n",
|
| 860 |
-
" nan, 266., 566., nan, nan, nan, 648., nan, 182., nan, nan,\n",
|
| 861 |
-
" 302., nan, nan, 611., nan, nan, nan, 314., 635., 80., nan,\n",
|
| 862 |
-
" 319., 126., 99., nan, 622., nan, 641., 312., nan, nan, 742.,\n",
|
| 863 |
-
" 171., nan, nan, nan, 742., nan, nan, 579., nan, nan, nan,\n",
|
| 864 |
-
" nan, 207., 802., 342., nan, nan, 895., nan, nan, nan, 19.,\n",
|
| 865 |
-
" nan, nan, 644., 557., 84., nan, nan, nan, nan, 234., nan,\n",
|
| 866 |
-
" nan, 790., nan, 561., 472., 219., nan, 464., 898., nan, nan,\n",
|
| 867 |
-
" 553., 910., nan, 952., nan, 118., nan, 178., 736., nan, nan,\n",
|
| 868 |
-
" nan, nan, 413., nan, nan, nan, nan, 377., nan, nan, nan,\n",
|
| 869 |
-
" 864., nan, 724., nan, 18., nan, nan, nan, nan, 66., nan,\n",
|
| 870 |
-
" 198., nan, 476., 498., 346., nan, 146., nan, 80., nan, 424.,\n",
|
| 871 |
-
" nan, nan, nan, 592., nan, 162., nan, nan, 555., 189., nan,\n",
|
| 872 |
-
" nan, nan, nan, nan, nan, nan, 218., nan, 716., 752., nan,\n",
|
| 873 |
-
" nan, 166., nan, nan, 352., nan, 968., nan, 886., nan, nan,\n",
|
| 874 |
-
" 257., 641., 996., 18., nan, 938., nan, nan, 379., 291., nan,\n",
|
| 875 |
-
" nan, nan, nan, nan, nan, nan, 982., nan, 56., 765., 304.,\n",
|
| 876 |
-
" nan, 389., nan, 505., nan, 361., 499., nan, 302., 509., nan,\n",
|
| 877 |
-
" nan, nan, nan, 904., nan, nan, nan, nan, 599., nan, nan,\n",
|
| 878 |
-
" nan, nan, 587., nan, nan, nan, 564., nan, nan, nan, nan,\n",
|
| 879 |
-
" 902., 604., 371., nan, nan, nan, nan, 16.])]\n"
|
| 880 |
-
]
|
| 881 |
-
}
|
| 882 |
-
],
|
| 883 |
"source": [
|
| 884 |
"print(X_train_array)"
|
| 885 |
]
|
| 886 |
},
|
| 887 |
{
|
| 888 |
"cell_type": "code",
|
| 889 |
-
"execution_count":
|
| 890 |
"metadata": {
|
| 891 |
"execution": {
|
| 892 |
"iopub.execute_input": "2023-12-07T13:06:40.924775Z",
|
|
@@ -906,15 +743,15 @@
|
|
| 906 |
},
|
| 907 |
{
|
| 908 |
"ename": "InvalidArgumentError",
|
| 909 |
-
"evalue": "Graph execution error:\n\nDetected at node functional_1/user_embedding_1/GatherV2 defined at (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n\n File \"/usr/local/lib/python3.10/dist-packages/
|
| 910 |
"output_type": "error",
|
| 911 |
"traceback": [
|
| 912 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 913 |
"\u001b[0;31mInvalidArgumentError\u001b[0m Traceback (most recent call last)",
|
| 914 |
-
"\u001b[0;32m<ipython-input-
|
| 915 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 916 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/tensorflow/python/eager/execute.py\u001b[0m in \u001b[0;36mquick_execute\u001b[0;34m(op_name, num_outputs, inputs, attrs, ctx, name)\u001b[0m\n\u001b[1;32m 51\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 52\u001b[0m \u001b[0mctx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mensure_initialized\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 53\u001b[0;31m tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,\n\u001b[0m\u001b[1;32m 54\u001b[0m inputs, attrs, num_outputs)\n\u001b[1;32m 55\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mcore\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_NotOkStatusException\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 917 |
-
"\u001b[0;31mInvalidArgumentError\u001b[0m: Graph execution error:\n\nDetected at node functional_1/user_embedding_1/GatherV2 defined at (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n\n File \"/usr/local/lib/python3.10/dist-packages/
|
| 918 |
]
|
| 919 |
}
|
| 920 |
],
|
|
|
|
| 151 |
},
|
| 152 |
{
|
| 153 |
"cell_type": "code",
|
| 154 |
+
"execution_count": null,
|
| 155 |
"metadata": {
|
| 156 |
"execution": {
|
| 157 |
"iopub.execute_input": "2023-12-07T13:26:39.148833Z",
|
|
|
|
| 161 |
"shell.execute_reply.started": "2023-12-07T13:26:39.148792Z"
|
| 162 |
}
|
| 163 |
},
|
| 164 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
"source": [
|
| 166 |
"rating_df['rating'].isna().sum()"
|
| 167 |
]
|
| 168 |
},
|
| 169 |
{
|
| 170 |
"cell_type": "code",
|
| 171 |
+
"execution_count": 4,
|
| 172 |
"metadata": {
|
| 173 |
"execution": {
|
| 174 |
"iopub.execute_input": "2023-12-07T11:29:10.997404Z",
|
|
|
|
| 271 |
},
|
| 272 |
{
|
| 273 |
"cell_type": "code",
|
| 274 |
+
"execution_count": 5,
|
| 275 |
"metadata": {
|
| 276 |
"execution": {
|
| 277 |
"iopub.execute_input": "2023-12-07T11:40:24.564887Z",
|
|
|
|
| 311 |
},
|
| 312 |
{
|
| 313 |
"cell_type": "code",
|
| 314 |
+
"execution_count": 6,
|
| 315 |
"metadata": {
|
| 316 |
"execution": {
|
| 317 |
"iopub.execute_input": "2023-12-07T12:01:00.036863Z",
|
|
|
|
| 334 |
},
|
| 335 |
{
|
| 336 |
"cell_type": "code",
|
| 337 |
+
"execution_count": 7,
|
| 338 |
"metadata": {
|
| 339 |
"execution": {
|
| 340 |
"iopub.execute_input": "2023-12-07T12:01:11.473101Z",
|
|
|
|
| 351 |
"1000"
|
| 352 |
]
|
| 353 |
},
|
| 354 |
+
"execution_count": 7,
|
| 355 |
"metadata": {},
|
| 356 |
"output_type": "execute_result"
|
| 357 |
}
|
|
|
|
| 362 |
},
|
| 363 |
{
|
| 364 |
"cell_type": "code",
|
| 365 |
+
"execution_count": 8,
|
| 366 |
"metadata": {
|
| 367 |
"execution": {
|
| 368 |
"iopub.execute_input": "2023-12-07T13:52:39.565889Z",
|
|
|
|
| 417 |
},
|
| 418 |
{
|
| 419 |
"cell_type": "code",
|
| 420 |
+
"execution_count": 9,
|
| 421 |
"metadata": {
|
| 422 |
"execution": {
|
| 423 |
"iopub.execute_input": "2023-12-07T12:39:18.292278Z",
|
|
|
|
| 465 |
},
|
| 466 |
{
|
| 467 |
"cell_type": "code",
|
| 468 |
+
"execution_count": 10,
|
| 469 |
"metadata": {
|
| 470 |
"execution": {
|
| 471 |
"iopub.execute_input": "2023-12-07T12:39:33.627085Z",
|
|
|
|
| 485 |
},
|
| 486 |
{
|
| 487 |
"cell_type": "code",
|
| 488 |
+
"execution_count": 11,
|
| 489 |
"metadata": {
|
| 490 |
"execution": {
|
| 491 |
"iopub.execute_input": "2023-12-07T13:06:05.665173Z",
|
|
|
|
| 647 |
},
|
| 648 |
{
|
| 649 |
"cell_type": "code",
|
| 650 |
+
"execution_count": 12,
|
| 651 |
"metadata": {
|
| 652 |
"execution": {
|
| 653 |
"iopub.execute_input": "2023-12-07T13:06:21.674206Z",
|
|
|
|
| 706 |
},
|
| 707 |
{
|
| 708 |
"cell_type": "code",
|
| 709 |
+
"execution_count": null,
|
| 710 |
"metadata": {
|
| 711 |
"execution": {
|
| 712 |
"iopub.execute_input": "2023-12-07T13:06:27.387608Z",
|
|
|
|
| 716 |
"shell.execute_reply.started": "2023-12-07T13:06:27.387574Z"
|
| 717 |
}
|
| 718 |
},
|
| 719 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 720 |
"source": [
|
| 721 |
"print(X_train_array)"
|
| 722 |
]
|
| 723 |
},
|
| 724 |
{
|
| 725 |
"cell_type": "code",
|
| 726 |
+
"execution_count": 13,
|
| 727 |
"metadata": {
|
| 728 |
"execution": {
|
| 729 |
"iopub.execute_input": "2023-12-07T13:06:40.924775Z",
|
|
|
|
| 743 |
},
|
| 744 |
{
|
| 745 |
"ename": "InvalidArgumentError",
|
| 746 |
+
"evalue": "Graph execution error:\n\nDetected at node functional_1/user_embedding_1/GatherV2 defined at (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel_launcher.py\", line 16, in <module>\n\n File \"/usr/local/lib/python3.10/dist-packages/traitlets/config/application.py\", line 992, in launch_instance\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelapp.py\", line 619, in start\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/platform/asyncio.py\", line 195, in start\n\n File \"/usr/lib/python3.10/asyncio/base_events.py\", line 603, in run_forever\n\n File \"/usr/lib/python3.10/asyncio/base_events.py\", line 1909, in _run_once\n\n File \"/usr/lib/python3.10/asyncio/events.py\", line 80, in _run\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py\", line 685, in <lambda>\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py\", line 738, in _run_callback\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 825, in inner\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 786, in run\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py\", line 361, in process_one\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 234, in wrapper\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py\", line 261, in dispatch_shell\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 234, in wrapper\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py\", line 539, in execute_request\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 234, in wrapper\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/ipkernel.py\", line 302, in do_execute\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/zmqshell.py\", line 539, in run_cell\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 2975, in run_cell\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3030, in _run_cell\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/async_helpers.py\", line 78, in _pseudo_sync_runner\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3257, in run_cell_async\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3473, in run_ast_nodes\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3553, in run_code\n\n File \"<ipython-input-13-05d1ae813ed0>\", line 2, in <cell line: 2>\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 318, in fit\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 121, in one_step_on_iterator\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 108, in one_step_on_data\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 51, in train_step\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/layers/layer.py\", line 882, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/operation.py\", line 46, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 156, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py\", line 175, in call\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/function.py\", line 171, in _run_through_graph\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py\", line 556, in call\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/layers/layer.py\", line 882, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/operation.py\", line 46, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 156, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/layers/core/embedding.py\", line 140, in call\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/numpy.py\", line 4875, in take\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/numpy.py\", line 1951, in take\n\nindices[0,0] = -2147482648 is not in [0, 1000)\n\t [[{{node functional_1/user_embedding_1/GatherV2}}]] [Op:__inference_one_step_on_iterator_1786]",
|
| 747 |
"output_type": "error",
|
| 748 |
"traceback": [
|
| 749 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 750 |
"\u001b[0;31mInvalidArgumentError\u001b[0m Traceback (most recent call last)",
|
| 751 |
+
"\u001b[0;32m<ipython-input-13-05d1ae813ed0>\u001b[0m in \u001b[0;36m<cell line: 2>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m# Model training\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m history = model.fit(\n\u001b[0m\u001b[1;32m 3\u001b[0m \u001b[0mx\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mX_train_array\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0my_train\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mbatch_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbatch_size\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 752 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 753 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/tensorflow/python/eager/execute.py\u001b[0m in \u001b[0;36mquick_execute\u001b[0;34m(op_name, num_outputs, inputs, attrs, ctx, name)\u001b[0m\n\u001b[1;32m 51\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 52\u001b[0m \u001b[0mctx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mensure_initialized\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 53\u001b[0;31m tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,\n\u001b[0m\u001b[1;32m 54\u001b[0m inputs, attrs, num_outputs)\n\u001b[1;32m 55\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mcore\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_NotOkStatusException\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 754 |
+
"\u001b[0;31mInvalidArgumentError\u001b[0m: Graph execution error:\n\nDetected at node functional_1/user_embedding_1/GatherV2 defined at (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel_launcher.py\", line 16, in <module>\n\n File \"/usr/local/lib/python3.10/dist-packages/traitlets/config/application.py\", line 992, in launch_instance\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelapp.py\", line 619, in start\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/platform/asyncio.py\", line 195, in start\n\n File \"/usr/lib/python3.10/asyncio/base_events.py\", line 603, in run_forever\n\n File \"/usr/lib/python3.10/asyncio/base_events.py\", line 1909, in _run_once\n\n File \"/usr/lib/python3.10/asyncio/events.py\", line 80, in _run\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py\", line 685, in <lambda>\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py\", line 738, in _run_callback\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 825, in inner\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 786, in run\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py\", line 361, in process_one\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 234, in wrapper\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py\", line 261, in dispatch_shell\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 234, in wrapper\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py\", line 539, in execute_request\n\n File \"/usr/local/lib/python3.10/dist-packages/tornado/gen.py\", line 234, in wrapper\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/ipkernel.py\", line 302, in do_execute\n\n File \"/usr/local/lib/python3.10/dist-packages/ipykernel/zmqshell.py\", line 539, in run_cell\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 2975, in run_cell\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3030, in _run_cell\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/async_helpers.py\", line 78, in _pseudo_sync_runner\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3257, in run_cell_async\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3473, in run_ast_nodes\n\n File \"/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\", line 3553, in run_code\n\n File \"<ipython-input-13-05d1ae813ed0>\", line 2, in <cell line: 2>\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 318, in fit\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 121, in one_step_on_iterator\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 108, in one_step_on_data\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py\", line 51, in train_step\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/layers/layer.py\", line 882, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/operation.py\", line 46, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 156, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py\", line 175, in call\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/function.py\", line 171, in _run_through_graph\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py\", line 556, in call\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/layers/layer.py\", line 882, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 117, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/operation.py\", line 46, in __call__\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\", line 156, in error_handler\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/layers/core/embedding.py\", line 140, in call\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/ops/numpy.py\", line 4875, in take\n\n File \"/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/numpy.py\", line 1951, in take\n\nindices[0,0] = -2147482648 is not in [0, 1000)\n\t [[{{node functional_1/user_embedding_1/GatherV2}}]] [Op:__inference_one_step_on_iterator_1786]"
|
| 755 |
]
|
| 756 |
}
|
| 757 |
],
|
benchmark/tensorflow_5/weights.weights.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 80111960
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:621d9734c16ca5364ea45a0b328157411731a8f49ce1a6e56d90a5297f775b95
|
| 3 |
size 80111960
|
benchmark/tensorflow_6/tensorflow_6_fixed.ipynb
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
},
|
| 24 |
{
|
| 25 |
"cell_type": "code",
|
| 26 |
-
"execution_count":
|
| 27 |
"metadata": {},
|
| 28 |
"outputs": [],
|
| 29 |
"source": [
|
|
@@ -64,7 +64,7 @@
|
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"cell_type": "code",
|
| 67 |
-
"execution_count":
|
| 68 |
"metadata": {
|
| 69 |
"execution": {
|
| 70 |
"iopub.execute_input": "2023-05-07T02:43:02.453784Z",
|
|
@@ -96,7 +96,7 @@
|
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"cell_type": "code",
|
| 99 |
-
"execution_count":
|
| 100 |
"metadata": {
|
| 101 |
"execution": {
|
| 102 |
"iopub.execute_input": "2023-05-07T02:43:02.639276Z",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"cell_type": "code",
|
| 117 |
-
"execution_count":
|
| 118 |
"metadata": {
|
| 119 |
"execution": {
|
| 120 |
"iopub.execute_input": "2023-05-07T02:43:07.360141Z",
|
|
@@ -142,7 +142,7 @@
|
|
| 142 |
"Name: count, dtype: int64"
|
| 143 |
]
|
| 144 |
},
|
| 145 |
-
"execution_count":
|
| 146 |
"metadata": {},
|
| 147 |
"output_type": "execute_result"
|
| 148 |
},
|
|
@@ -190,7 +190,7 @@
|
|
| 190 |
},
|
| 191 |
{
|
| 192 |
"cell_type": "code",
|
| 193 |
-
"execution_count":
|
| 194 |
"metadata": {
|
| 195 |
"execution": {
|
| 196 |
"iopub.execute_input": "2023-05-07T02:43:07.685510Z",
|
|
@@ -226,7 +226,7 @@
|
|
| 226 |
},
|
| 227 |
{
|
| 228 |
"cell_type": "code",
|
| 229 |
-
"execution_count":
|
| 230 |
"metadata": {
|
| 231 |
"execution": {
|
| 232 |
"iopub.execute_input": "2023-05-07T02:43:07.868530Z",
|
|
@@ -245,7 +245,7 @@
|
|
| 245 |
},
|
| 246 |
{
|
| 247 |
"cell_type": "code",
|
| 248 |
-
"execution_count":
|
| 249 |
"metadata": {
|
| 250 |
"execution": {
|
| 251 |
"iopub.execute_input": "2023-05-07T02:43:07.875409Z",
|
|
@@ -280,7 +280,7 @@
|
|
| 280 |
},
|
| 281 |
{
|
| 282 |
"cell_type": "code",
|
| 283 |
-
"execution_count":
|
| 284 |
"metadata": {
|
| 285 |
"execution": {
|
| 286 |
"iopub.execute_input": "2023-05-07T02:43:07.894885Z",
|
|
@@ -329,7 +329,7 @@
|
|
| 329 |
},
|
| 330 |
{
|
| 331 |
"cell_type": "code",
|
| 332 |
-
"execution_count":
|
| 333 |
"metadata": {
|
| 334 |
"execution": {
|
| 335 |
"iopub.execute_input": "2023-05-07T03:19:29.397074Z",
|
|
@@ -340,12 +340,20 @@
|
|
| 340 |
}
|
| 341 |
},
|
| 342 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
{
|
| 344 |
"name": "stdout",
|
| 345 |
"output_type": "stream",
|
| 346 |
"text": [
|
| 347 |
"(28, 28, 1)\n",
|
| 348 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
| 349 |
]
|
| 350 |
},
|
| 351 |
{
|
|
@@ -354,7 +362,7 @@
|
|
| 354 |
"(3, 28, 28, 32)"
|
| 355 |
]
|
| 356 |
},
|
| 357 |
-
"execution_count":
|
| 358 |
"metadata": {},
|
| 359 |
"output_type": "execute_result"
|
| 360 |
}
|
|
@@ -455,7 +463,7 @@
|
|
| 455 |
},
|
| 456 |
{
|
| 457 |
"cell_type": "code",
|
| 458 |
-
"execution_count":
|
| 459 |
"metadata": {
|
| 460 |
"execution": {
|
| 461 |
"iopub.execute_input": "2023-05-07T03:37:06.070632Z",
|
|
@@ -526,7 +534,7 @@
|
|
| 526 |
},
|
| 527 |
{
|
| 528 |
"cell_type": "code",
|
| 529 |
-
"execution_count":
|
| 530 |
"metadata": {
|
| 531 |
"execution": {
|
| 532 |
"iopub.execute_input": "2023-05-07T02:43:10.434652Z",
|
|
@@ -537,13 +545,21 @@
|
|
| 537 |
}
|
| 538 |
},
|
| 539 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 540 |
{
|
| 541 |
"data": {
|
| 542 |
"text/plain": [
|
| 543 |
"'\\n“decay=0”是RMSprop优化算法的一个参数,它控制了学习率的衰减。\\n具体来说,在RMSprop算法中,每个权重参数都有自己的学习率\\n,而decay参数会使这个学习率随着时间的推移而逐渐变小。\\n但是,由于decay=0,因此该算法不会在训练过程中降低学习率。\\n\\n“epsilon=1e-08”是RMSprop优化算法的一个参数,它是用来防止除零错误的一个小量,通常取极小的值(例如1e-8)。\\n在RMSprop算法中,计算梯度平方平均值时需要对平方梯度加上一个极小的值,以避免出现除以零的错误。\\n\\n“rho=0.9”是一种优化算法的参数,用于控制梯度的平滑度。具体来说,该参数决定了在计算平方梯度的指数移动平均值时,\\n历史数据的重要性。较高的rho值可以使平均值对历史数据的依赖性更强,从而使整个优化过程更加稳定。\\n'"
|
| 544 |
]
|
| 545 |
},
|
| 546 |
-
"execution_count":
|
| 547 |
"metadata": {},
|
| 548 |
"output_type": "execute_result"
|
| 549 |
}
|
|
@@ -567,7 +583,7 @@
|
|
| 567 |
},
|
| 568 |
{
|
| 569 |
"cell_type": "code",
|
| 570 |
-
"execution_count":
|
| 571 |
"metadata": {
|
| 572 |
"execution": {
|
| 573 |
"iopub.execute_input": "2023-05-07T03:37:31.969911Z",
|
|
@@ -585,7 +601,7 @@
|
|
| 585 |
},
|
| 586 |
{
|
| 587 |
"cell_type": "code",
|
| 588 |
-
"execution_count":
|
| 589 |
"metadata": {
|
| 590 |
"execution": {
|
| 591 |
"iopub.execute_input": "2023-05-07T03:36:01.984363Z",
|
|
@@ -602,7 +618,7 @@
|
|
| 602 |
"\"\\n\\n在您提供的代码中,learningratereduction是ReduceLROnPlateau回调函数的一个实例,用于在模型训练过程中动态地减小学习率。\\n具体来说,它监视了验证集的准确性(即'monitor'='valacc'),并且如果在3个时期内没有改进,\\n则减小学习率(即'patience'=3)。该调用还指定了减小因子(即'factor'=0.5)和最小学习率(即'minlr'=0.00001),\\n以便在执行减少操作时进行限制,从而保持学习率的稳定性和有效性。如果您想要更好地了解ReduceLROnPlateau的工作原理和参数设置,\\n\\nverbose是ReduceLROnPlateau回调函数的一个可选参数,用于控制输出详细程度的标志。\\n如果verbose=1,则在执行时期减少操作时将输出一条消息,以指示学习率的更新和当前的状态。\\n如果verbose=0,则不会输出任何消息。通常情况下,verbose的默认值为0,因为它可以大大减少输出的噪声和干扰。\\n如果您需要更详细的输出和信息,可以将verbose的值设置为1或更高\\n可以查看Keras文档:https://keras.io/callbacks/#reducelronplateau。\\n\""
|
| 603 |
]
|
| 604 |
},
|
| 605 |
-
"execution_count":
|
| 606 |
"metadata": {},
|
| 607 |
"output_type": "execute_result"
|
| 608 |
}
|
|
@@ -633,7 +649,7 @@
|
|
| 633 |
},
|
| 634 |
{
|
| 635 |
"cell_type": "code",
|
| 636 |
-
"execution_count":
|
| 637 |
"metadata": {
|
| 638 |
"execution": {
|
| 639 |
"iopub.execute_input": "2023-05-07T03:53:09.648082Z",
|
|
@@ -656,7 +672,7 @@
|
|
| 656 |
},
|
| 657 |
{
|
| 658 |
"cell_type": "code",
|
| 659 |
-
"execution_count":
|
| 660 |
"metadata": {
|
| 661 |
"execution": {
|
| 662 |
"iopub.execute_input": "2023-05-07T03:36:05.950296Z",
|
|
@@ -723,7 +739,7 @@
|
|
| 723 |
},
|
| 724 |
{
|
| 725 |
"cell_type": "code",
|
| 726 |
-
"execution_count":
|
| 727 |
"metadata": {
|
| 728 |
"execution": {
|
| 729 |
"iopub.execute_input": "2023-05-07T04:01:52.740017Z",
|
|
@@ -762,7 +778,7 @@
|
|
| 762 |
},
|
| 763 |
{
|
| 764 |
"cell_type": "code",
|
| 765 |
-
"execution_count":
|
| 766 |
"metadata": {
|
| 767 |
"execution": {
|
| 768 |
"iopub.execute_input": "2023-05-07T04:01:55.664789Z",
|
|
@@ -785,7 +801,7 @@
|
|
| 785 |
"name": "stdout",
|
| 786 |
"output_type": "stream",
|
| 787 |
"text": [
|
| 788 |
-
"439/439 -
|
| 789 |
]
|
| 790 |
},
|
| 791 |
{
|
|
@@ -836,7 +852,7 @@
|
|
| 836 |
},
|
| 837 |
{
|
| 838 |
"cell_type": "code",
|
| 839 |
-
"execution_count":
|
| 840 |
"metadata": {
|
| 841 |
"execution": {
|
| 842 |
"iopub.execute_input": "2023-05-07T04:10:02.887763Z",
|
|
@@ -849,7 +865,7 @@
|
|
| 849 |
"outputs": [
|
| 850 |
{
|
| 851 |
"data": {
|
| 852 |
-
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjMAAAGhCAYAAACUFDUXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABRdElEQVR4nO3de1yM6eM//td0ImUmKYdYlNVsjoWtTeQQS+SwNlt2Ee2mN+Et2nVYK9Gus0W8rePKYTfeDmudsg5LVvguwi6WfXdwCNVG0yRpmrl/f/g1H2NKB4266/V8PDwe5rqv676v6zI1L/d93fdIBEEQQERERCRSRpXdASIiIqLXwTBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESiZlLZHTC0zp07Iz8/H7a2tpXdFSIiIiqljIwMmJmZ4cKFCyXWrfZh5tmzZ1Cr1ZXdDSIiIiqDgoIClPa5vtU+zDRo0AAAcPz48UruCREREZWWl5dXqetyzQwRERGJGsMMERERiRrDDBEREYkawwwRERGJGsMMERERiVq1v5uJiIj0FRQUID8/v7K7QTWUmZkZTEwqLoIwzBAR1SCCIODOnTv4559/KrsrVMPZ2NigWbNmkEgkr70vhhkiohqkMMg0adIElpaWMDLiagN6szQaDXJycpCamgqNRgN7e/vX3ifDDBFRDVFQUKANMo0aNars7lANZmlpCQBITU3FpUuX0L17d9jY2JR7f4zkREQ1ROEamcIPEqLKVPg+vH//Pg4cOPBalz4ZZoiIahheWqKqoPB92KhRI6SmpiIhIaH8+6qoThERERGVlZGREczNzZGZmVn+fVRgf4iIiIjKzMjICAUFBeVvX4F9ISIiMji5XF7inz179pR7/yNHjkRwcHCZ2/Xq1Qtz584t93HLas+ePZDL5Xj06NEbO2ZVxbuZiIhIVHbs2KHz2s/PDyNHjoSPj4+2rFmzZuXef3h4eLnWFa1atQpSqbTcx6XyM1iYSUxMRGRkJBISEmBhYYHBgwd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gXx8fH48ssv9eo9fPgQI0aMgJ2dHXJychATEwN/f38cOXIEVlZWGD9+PB49eoSkpCQsWbIEAGBtbV3kMR88eIARI0bgrbfewuLFi/Hs2TN8++23GDFiBH7++WdYWlpq627fvh2dOnXCggULkJKSgkWLFqF+/foICwsr9RhzcnIwcuRIGBkZISIiArVq1cKaNWu0x2vcuDHu3LmDf//73xgwYACmTp0KjUaDv/76CwqFAgBK3G5IDDNERDWYIAj4Y/qXUP51s+TKBlDX6R20mx9ZpkBTt25ddO/eHQcOHNAJMwcOHICHhwesrKwAAAMGDNBuEwQB7777LtLS0rBjx45Shxm1Wo21a9di8ODBmDZtGoDn36WUmZmJffv26dSdOXOmTjsPDw+4u7vjyJEj8PPzQ7NmzWBtbY379++XeClr8+bNKCgowKZNm7TjcXJywoABA7B3716MHDlSW9fW1hZLly4FAHh6euL69es4cuRImcLMnj17cP/+fRw8eBAtW7YEALz77rvo2bMnoqOjMX36dFy/fh0qlQpfffWVNky9+J1SJW03JF5mIiKq6cp4ZqQqGDBgAC5fvqy97JKeno7ff/9dJ8AoFApERkaiZ8+eaNOmDdq0aYMdO3boXPopycOHD5Geno4+ffrolPft21ev7uXLlzFmzBi4ubmhdevW6NChA3Jzc5GSklLm8V24cAFubm7aIAMALVu2xDvvvIOLFy/q1O3SpYvO65YtW+Lhw4dlPl6rVq20QQYArKys0KVLF+3x5HI5jI2NERYWhhMnTkCpVOrso6TthsQzM0RENZhEIkG7+ZGiuswEAD179oS5uTkOHjyIoKAgHD58GLVq1ULv3r21daZPn46EhASEhITg7bffhqWlJX788UccPny41MfJyMgAoH85yMbGRuf1/fv3ERgYiLZt2yIiIgINGjSAqakpgoOD8awcc5udnQ0nJye98vr16+tdtpFKpTqvTU1NkZ+fX+bjvTymwuP9/fffAAB7e3t89913WLt2LSZMmAAjIyN07doVs2fPhp2dXYnbDYlhhoiohpNIJDCuXbuyu1EmtWvXRu/evXHo0CEEBQXh0KFD6NmzJ+rUqQMAePbsGU6ePInp06frXJ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Llvjxxx+xc+dO5OXloWHDhvD19cWkSZP4CGoiIqIqKj8/H3/99ReOHDmChw8f4pNPPnmjxy/TmRkx4pkZInpTeGaGaqp79+7By8sL1tbWmDRpEoYPH15im0o7M0NERET0sqZNm+Lmzcp5yjVQjm/NJiIiIqpKGGaIiCrYy980TUT6KvLnhGGGiKiCFN5KXNKDxYjo/35OXn56cXlwzQwRUQUxMTGBjY2N9umplpaWb+R7aYjERKPRICcnB6mpqcjKyqqQMzQMM0REFahZs2bQaDR6j4MnIl1ZWVnaJxWr1WqYm5uXe18MM0REFUgikcDe3h4JCQlITU1Fw4YNYWxsXNndIqpSVCqV9oxMXl4e8vPzS/xW7ldhmCEiMgAvLy8cOHAAf//9N0xMTHi5iagIGo0GGo0G7dq10/tqirJgmCEiMgCZTAYfHx/cuHEDCoUCBQUFld0loirHzMwM9erVQ7t27XS+WLSsGGaIiAxEJpPhvffeq+xuEFV7PO9JREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESiVuYwk5iYiDFjxsDZ2RkeHh5YtGgR8vPzS2ynVCrx1Vdfwc3NDR06dMDIkSNx48aNIuvNnDkTrq6ucHFxwaRJk5Cenl7WbhIREVENUaYwo1AoEBAQAJVKhaioKISGhmLnzp1YsGBBiW2nTJmCY8eO4fPPP8eKFStgbGyMgIAAPHjwQKfe5MmTcebMGcyZMwdLlixBcnIygoKCUFBQULaRERERUY1gUpbKMTExePLkCVatWgUrKysAgFqtRkREBIKDg9GwYcMi212+fBlxcX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HWyc/P1/w8fERfHx8hBMnTggHDx4UunfvLowdO/aNjK+qMPQ8r1mzRnB0dBQWLlyo975VKpVvZIxVhaHn+mV3796t8c+Z4WWmaqRz586IiorC8uXLsWvXLtjZ2SEyMlLnmQUAoFarodFodMqWL1+O+fPnY/bs2SgoKEDXrl0xa9YsmJjwLfIyQ89z4SniadOm6R375s2bBhhR5ZLJZIiOjsa8efMQEhICCwsL+Pr66i0c1Wg0UKvVOmVBQUEQBAGbNm3Co0eP4OTkhI0bN+os1jY1NcWGDRsQGRmJKVOmwMTEBH369MHMmTPfyPiqCkPPc+H7duPGjdi4caNO+y1bttSoZ6EYeq5Jn0QQBKGyO0FERERUXlwzQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESixjBDREREosYwQ0RERKLGMENERESi9v8BH467CDYw6PoAAAAASUVORK5CYII=\n",
|
| 853 |
"text/plain": [
|
| 854 |
"<Figure size 640x480 with 2 Axes>"
|
| 855 |
]
|
|
|
|
| 23 |
},
|
| 24 |
{
|
| 25 |
"cell_type": "code",
|
| 26 |
+
"execution_count": 1,
|
| 27 |
"metadata": {},
|
| 28 |
"outputs": [],
|
| 29 |
"source": [
|
|
|
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"cell_type": "code",
|
| 67 |
+
"execution_count": 2,
|
| 68 |
"metadata": {
|
| 69 |
"execution": {
|
| 70 |
"iopub.execute_input": "2023-05-07T02:43:02.453784Z",
|
|
|
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"cell_type": "code",
|
| 99 |
+
"execution_count": 3,
|
| 100 |
"metadata": {
|
| 101 |
"execution": {
|
| 102 |
"iopub.execute_input": "2023-05-07T02:43:02.639276Z",
|
|
|
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"cell_type": "code",
|
| 117 |
+
"execution_count": 4,
|
| 118 |
"metadata": {
|
| 119 |
"execution": {
|
| 120 |
"iopub.execute_input": "2023-05-07T02:43:07.360141Z",
|
|
|
|
| 142 |
"Name: count, dtype: int64"
|
| 143 |
]
|
| 144 |
},
|
| 145 |
+
"execution_count": 4,
|
| 146 |
"metadata": {},
|
| 147 |
"output_type": "execute_result"
|
| 148 |
},
|
|
|
|
| 190 |
},
|
| 191 |
{
|
| 192 |
"cell_type": "code",
|
| 193 |
+
"execution_count": 5,
|
| 194 |
"metadata": {
|
| 195 |
"execution": {
|
| 196 |
"iopub.execute_input": "2023-05-07T02:43:07.685510Z",
|
|
|
|
| 226 |
},
|
| 227 |
{
|
| 228 |
"cell_type": "code",
|
| 229 |
+
"execution_count": 6,
|
| 230 |
"metadata": {
|
| 231 |
"execution": {
|
| 232 |
"iopub.execute_input": "2023-05-07T02:43:07.868530Z",
|
|
|
|
| 245 |
},
|
| 246 |
{
|
| 247 |
"cell_type": "code",
|
| 248 |
+
"execution_count": 7,
|
| 249 |
"metadata": {
|
| 250 |
"execution": {
|
| 251 |
"iopub.execute_input": "2023-05-07T02:43:07.875409Z",
|
|
|
|
| 280 |
},
|
| 281 |
{
|
| 282 |
"cell_type": "code",
|
| 283 |
+
"execution_count": 8,
|
| 284 |
"metadata": {
|
| 285 |
"execution": {
|
| 286 |
"iopub.execute_input": "2023-05-07T02:43:07.894885Z",
|
|
|
|
| 329 |
},
|
| 330 |
{
|
| 331 |
"cell_type": "code",
|
| 332 |
+
"execution_count": 9,
|
| 333 |
"metadata": {
|
| 334 |
"execution": {
|
| 335 |
"iopub.execute_input": "2023-05-07T03:19:29.397074Z",
|
|
|
|
| 340 |
}
|
| 341 |
},
|
| 342 |
"outputs": [
|
| 343 |
+
{
|
| 344 |
+
"name": "stderr",
|
| 345 |
+
"output_type": "stream",
|
| 346 |
+
"text": [
|
| 347 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/layers/convolutional/base_conv.py:107: UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in the model instead.\n",
|
| 348 |
+
" super().__init__(activity_regularizer=activity_regularizer, **kwargs)\n"
|
| 349 |
+
]
|
| 350 |
+
},
|
| 351 |
{
|
| 352 |
"name": "stdout",
|
| 353 |
"output_type": "stream",
|
| 354 |
"text": [
|
| 355 |
"(28, 28, 1)\n",
|
| 356 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 191ms/step\n"
|
| 357 |
]
|
| 358 |
},
|
| 359 |
{
|
|
|
|
| 362 |
"(3, 28, 28, 32)"
|
| 363 |
]
|
| 364 |
},
|
| 365 |
+
"execution_count": 9,
|
| 366 |
"metadata": {},
|
| 367 |
"output_type": "execute_result"
|
| 368 |
}
|
|
|
|
| 463 |
},
|
| 464 |
{
|
| 465 |
"cell_type": "code",
|
| 466 |
+
"execution_count": 10,
|
| 467 |
"metadata": {
|
| 468 |
"execution": {
|
| 469 |
"iopub.execute_input": "2023-05-07T03:37:06.070632Z",
|
|
|
|
| 534 |
},
|
| 535 |
{
|
| 536 |
"cell_type": "code",
|
| 537 |
+
"execution_count": 11,
|
| 538 |
"metadata": {
|
| 539 |
"execution": {
|
| 540 |
"iopub.execute_input": "2023-05-07T02:43:10.434652Z",
|
|
|
|
| 545 |
}
|
| 546 |
},
|
| 547 |
"outputs": [
|
| 548 |
+
{
|
| 549 |
+
"name": "stderr",
|
| 550 |
+
"output_type": "stream",
|
| 551 |
+
"text": [
|
| 552 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/base_optimizer.py:33: UserWarning: Argument `decay` is no longer supported and will be ignored.\n",
|
| 553 |
+
" warnings.warn(\n"
|
| 554 |
+
]
|
| 555 |
+
},
|
| 556 |
{
|
| 557 |
"data": {
|
| 558 |
"text/plain": [
|
| 559 |
"'\\n“decay=0”是RMSprop优化算法的一个参数,它控制了学习率的衰减。\\n具体来说,在RMSprop算法中,每个权重参数都有自己的学习率\\n,而decay参数会使这个学习率随着时间的推移而逐渐变小。\\n但是,由于decay=0,因此该算法不会在训练过程中降低学习率。\\n\\n“epsilon=1e-08”是RMSprop优化算法的一个参数,它是用来防止除零错误的一个小量,通常取极小的值(例如1e-8)。\\n在RMSprop算法中,计算梯度平方平均值时需要对平方梯度加上一个极小的值,以避免出现除以零的错误。\\n\\n“rho=0.9”是一种优化算法的参数,用于控制梯度的平滑度。具体来说,该参数决定了在计算平方梯度的指数移动平均值时,\\n历史数据的重要性。较高的rho值可以使平均值对历史数据的依赖性更强,从而使整个优化过程更加稳定。\\n'"
|
| 560 |
]
|
| 561 |
},
|
| 562 |
+
"execution_count": 11,
|
| 563 |
"metadata": {},
|
| 564 |
"output_type": "execute_result"
|
| 565 |
}
|
|
|
|
| 583 |
},
|
| 584 |
{
|
| 585 |
"cell_type": "code",
|
| 586 |
+
"execution_count": 12,
|
| 587 |
"metadata": {
|
| 588 |
"execution": {
|
| 589 |
"iopub.execute_input": "2023-05-07T03:37:31.969911Z",
|
|
|
|
| 601 |
},
|
| 602 |
{
|
| 603 |
"cell_type": "code",
|
| 604 |
+
"execution_count": 13,
|
| 605 |
"metadata": {
|
| 606 |
"execution": {
|
| 607 |
"iopub.execute_input": "2023-05-07T03:36:01.984363Z",
|
|
|
|
| 618 |
"\"\\n\\n在您提供的代码中,learningratereduction是ReduceLROnPlateau回调函数的一个实例,用于在模型训练过程中动态地减小学习率。\\n具体来说,它监视了验证集的准确性(即'monitor'='valacc'),并且如果在3个时期内没有改进,\\n则减小学习率(即'patience'=3)。该调用还指定了减小因子(即'factor'=0.5)和最小学习率(即'minlr'=0.00001),\\n以便在执行减少操作时进行限制,从而保持学习率的稳定性和有效性。如果您想要更好地了解ReduceLROnPlateau的工作原理和参数设置,\\n\\nverbose是ReduceLROnPlateau回调函数的一个可选参数,用于控制输出详细程度的标志。\\n如果verbose=1,则在执行时期减少操作时将输出一条消息,以指示学习率的更新和当前的状态。\\n如果verbose=0,则不会输出任何消息。通常情况下,verbose的默认值为0,因为它可以大大减少输出的噪声和干扰。\\n如果您需要更详细的输出和信息,可以将verbose的值设置为1或更高\\n可以查看Keras文档:https://keras.io/callbacks/#reducelronplateau。\\n\""
|
| 619 |
]
|
| 620 |
},
|
| 621 |
+
"execution_count": 13,
|
| 622 |
"metadata": {},
|
| 623 |
"output_type": "execute_result"
|
| 624 |
}
|
|
|
|
| 649 |
},
|
| 650 |
{
|
| 651 |
"cell_type": "code",
|
| 652 |
+
"execution_count": 14,
|
| 653 |
"metadata": {
|
| 654 |
"execution": {
|
| 655 |
"iopub.execute_input": "2023-05-07T03:53:09.648082Z",
|
|
|
|
| 672 |
},
|
| 673 |
{
|
| 674 |
"cell_type": "code",
|
| 675 |
+
"execution_count": 15,
|
| 676 |
"metadata": {
|
| 677 |
"execution": {
|
| 678 |
"iopub.execute_input": "2023-05-07T03:36:05.950296Z",
|
|
|
|
| 739 |
},
|
| 740 |
{
|
| 741 |
"cell_type": "code",
|
| 742 |
+
"execution_count": 16,
|
| 743 |
"metadata": {
|
| 744 |
"execution": {
|
| 745 |
"iopub.execute_input": "2023-05-07T04:01:52.740017Z",
|
|
|
|
| 778 |
},
|
| 779 |
{
|
| 780 |
"cell_type": "code",
|
| 781 |
+
"execution_count": 17,
|
| 782 |
"metadata": {
|
| 783 |
"execution": {
|
| 784 |
"iopub.execute_input": "2023-05-07T04:01:55.664789Z",
|
|
|
|
| 801 |
"name": "stdout",
|
| 802 |
"output_type": "stream",
|
| 803 |
"text": [
|
| 804 |
+
"439/439 - 63s - 144ms/step - accuracy: 0.8645 - loss: 0.4261 - val_accuracy: 0.9736 - val_loss: 0.0943 - learning_rate: 0.0010\n"
|
| 805 |
]
|
| 806 |
},
|
| 807 |
{
|
|
|
|
| 852 |
},
|
| 853 |
{
|
| 854 |
"cell_type": "code",
|
| 855 |
+
"execution_count": 18,
|
| 856 |
"metadata": {
|
| 857 |
"execution": {
|
| 858 |
"iopub.execute_input": "2023-05-07T04:10:02.887763Z",
|
|
|
|
| 865 |
"outputs": [
|
| 866 |
{
|
| 867 |
"data": {
|
| 868 |
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ERlVd5v79NtoaHiIiIqKow8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5DHwEBERkeQx8BAREZHkMfAQERGR5FmY8uDJyclYtGgRkpKSYGNjg3feeQeffPIJrKysSmyTkZGBLVu24PTp07h58ybq16+PN954A1OmTEHz5s2rsPdERERUU5gs8KjVagQGBsLJyQlRUVFIT09HREQE8vLyMHfu3BLbXb58GUeOHMF7772Hjh074sGDB1i3bh2GDRuGAwcOwN7evgpHQURERDWByQJPbGwsHj16hDVr1sDOzg4AUFhYiPDwcISEhKBJkybFtuvcuTMOHToEC4v/63qnTp3Qq1cvfPfddwgKCqqK7hMREVENYrI1PAkJCfDy8tKHHQDw9fWFTqfD6dOnS2wnl8tFYQcAXnnlFdjb2yMjI6OyuktEREQ1mMkCT0pKCpydnUVlcrkcDg4OSElJMWpfqampyMrKQuvWrSuyi0RERCQRJgs8OTk5kMvlBuUKhQJqtbrc+xEEAYsWLULjxo3x9ttvV2QXiYiISCJMepdWRYiKisLZs2fx5Zdfol69eqbuDhEREVVDJgs8crkcGo3GoFytVkOhUJRrHzt27MDatWvx+eefw8vLq6K7SERERBJhsktazs7OBmt1NBoNMjMzDdb2FOfIkSOYP38+Jk+eDH9//8rqJhEREUmAyQKPt7c3EhMTkZOToy+Lj4+HmZkZVCpVqW3PnTuHKVOmYNiwYQgNDa3srhIREVENZ7LAExAQABsbG4SGhuLHH3/Erl27EBkZiYCAANEzeAIDA9GvXz/95+TkZISGhsLJyQnvvPMOLly4oP918+ZNUwyFiIiIqjmTreFRKBSIiYnBwoULERoaChsbG/j7+yMsLExUT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VfQrODgYALB27VqEhoZWwqiqn8qeZ+DZGbPg4GBotVps3LhR8v9j8/b2RmJiov4sGfDsrJuZmVmpgaRTp06wtbXFoUOH9GVarRbff/+9aD69vb3x+++/Iy0tTV925swZPHz4ED179qzYwVRjlT3PABAeHo4TJ07gP//5D5RKZcUPogaozHl2cHAw+Hd4xYoVAIBJkyYhKiqqkkZVzZnwlngykZ9++klwdXUV5s2bJ5w9e1ZYtWqVoFQqhbi4OFE9V1dXYebMmaKyoKAgoWfPnkJcXJxw7Ngxwc/PTxg8eLCg1WpLPN6uXbtq5XN4Knuex44dK7Rr107Ys2ePkJSUJPolRQ8fPhRUKpUwcuRI4dSpU8LOnTuFLl26COHh4aJ6o0ePFvr27Ssq27Bhg+Dm5iZs2bJFSExMFCZNmiR4eHgIN2/e1NfJz88X/Pz8BD8/P+H48ePCwYMHhZ49ewrjx4+vkvFVF5U9z+vWrRNcXFyEJUuWGPzcajSaKhljdVDZ8/yiW7du1frn8PCSVi3UpUsXREVF4YsvvsDOnTvRrFkzLFq0SPRcBwAoLCyETqcTlX3xxRdYvHgx5s6di4KCAnTv3h2zZ8+GhQV/lF5U2fNcdEr6008/NTj2tWvXKmFEpqVQKBATE4OFCxciNDQUNjY28Pf3N1jsqtPpUFhYKCoLDg6GIAjYvHkzsrOz4erqiujoaNECc0tLS3z55ZdYtGgRpkyZAgsLC/Tr1w+zZs2qkvFVF5U9z0U/t9HR0YiOjha137p1a615XkxlzzMZkgmCIJi6E0RERESViWt4iIiISPIYeIiIiEjyGHiIiIhI8hh4iIiISPIYeIiIiEjyGHiIiIhI8hh4iIiISPIYeIiIiEjyGHiIiIhI8hh4iIiISPIYeIiIiEjy/j+qFmdR89IJ2QAAAABJRU5ErkJggg==\n",
|
| 869 |
"text/plain": [
|
| 870 |
"<Figure size 640x480 with 2 Axes>"
|
| 871 |
]
|
benchmark/tensorflow_6/tensorflow_6_reproduced.ipynb
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
},
|
| 24 |
{
|
| 25 |
"cell_type": "code",
|
| 26 |
-
"execution_count":
|
| 27 |
"metadata": {},
|
| 28 |
"outputs": [],
|
| 29 |
"source": [
|
|
@@ -64,7 +64,7 @@
|
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"cell_type": "code",
|
| 67 |
-
"execution_count":
|
| 68 |
"metadata": {
|
| 69 |
"execution": {
|
| 70 |
"iopub.execute_input": "2023-05-07T02:43:02.453784Z",
|
|
@@ -96,7 +96,7 @@
|
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"cell_type": "code",
|
| 99 |
-
"execution_count":
|
| 100 |
"metadata": {
|
| 101 |
"execution": {
|
| 102 |
"iopub.execute_input": "2023-05-07T02:43:02.639276Z",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"cell_type": "code",
|
| 117 |
-
"execution_count":
|
| 118 |
"metadata": {
|
| 119 |
"execution": {
|
| 120 |
"iopub.execute_input": "2023-05-07T02:43:07.360141Z",
|
|
@@ -142,7 +142,7 @@
|
|
| 142 |
"Name: count, dtype: int64"
|
| 143 |
]
|
| 144 |
},
|
| 145 |
-
"execution_count":
|
| 146 |
"metadata": {},
|
| 147 |
"output_type": "execute_result"
|
| 148 |
},
|
|
@@ -190,7 +190,7 @@
|
|
| 190 |
},
|
| 191 |
{
|
| 192 |
"cell_type": "code",
|
| 193 |
-
"execution_count":
|
| 194 |
"metadata": {
|
| 195 |
"execution": {
|
| 196 |
"iopub.execute_input": "2023-05-07T02:43:07.685510Z",
|
|
@@ -226,7 +226,7 @@
|
|
| 226 |
},
|
| 227 |
{
|
| 228 |
"cell_type": "code",
|
| 229 |
-
"execution_count":
|
| 230 |
"metadata": {
|
| 231 |
"execution": {
|
| 232 |
"iopub.execute_input": "2023-05-07T02:43:07.868530Z",
|
|
@@ -245,7 +245,7 @@
|
|
| 245 |
},
|
| 246 |
{
|
| 247 |
"cell_type": "code",
|
| 248 |
-
"execution_count":
|
| 249 |
"metadata": {
|
| 250 |
"execution": {
|
| 251 |
"iopub.execute_input": "2023-05-07T02:43:07.875409Z",
|
|
@@ -280,7 +280,7 @@
|
|
| 280 |
},
|
| 281 |
{
|
| 282 |
"cell_type": "code",
|
| 283 |
-
"execution_count":
|
| 284 |
"metadata": {
|
| 285 |
"execution": {
|
| 286 |
"iopub.execute_input": "2023-05-07T02:43:07.894885Z",
|
|
@@ -329,7 +329,7 @@
|
|
| 329 |
},
|
| 330 |
{
|
| 331 |
"cell_type": "code",
|
| 332 |
-
"execution_count":
|
| 333 |
"metadata": {
|
| 334 |
"execution": {
|
| 335 |
"iopub.execute_input": "2023-05-07T03:19:29.397074Z",
|
|
@@ -345,7 +345,15 @@
|
|
| 345 |
"output_type": "stream",
|
| 346 |
"text": [
|
| 347 |
"(28, 28, 1)\n",
|
| 348 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
]
|
| 350 |
},
|
| 351 |
{
|
|
@@ -354,7 +362,7 @@
|
|
| 354 |
"(3, 28, 28, 32)"
|
| 355 |
]
|
| 356 |
},
|
| 357 |
-
"execution_count":
|
| 358 |
"metadata": {},
|
| 359 |
"output_type": "execute_result"
|
| 360 |
}
|
|
@@ -455,7 +463,7 @@
|
|
| 455 |
},
|
| 456 |
{
|
| 457 |
"cell_type": "code",
|
| 458 |
-
"execution_count":
|
| 459 |
"metadata": {
|
| 460 |
"execution": {
|
| 461 |
"iopub.execute_input": "2023-05-07T03:37:06.070632Z",
|
|
@@ -526,7 +534,7 @@
|
|
| 526 |
},
|
| 527 |
{
|
| 528 |
"cell_type": "code",
|
| 529 |
-
"execution_count":
|
| 530 |
"metadata": {
|
| 531 |
"execution": {
|
| 532 |
"iopub.execute_input": "2023-05-07T02:43:10.434652Z",
|
|
@@ -537,13 +545,21 @@
|
|
| 537 |
}
|
| 538 |
},
|
| 539 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 540 |
{
|
| 541 |
"data": {
|
| 542 |
"text/plain": [
|
| 543 |
"'\\n“decay=0”是RMSprop优化算法的一个参数,它控制了学习率的衰减。\\n具体来说,在RMSprop算法中,每个权重参数都有自己的学习率\\n,而decay参数会使这个学习率随着时间的推移而逐渐变小。\\n但是,由于decay=0,因此该算法不会在训练过程中降低学习率。\\n\\n“epsilon=1e-08”是RMSprop优化算法的一个参数,它是用来防止除零错误的一个小量,通常取极小的值(例如1e-8)。\\n在RMSprop算法中,计算梯度平方平均值时需要对平方梯度加上一个极小的值,以避免出现除以零的错误。\\n\\n“rho=0.9”是一种优化算法的参数,用于控制梯度的平滑度。具体来说,该参数决定了在计算平方梯度的指数移动平均值时,\\n历史数据的重要性。较高的rho值可以使平均值对历史数据的依赖性更强,从而使整个优化过程更加稳定。\\n'"
|
| 544 |
]
|
| 545 |
},
|
| 546 |
-
"execution_count":
|
| 547 |
"metadata": {},
|
| 548 |
"output_type": "execute_result"
|
| 549 |
}
|
|
@@ -567,7 +583,7 @@
|
|
| 567 |
},
|
| 568 |
{
|
| 569 |
"cell_type": "code",
|
| 570 |
-
"execution_count":
|
| 571 |
"metadata": {
|
| 572 |
"execution": {
|
| 573 |
"iopub.execute_input": "2023-05-07T03:37:31.969911Z",
|
|
@@ -585,7 +601,7 @@
|
|
| 585 |
},
|
| 586 |
{
|
| 587 |
"cell_type": "code",
|
| 588 |
-
"execution_count":
|
| 589 |
"metadata": {
|
| 590 |
"execution": {
|
| 591 |
"iopub.execute_input": "2023-05-07T03:36:01.984363Z",
|
|
@@ -602,7 +618,7 @@
|
|
| 602 |
"\"\\n\\n在您提供的代码中,learningratereduction是ReduceLROnPlateau回调函数的一个实例,用于在模型训练过程中动态地减小学习率。\\n具体来说,它监视了验证集的准确性(即'monitor'='valacc'),并且如果在3个时期内没有改进,\\n则减小学习率(即'patience'=3)。该调用还指定了减小因子(即'factor'=0.5)和最小学习率(即'minlr'=0.00001),\\n以便在执行减少操作时进行限制,从而保持学习率的稳定性和有效性。如果您想要更好地了解ReduceLROnPlateau的工作原理和参数设置,\\n\\nverbose是ReduceLROnPlateau回调函数的一个可选参数,用于控制输出详细程度的标志。\\n如果verbose=1,则在执行时期减少操作时将输出一条消息,以指示学习率的更新和当前的状态。\\n如果verbose=0,则不会输出任何消息。通常情况下,verbose的默认值为0,因为它可以大大减少输出的噪声和干扰。\\n如果您需要更详细的输出和信息,可以将verbose的值设置为1或更高\\n可以查看Keras文档:https://keras.io/callbacks/#reducelronplateau。\\n\""
|
| 603 |
]
|
| 604 |
},
|
| 605 |
-
"execution_count":
|
| 606 |
"metadata": {},
|
| 607 |
"output_type": "execute_result"
|
| 608 |
}
|
|
@@ -633,7 +649,7 @@
|
|
| 633 |
},
|
| 634 |
{
|
| 635 |
"cell_type": "code",
|
| 636 |
-
"execution_count":
|
| 637 |
"metadata": {
|
| 638 |
"execution": {
|
| 639 |
"iopub.execute_input": "2023-05-07T03:53:09.648082Z",
|
|
@@ -656,7 +672,7 @@
|
|
| 656 |
},
|
| 657 |
{
|
| 658 |
"cell_type": "code",
|
| 659 |
-
"execution_count":
|
| 660 |
"metadata": {
|
| 661 |
"execution": {
|
| 662 |
"iopub.execute_input": "2023-05-07T03:36:05.950296Z",
|
|
@@ -723,7 +739,7 @@
|
|
| 723 |
},
|
| 724 |
{
|
| 725 |
"cell_type": "code",
|
| 726 |
-
"execution_count":
|
| 727 |
"metadata": {
|
| 728 |
"execution": {
|
| 729 |
"iopub.execute_input": "2023-05-07T04:01:52.740017Z",
|
|
@@ -762,7 +778,7 @@
|
|
| 762 |
},
|
| 763 |
{
|
| 764 |
"cell_type": "code",
|
| 765 |
-
"execution_count":
|
| 766 |
"metadata": {
|
| 767 |
"execution": {
|
| 768 |
"iopub.execute_input": "2023-05-07T04:01:55.664789Z",
|
|
@@ -785,7 +801,7 @@
|
|
| 785 |
"name": "stdout",
|
| 786 |
"output_type": "stream",
|
| 787 |
"text": [
|
| 788 |
-
"439/439 -
|
| 789 |
]
|
| 790 |
},
|
| 791 |
{
|
|
@@ -836,7 +852,7 @@
|
|
| 836 |
},
|
| 837 |
{
|
| 838 |
"cell_type": "code",
|
| 839 |
-
"execution_count":
|
| 840 |
"metadata": {
|
| 841 |
"execution": {
|
| 842 |
"iopub.execute_input": "2023-05-07T04:10:02.887763Z",
|
|
@@ -854,7 +870,7 @@
|
|
| 854 |
"traceback": [
|
| 855 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 856 |
"\u001b[0;31mKeyError\u001b[0m Traceback (most recent call last)",
|
| 857 |
-
"\u001b[0;32m<ipython-input-
|
| 858 |
"\u001b[0;31mKeyError\u001b[0m: 'acc'"
|
| 859 |
]
|
| 860 |
},
|
|
|
|
| 23 |
},
|
| 24 |
{
|
| 25 |
"cell_type": "code",
|
| 26 |
+
"execution_count": 1,
|
| 27 |
"metadata": {},
|
| 28 |
"outputs": [],
|
| 29 |
"source": [
|
|
|
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"cell_type": "code",
|
| 67 |
+
"execution_count": 2,
|
| 68 |
"metadata": {
|
| 69 |
"execution": {
|
| 70 |
"iopub.execute_input": "2023-05-07T02:43:02.453784Z",
|
|
|
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"cell_type": "code",
|
| 99 |
+
"execution_count": 3,
|
| 100 |
"metadata": {
|
| 101 |
"execution": {
|
| 102 |
"iopub.execute_input": "2023-05-07T02:43:02.639276Z",
|
|
|
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"cell_type": "code",
|
| 117 |
+
"execution_count": 4,
|
| 118 |
"metadata": {
|
| 119 |
"execution": {
|
| 120 |
"iopub.execute_input": "2023-05-07T02:43:07.360141Z",
|
|
|
|
| 142 |
"Name: count, dtype: int64"
|
| 143 |
]
|
| 144 |
},
|
| 145 |
+
"execution_count": 4,
|
| 146 |
"metadata": {},
|
| 147 |
"output_type": "execute_result"
|
| 148 |
},
|
|
|
|
| 190 |
},
|
| 191 |
{
|
| 192 |
"cell_type": "code",
|
| 193 |
+
"execution_count": 5,
|
| 194 |
"metadata": {
|
| 195 |
"execution": {
|
| 196 |
"iopub.execute_input": "2023-05-07T02:43:07.685510Z",
|
|
|
|
| 226 |
},
|
| 227 |
{
|
| 228 |
"cell_type": "code",
|
| 229 |
+
"execution_count": 6,
|
| 230 |
"metadata": {
|
| 231 |
"execution": {
|
| 232 |
"iopub.execute_input": "2023-05-07T02:43:07.868530Z",
|
|
|
|
| 245 |
},
|
| 246 |
{
|
| 247 |
"cell_type": "code",
|
| 248 |
+
"execution_count": 7,
|
| 249 |
"metadata": {
|
| 250 |
"execution": {
|
| 251 |
"iopub.execute_input": "2023-05-07T02:43:07.875409Z",
|
|
|
|
| 280 |
},
|
| 281 |
{
|
| 282 |
"cell_type": "code",
|
| 283 |
+
"execution_count": 8,
|
| 284 |
"metadata": {
|
| 285 |
"execution": {
|
| 286 |
"iopub.execute_input": "2023-05-07T02:43:07.894885Z",
|
|
|
|
| 329 |
},
|
| 330 |
{
|
| 331 |
"cell_type": "code",
|
| 332 |
+
"execution_count": 9,
|
| 333 |
"metadata": {
|
| 334 |
"execution": {
|
| 335 |
"iopub.execute_input": "2023-05-07T03:19:29.397074Z",
|
|
|
|
| 345 |
"output_type": "stream",
|
| 346 |
"text": [
|
| 347 |
"(28, 28, 1)\n",
|
| 348 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 44ms/step\n"
|
| 349 |
+
]
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"name": "stderr",
|
| 353 |
+
"output_type": "stream",
|
| 354 |
+
"text": [
|
| 355 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/layers/convolutional/base_conv.py:107: UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in the model instead.\n",
|
| 356 |
+
" super().__init__(activity_regularizer=activity_regularizer, **kwargs)\n"
|
| 357 |
]
|
| 358 |
},
|
| 359 |
{
|
|
|
|
| 362 |
"(3, 28, 28, 32)"
|
| 363 |
]
|
| 364 |
},
|
| 365 |
+
"execution_count": 9,
|
| 366 |
"metadata": {},
|
| 367 |
"output_type": "execute_result"
|
| 368 |
}
|
|
|
|
| 463 |
},
|
| 464 |
{
|
| 465 |
"cell_type": "code",
|
| 466 |
+
"execution_count": 10,
|
| 467 |
"metadata": {
|
| 468 |
"execution": {
|
| 469 |
"iopub.execute_input": "2023-05-07T03:37:06.070632Z",
|
|
|
|
| 534 |
},
|
| 535 |
{
|
| 536 |
"cell_type": "code",
|
| 537 |
+
"execution_count": 11,
|
| 538 |
"metadata": {
|
| 539 |
"execution": {
|
| 540 |
"iopub.execute_input": "2023-05-07T02:43:10.434652Z",
|
|
|
|
| 545 |
}
|
| 546 |
},
|
| 547 |
"outputs": [
|
| 548 |
+
{
|
| 549 |
+
"name": "stderr",
|
| 550 |
+
"output_type": "stream",
|
| 551 |
+
"text": [
|
| 552 |
+
"/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/base_optimizer.py:33: UserWarning: Argument `decay` is no longer supported and will be ignored.\n",
|
| 553 |
+
" warnings.warn(\n"
|
| 554 |
+
]
|
| 555 |
+
},
|
| 556 |
{
|
| 557 |
"data": {
|
| 558 |
"text/plain": [
|
| 559 |
"'\\n“decay=0”是RMSprop优化算法的一个参数,它控制了学习率的衰减。\\n具体来说,在RMSprop算法中,每个权重参数都有自己的学习率\\n,而decay参数会使这个学习率随着时间的推移而逐渐变小。\\n但是,由于decay=0,因此该算法不会在训练过程中降低学习率。\\n\\n“epsilon=1e-08”是RMSprop优化算法的一个参数,它是用来防止除零错误的一个小量,通常取极小的值(例如1e-8)。\\n在RMSprop算法中,计算梯度平方平均值时需要对平方梯度加上一个极小的值,以避免出现除以零的错误。\\n\\n“rho=0.9”是一种优化算法的参数,用于控制梯度的平滑度。具体来说,该参数决定了在计算平方梯度的指数移动平均值时,\\n历史数据的重要性。较高的rho值可以使平均值对历史数据的依赖性更强,从而使整个优化过程更加稳定。\\n'"
|
| 560 |
]
|
| 561 |
},
|
| 562 |
+
"execution_count": 11,
|
| 563 |
"metadata": {},
|
| 564 |
"output_type": "execute_result"
|
| 565 |
}
|
|
|
|
| 583 |
},
|
| 584 |
{
|
| 585 |
"cell_type": "code",
|
| 586 |
+
"execution_count": 12,
|
| 587 |
"metadata": {
|
| 588 |
"execution": {
|
| 589 |
"iopub.execute_input": "2023-05-07T03:37:31.969911Z",
|
|
|
|
| 601 |
},
|
| 602 |
{
|
| 603 |
"cell_type": "code",
|
| 604 |
+
"execution_count": 13,
|
| 605 |
"metadata": {
|
| 606 |
"execution": {
|
| 607 |
"iopub.execute_input": "2023-05-07T03:36:01.984363Z",
|
|
|
|
| 618 |
"\"\\n\\n在您提供的代码中,learningratereduction是ReduceLROnPlateau回调函数的一个实例,用于在模型训练过程中动态地减小学习率。\\n具体来说,它监视了验证集的准确性(即'monitor'='valacc'),并且如果在3个时期内没有改进,\\n则减小学习率(即'patience'=3)。该调用还指定了减小因子(即'factor'=0.5)和最小学习率(即'minlr'=0.00001),\\n以便在执行减少操作时进行限制,从而保持学习率的稳定性和有效性。如果您想要更好地了解ReduceLROnPlateau的工作原理和参数设置,\\n\\nverbose是ReduceLROnPlateau回调函数的一个可选参数,用于控制输出详细程度的标志。\\n如果verbose=1,则在执行时期减少操作时将输出一条消息,以指示学习率的更新和当前的状态。\\n如果verbose=0,则不会输出任何消息。通常情况下,verbose的默认值为0,因为它可以大大减少输出的噪声和干扰。\\n如果您需要更详细的输出和信息,可以将verbose的值设置为1或更高\\n可以查看Keras文档:https://keras.io/callbacks/#reducelronplateau。\\n\""
|
| 619 |
]
|
| 620 |
},
|
| 621 |
+
"execution_count": 13,
|
| 622 |
"metadata": {},
|
| 623 |
"output_type": "execute_result"
|
| 624 |
}
|
|
|
|
| 649 |
},
|
| 650 |
{
|
| 651 |
"cell_type": "code",
|
| 652 |
+
"execution_count": 14,
|
| 653 |
"metadata": {
|
| 654 |
"execution": {
|
| 655 |
"iopub.execute_input": "2023-05-07T03:53:09.648082Z",
|
|
|
|
| 672 |
},
|
| 673 |
{
|
| 674 |
"cell_type": "code",
|
| 675 |
+
"execution_count": 15,
|
| 676 |
"metadata": {
|
| 677 |
"execution": {
|
| 678 |
"iopub.execute_input": "2023-05-07T03:36:05.950296Z",
|
|
|
|
| 739 |
},
|
| 740 |
{
|
| 741 |
"cell_type": "code",
|
| 742 |
+
"execution_count": 16,
|
| 743 |
"metadata": {
|
| 744 |
"execution": {
|
| 745 |
"iopub.execute_input": "2023-05-07T04:01:52.740017Z",
|
|
|
|
| 778 |
},
|
| 779 |
{
|
| 780 |
"cell_type": "code",
|
| 781 |
+
"execution_count": 17,
|
| 782 |
"metadata": {
|
| 783 |
"execution": {
|
| 784 |
"iopub.execute_input": "2023-05-07T04:01:55.664789Z",
|
|
|
|
| 801 |
"name": "stdout",
|
| 802 |
"output_type": "stream",
|
| 803 |
"text": [
|
| 804 |
+
"439/439 - 61s - 138ms/step - accuracy: 0.8586 - loss: 0.4352 - val_accuracy: 0.9767 - val_loss: 0.0695 - learning_rate: 0.0010\n"
|
| 805 |
]
|
| 806 |
},
|
| 807 |
{
|
|
|
|
| 852 |
},
|
| 853 |
{
|
| 854 |
"cell_type": "code",
|
| 855 |
+
"execution_count": 18,
|
| 856 |
"metadata": {
|
| 857 |
"execution": {
|
| 858 |
"iopub.execute_input": "2023-05-07T04:10:02.887763Z",
|
|
|
|
| 870 |
"traceback": [
|
| 871 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 872 |
"\u001b[0;31mKeyError\u001b[0m Traceback (most recent call last)",
|
| 873 |
+
"\u001b[0;32m<ipython-input-18-352f161fa038>\u001b[0m in \u001b[0;36m<cell line: 6>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mlegend\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0max\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlegend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mloc\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'best'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mshadow\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 6\u001b[0;31m \u001b[0max\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mplot\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mhistory\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhistory\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'acc'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcolor\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'b'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlabel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"Training accuracy\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 7\u001b[0m \u001b[0max\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mplot\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mhistory\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhistory\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'val_acc'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcolor\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'r'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mlabel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"Validation accuracy\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0mlegend\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0max\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlegend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mloc\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'best'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mshadow\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 874 |
"\u001b[0;31mKeyError\u001b[0m: 'acc'"
|
| 875 |
]
|
| 876 |
},
|
benchmark/tensorflow_7/tensorflow_7_fixed.ipynb
CHANGED
|
@@ -510,7 +510,7 @@
|
|
| 510 |
},
|
| 511 |
{
|
| 512 |
"cell_type": "code",
|
| 513 |
-
"execution_count":
|
| 514 |
"metadata": {
|
| 515 |
"execution": {
|
| 516 |
"iopub.execute_input": "2023-01-16T08:00:49.850081Z",
|
|
@@ -520,107 +520,7 @@
|
|
| 520 |
"shell.execute_reply.started": "2023-01-16T08:00:49.850036Z"
|
| 521 |
}
|
| 522 |
},
|
| 523 |
-
"outputs": [
|
| 524 |
-
{
|
| 525 |
-
"data": {
|
| 526 |
-
"text/html": [
|
| 527 |
-
"<div>\n",
|
| 528 |
-
"<style scoped>\n",
|
| 529 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 530 |
-
" vertical-align: middle;\n",
|
| 531 |
-
" }\n",
|
| 532 |
-
"\n",
|
| 533 |
-
" .dataframe tbody tr th {\n",
|
| 534 |
-
" vertical-align: top;\n",
|
| 535 |
-
" }\n",
|
| 536 |
-
"\n",
|
| 537 |
-
" .dataframe thead th {\n",
|
| 538 |
-
" text-align: right;\n",
|
| 539 |
-
" }\n",
|
| 540 |
-
"</style>\n",
|
| 541 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 542 |
-
" <thead>\n",
|
| 543 |
-
" <tr style=\"text-align: right;\">\n",
|
| 544 |
-
" <th></th>\n",
|
| 545 |
-
" <th>id</th>\n",
|
| 546 |
-
" <th>premise</th>\n",
|
| 547 |
-
" <th>hypothesis</th>\n",
|
| 548 |
-
" <th>lang_abv</th>\n",
|
| 549 |
-
" <th>language</th>\n",
|
| 550 |
-
" <th>label</th>\n",
|
| 551 |
-
" </tr>\n",
|
| 552 |
-
" </thead>\n",
|
| 553 |
-
" <tbody>\n",
|
| 554 |
-
" <tr>\n",
|
| 555 |
-
" <th>0</th>\n",
|
| 556 |
-
" <td>5130fd2cb5</td>\n",
|
| 557 |
-
" <td>and these comments were considered in formulat...</td>\n",
|
| 558 |
-
" <td>The rules developed in the interim were put to...</td>\n",
|
| 559 |
-
" <td>en</td>\n",
|
| 560 |
-
" <td>English</td>\n",
|
| 561 |
-
" <td>0</td>\n",
|
| 562 |
-
" </tr>\n",
|
| 563 |
-
" <tr>\n",
|
| 564 |
-
" <th>1</th>\n",
|
| 565 |
-
" <td>5b72532a0b</td>\n",
|
| 566 |
-
" <td>These are issues that we wrestle with in pract...</td>\n",
|
| 567 |
-
" <td>Practice groups are not permitted to work on t...</td>\n",
|
| 568 |
-
" <td>en</td>\n",
|
| 569 |
-
" <td>English</td>\n",
|
| 570 |
-
" <td>2</td>\n",
|
| 571 |
-
" </tr>\n",
|
| 572 |
-
" <tr>\n",
|
| 573 |
-
" <th>2</th>\n",
|
| 574 |
-
" <td>3931fbe82a</td>\n",
|
| 575 |
-
" <td>Des petites choses comme celles-là font une di...</td>\n",
|
| 576 |
-
" <td>J'essayais d'accomplir quelque chose.</td>\n",
|
| 577 |
-
" <td>fr</td>\n",
|
| 578 |
-
" <td>French</td>\n",
|
| 579 |
-
" <td>0</td>\n",
|
| 580 |
-
" </tr>\n",
|
| 581 |
-
" <tr>\n",
|
| 582 |
-
" <th>3</th>\n",
|
| 583 |
-
" <td>5622f0c60b</td>\n",
|
| 584 |
-
" <td>you know they can't really defend themselves l...</td>\n",
|
| 585 |
-
" <td>They can't defend themselves because of their ...</td>\n",
|
| 586 |
-
" <td>en</td>\n",
|
| 587 |
-
" <td>English</td>\n",
|
| 588 |
-
" <td>0</td>\n",
|
| 589 |
-
" </tr>\n",
|
| 590 |
-
" <tr>\n",
|
| 591 |
-
" <th>4</th>\n",
|
| 592 |
-
" <td>86aaa48b45</td>\n",
|
| 593 |
-
" <td>ในการเล่นบทบาทสมมุติก็เช่นกัน โอกาสที่จะได้แสด...</td>\n",
|
| 594 |
-
" <td>เด็กสามารถเห็นได้ว่าชาติพันธุ์แตกต่างกันอย่างไร</td>\n",
|
| 595 |
-
" <td>th</td>\n",
|
| 596 |
-
" <td>Thai</td>\n",
|
| 597 |
-
" <td>1</td>\n",
|
| 598 |
-
" </tr>\n",
|
| 599 |
-
" </tbody>\n",
|
| 600 |
-
"</table>\n",
|
| 601 |
-
"</div>"
|
| 602 |
-
],
|
| 603 |
-
"text/plain": [
|
| 604 |
-
" id premise \\\n",
|
| 605 |
-
"0 5130fd2cb5 and these comments were considered in formulat... \n",
|
| 606 |
-
"1 5b72532a0b These are issues that we wrestle with in pract... \n",
|
| 607 |
-
"2 3931fbe82a Des petites choses comme celles-là font une di... \n",
|
| 608 |
-
"3 5622f0c60b you know they can't really defend themselves l... \n",
|
| 609 |
-
"4 86aaa48b45 ในการเล่นบทบาทสมมุติก็เช่นกัน โอกาสที่จะได้แสด... \n",
|
| 610 |
-
"\n",
|
| 611 |
-
" hypothesis lang_abv language label \n",
|
| 612 |
-
"0 The rules developed in the interim were put to... en English 0 \n",
|
| 613 |
-
"1 Practice groups are not permitted to work on t... en English 2 \n",
|
| 614 |
-
"2 J'essayais d'accomplir quelque chose. fr French 0 \n",
|
| 615 |
-
"3 They can't defend themselves because of their ... en English 0 \n",
|
| 616 |
-
"4 เด็กสามารถเห็นได้ว่าชาติพันธุ์แตกต่างกันอย่างไร th Thai 1 "
|
| 617 |
-
]
|
| 618 |
-
},
|
| 619 |
-
"execution_count": 4,
|
| 620 |
-
"metadata": {},
|
| 621 |
-
"output_type": "execute_result"
|
| 622 |
-
}
|
| 623 |
-
],
|
| 624 |
"source": [
|
| 625 |
"train.head()"
|
| 626 |
]
|
|
@@ -1367,7 +1267,7 @@
|
|
| 1367 |
},
|
| 1368 |
{
|
| 1369 |
"cell_type": "code",
|
| 1370 |
-
"execution_count":
|
| 1371 |
"metadata": {
|
| 1372 |
"execution": {
|
| 1373 |
"iopub.execute_input": "2023-01-16T08:00:50.898473Z",
|
|
@@ -1402,7 +1302,7 @@
|
|
| 1402 |
},
|
| 1403 |
{
|
| 1404 |
"cell_type": "code",
|
| 1405 |
-
"execution_count":
|
| 1406 |
"metadata": {
|
| 1407 |
"execution": {
|
| 1408 |
"iopub.execute_input": "2023-01-16T08:00:53.424542Z",
|
|
@@ -1452,7 +1352,7 @@
|
|
| 1452 |
},
|
| 1453 |
{
|
| 1454 |
"cell_type": "code",
|
| 1455 |
-
"execution_count":
|
| 1456 |
"metadata": {
|
| 1457 |
"execution": {
|
| 1458 |
"iopub.execute_input": "2023-01-16T08:00:53.449365Z",
|
|
@@ -1537,7 +1437,7 @@
|
|
| 1537 |
},
|
| 1538 |
{
|
| 1539 |
"cell_type": "code",
|
| 1540 |
-
"execution_count":
|
| 1541 |
"metadata": {
|
| 1542 |
"execution": {
|
| 1543 |
"iopub.execute_input": "2023-01-16T08:00:53.463417Z",
|
|
@@ -1587,7 +1487,7 @@
|
|
| 1587 |
},
|
| 1588 |
{
|
| 1589 |
"cell_type": "code",
|
| 1590 |
-
"execution_count":
|
| 1591 |
"metadata": {
|
| 1592 |
"execution": {
|
| 1593 |
"iopub.execute_input": "2023-01-16T08:01:06.505373Z",
|
|
@@ -1639,7 +1539,7 @@
|
|
| 1639 |
},
|
| 1640 |
{
|
| 1641 |
"cell_type": "code",
|
| 1642 |
-
"execution_count":
|
| 1643 |
"metadata": {
|
| 1644 |
"execution": {
|
| 1645 |
"iopub.execute_input": "2023-01-16T08:01:06.518092Z",
|
|
@@ -1654,7 +1554,7 @@
|
|
| 1654 |
"name": "stderr",
|
| 1655 |
"output_type": "stream",
|
| 1656 |
"text": [
|
| 1657 |
-
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.predictions.transform.dense.
|
| 1658 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 1659 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 1660 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
@@ -1714,7 +1614,7 @@
|
|
| 1714 |
},
|
| 1715 |
{
|
| 1716 |
"cell_type": "code",
|
| 1717 |
-
"execution_count":
|
| 1718 |
"metadata": {
|
| 1719 |
"execution": {
|
| 1720 |
"iopub.execute_input": "2023-01-16T08:01:42.707229Z",
|
|
@@ -1731,18 +1631,18 @@
|
|
| 1731 |
"output_type": "stream",
|
| 1732 |
"text": [
|
| 1733 |
"Epoch 1/2\n",
|
| 1734 |
-
"1/1 [==============================] -
|
| 1735 |
"Epoch 2/2\n",
|
| 1736 |
-
"1/1 [==============================] -
|
| 1737 |
]
|
| 1738 |
},
|
| 1739 |
{
|
| 1740 |
"data": {
|
| 1741 |
"text/plain": [
|
| 1742 |
-
"<tf_keras.src.callbacks.History at
|
| 1743 |
]
|
| 1744 |
},
|
| 1745 |
-
"execution_count":
|
| 1746 |
"metadata": {},
|
| 1747 |
"output_type": "execute_result"
|
| 1748 |
}
|
|
|
|
| 510 |
},
|
| 511 |
{
|
| 512 |
"cell_type": "code",
|
| 513 |
+
"execution_count": null,
|
| 514 |
"metadata": {
|
| 515 |
"execution": {
|
| 516 |
"iopub.execute_input": "2023-01-16T08:00:49.850081Z",
|
|
|
|
| 520 |
"shell.execute_reply.started": "2023-01-16T08:00:49.850036Z"
|
| 521 |
}
|
| 522 |
},
|
| 523 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 524 |
"source": [
|
| 525 |
"train.head()"
|
| 526 |
]
|
|
|
|
| 1267 |
},
|
| 1268 |
{
|
| 1269 |
"cell_type": "code",
|
| 1270 |
+
"execution_count": 4,
|
| 1271 |
"metadata": {
|
| 1272 |
"execution": {
|
| 1273 |
"iopub.execute_input": "2023-01-16T08:00:50.898473Z",
|
|
|
|
| 1302 |
},
|
| 1303 |
{
|
| 1304 |
"cell_type": "code",
|
| 1305 |
+
"execution_count": 5,
|
| 1306 |
"metadata": {
|
| 1307 |
"execution": {
|
| 1308 |
"iopub.execute_input": "2023-01-16T08:00:53.424542Z",
|
|
|
|
| 1352 |
},
|
| 1353 |
{
|
| 1354 |
"cell_type": "code",
|
| 1355 |
+
"execution_count": 6,
|
| 1356 |
"metadata": {
|
| 1357 |
"execution": {
|
| 1358 |
"iopub.execute_input": "2023-01-16T08:00:53.449365Z",
|
|
|
|
| 1437 |
},
|
| 1438 |
{
|
| 1439 |
"cell_type": "code",
|
| 1440 |
+
"execution_count": 7,
|
| 1441 |
"metadata": {
|
| 1442 |
"execution": {
|
| 1443 |
"iopub.execute_input": "2023-01-16T08:00:53.463417Z",
|
|
|
|
| 1487 |
},
|
| 1488 |
{
|
| 1489 |
"cell_type": "code",
|
| 1490 |
+
"execution_count": 8,
|
| 1491 |
"metadata": {
|
| 1492 |
"execution": {
|
| 1493 |
"iopub.execute_input": "2023-01-16T08:01:06.505373Z",
|
|
|
|
| 1539 |
},
|
| 1540 |
{
|
| 1541 |
"cell_type": "code",
|
| 1542 |
+
"execution_count": 9,
|
| 1543 |
"metadata": {
|
| 1544 |
"execution": {
|
| 1545 |
"iopub.execute_input": "2023-01-16T08:01:06.518092Z",
|
|
|
|
| 1554 |
"name": "stderr",
|
| 1555 |
"output_type": "stream",
|
| 1556 |
"text": [
|
| 1557 |
+
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.predictions.transform.dense.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.seq_relationship.weight', 'cls.seq_relationship.bias', 'cls.predictions.bias']\n",
|
| 1558 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 1559 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 1560 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
|
|
| 1614 |
},
|
| 1615 |
{
|
| 1616 |
"cell_type": "code",
|
| 1617 |
+
"execution_count": 10,
|
| 1618 |
"metadata": {
|
| 1619 |
"execution": {
|
| 1620 |
"iopub.execute_input": "2023-01-16T08:01:42.707229Z",
|
|
|
|
| 1631 |
"output_type": "stream",
|
| 1632 |
"text": [
|
| 1633 |
"Epoch 1/2\n",
|
| 1634 |
+
"1/1 [==============================] - 25s 25s/step - loss: 1.2518 - accuracy: 0.1250 - val_loss: 8.3898 - val_accuracy: 0.5000\n",
|
| 1635 |
"Epoch 2/2\n",
|
| 1636 |
+
"1/1 [==============================] - 6s 6s/step - loss: 5.4328 - accuracy: 0.6250 - val_loss: 3.6609 - val_accuracy: 0.5000\n"
|
| 1637 |
]
|
| 1638 |
},
|
| 1639 |
{
|
| 1640 |
"data": {
|
| 1641 |
"text/plain": [
|
| 1642 |
+
"<tf_keras.src.callbacks.History at 0x7632aec30850>"
|
| 1643 |
]
|
| 1644 |
},
|
| 1645 |
+
"execution_count": 10,
|
| 1646 |
"metadata": {},
|
| 1647 |
"output_type": "execute_result"
|
| 1648 |
}
|
benchmark/tensorflow_7/tensorflow_7_reproduced.ipynb
CHANGED
|
@@ -510,7 +510,7 @@
|
|
| 510 |
},
|
| 511 |
{
|
| 512 |
"cell_type": "code",
|
| 513 |
-
"execution_count":
|
| 514 |
"metadata": {
|
| 515 |
"execution": {
|
| 516 |
"iopub.execute_input": "2023-01-16T08:00:49.850081Z",
|
|
@@ -520,107 +520,7 @@
|
|
| 520 |
"shell.execute_reply.started": "2023-01-16T08:00:49.850036Z"
|
| 521 |
}
|
| 522 |
},
|
| 523 |
-
"outputs": [
|
| 524 |
-
{
|
| 525 |
-
"data": {
|
| 526 |
-
"text/html": [
|
| 527 |
-
"<div>\n",
|
| 528 |
-
"<style scoped>\n",
|
| 529 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 530 |
-
" vertical-align: middle;\n",
|
| 531 |
-
" }\n",
|
| 532 |
-
"\n",
|
| 533 |
-
" .dataframe tbody tr th {\n",
|
| 534 |
-
" vertical-align: top;\n",
|
| 535 |
-
" }\n",
|
| 536 |
-
"\n",
|
| 537 |
-
" .dataframe thead th {\n",
|
| 538 |
-
" text-align: right;\n",
|
| 539 |
-
" }\n",
|
| 540 |
-
"</style>\n",
|
| 541 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 542 |
-
" <thead>\n",
|
| 543 |
-
" <tr style=\"text-align: right;\">\n",
|
| 544 |
-
" <th></th>\n",
|
| 545 |
-
" <th>id</th>\n",
|
| 546 |
-
" <th>premise</th>\n",
|
| 547 |
-
" <th>hypothesis</th>\n",
|
| 548 |
-
" <th>lang_abv</th>\n",
|
| 549 |
-
" <th>language</th>\n",
|
| 550 |
-
" <th>label</th>\n",
|
| 551 |
-
" </tr>\n",
|
| 552 |
-
" </thead>\n",
|
| 553 |
-
" <tbody>\n",
|
| 554 |
-
" <tr>\n",
|
| 555 |
-
" <th>0</th>\n",
|
| 556 |
-
" <td>5130fd2cb5</td>\n",
|
| 557 |
-
" <td>and these comments were considered in formulat...</td>\n",
|
| 558 |
-
" <td>The rules developed in the interim were put to...</td>\n",
|
| 559 |
-
" <td>en</td>\n",
|
| 560 |
-
" <td>English</td>\n",
|
| 561 |
-
" <td>0</td>\n",
|
| 562 |
-
" </tr>\n",
|
| 563 |
-
" <tr>\n",
|
| 564 |
-
" <th>1</th>\n",
|
| 565 |
-
" <td>5b72532a0b</td>\n",
|
| 566 |
-
" <td>These are issues that we wrestle with in pract...</td>\n",
|
| 567 |
-
" <td>Practice groups are not permitted to work on t...</td>\n",
|
| 568 |
-
" <td>en</td>\n",
|
| 569 |
-
" <td>English</td>\n",
|
| 570 |
-
" <td>2</td>\n",
|
| 571 |
-
" </tr>\n",
|
| 572 |
-
" <tr>\n",
|
| 573 |
-
" <th>2</th>\n",
|
| 574 |
-
" <td>3931fbe82a</td>\n",
|
| 575 |
-
" <td>Des petites choses comme celles-là font une di...</td>\n",
|
| 576 |
-
" <td>J'essayais d'accomplir quelque chose.</td>\n",
|
| 577 |
-
" <td>fr</td>\n",
|
| 578 |
-
" <td>French</td>\n",
|
| 579 |
-
" <td>0</td>\n",
|
| 580 |
-
" </tr>\n",
|
| 581 |
-
" <tr>\n",
|
| 582 |
-
" <th>3</th>\n",
|
| 583 |
-
" <td>5622f0c60b</td>\n",
|
| 584 |
-
" <td>you know they can't really defend themselves l...</td>\n",
|
| 585 |
-
" <td>They can't defend themselves because of their ...</td>\n",
|
| 586 |
-
" <td>en</td>\n",
|
| 587 |
-
" <td>English</td>\n",
|
| 588 |
-
" <td>0</td>\n",
|
| 589 |
-
" </tr>\n",
|
| 590 |
-
" <tr>\n",
|
| 591 |
-
" <th>4</th>\n",
|
| 592 |
-
" <td>86aaa48b45</td>\n",
|
| 593 |
-
" <td>ในการเล่นบทบาทสมมุติก็เช่นกัน โอกาสที่จะได้แสด...</td>\n",
|
| 594 |
-
" <td>เด็กสามารถเห็นได้ว่าชาติพันธุ์แตกต่างกันอย่างไร</td>\n",
|
| 595 |
-
" <td>th</td>\n",
|
| 596 |
-
" <td>Thai</td>\n",
|
| 597 |
-
" <td>1</td>\n",
|
| 598 |
-
" </tr>\n",
|
| 599 |
-
" </tbody>\n",
|
| 600 |
-
"</table>\n",
|
| 601 |
-
"</div>"
|
| 602 |
-
],
|
| 603 |
-
"text/plain": [
|
| 604 |
-
" id premise \\\n",
|
| 605 |
-
"0 5130fd2cb5 and these comments were considered in formulat... \n",
|
| 606 |
-
"1 5b72532a0b These are issues that we wrestle with in pract... \n",
|
| 607 |
-
"2 3931fbe82a Des petites choses comme celles-là font une di... \n",
|
| 608 |
-
"3 5622f0c60b you know they can't really defend themselves l... \n",
|
| 609 |
-
"4 86aaa48b45 ในการเล่นบทบาทสมมุติก็เช่นกัน โอกาสที่จะได้แสด... \n",
|
| 610 |
-
"\n",
|
| 611 |
-
" hypothesis lang_abv language label \n",
|
| 612 |
-
"0 The rules developed in the interim were put to... en English 0 \n",
|
| 613 |
-
"1 Practice groups are not permitted to work on t... en English 2 \n",
|
| 614 |
-
"2 J'essayais d'accomplir quelque chose. fr French 0 \n",
|
| 615 |
-
"3 They can't defend themselves because of their ... en English 0 \n",
|
| 616 |
-
"4 เด็กสามารถเห็นได้ว่าชาติพันธุ์แตกต่างกันอย่างไร th Thai 1 "
|
| 617 |
-
]
|
| 618 |
-
},
|
| 619 |
-
"execution_count": 4,
|
| 620 |
-
"metadata": {},
|
| 621 |
-
"output_type": "execute_result"
|
| 622 |
-
}
|
| 623 |
-
],
|
| 624 |
"source": [
|
| 625 |
"train.head()"
|
| 626 |
]
|
|
@@ -1367,7 +1267,7 @@
|
|
| 1367 |
},
|
| 1368 |
{
|
| 1369 |
"cell_type": "code",
|
| 1370 |
-
"execution_count":
|
| 1371 |
"metadata": {
|
| 1372 |
"execution": {
|
| 1373 |
"iopub.execute_input": "2023-01-16T08:00:50.898473Z",
|
|
@@ -1402,7 +1302,7 @@
|
|
| 1402 |
},
|
| 1403 |
{
|
| 1404 |
"cell_type": "code",
|
| 1405 |
-
"execution_count":
|
| 1406 |
"metadata": {
|
| 1407 |
"execution": {
|
| 1408 |
"iopub.execute_input": "2023-01-16T08:00:53.424542Z",
|
|
@@ -1452,7 +1352,7 @@
|
|
| 1452 |
},
|
| 1453 |
{
|
| 1454 |
"cell_type": "code",
|
| 1455 |
-
"execution_count":
|
| 1456 |
"metadata": {
|
| 1457 |
"execution": {
|
| 1458 |
"iopub.execute_input": "2023-01-16T08:00:53.449365Z",
|
|
@@ -1537,7 +1437,7 @@
|
|
| 1537 |
},
|
| 1538 |
{
|
| 1539 |
"cell_type": "code",
|
| 1540 |
-
"execution_count":
|
| 1541 |
"metadata": {
|
| 1542 |
"execution": {
|
| 1543 |
"iopub.execute_input": "2023-01-16T08:00:53.463417Z",
|
|
@@ -1587,7 +1487,7 @@
|
|
| 1587 |
},
|
| 1588 |
{
|
| 1589 |
"cell_type": "code",
|
| 1590 |
-
"execution_count":
|
| 1591 |
"metadata": {
|
| 1592 |
"execution": {
|
| 1593 |
"iopub.execute_input": "2023-01-16T08:01:06.505373Z",
|
|
@@ -1636,7 +1536,7 @@
|
|
| 1636 |
},
|
| 1637 |
{
|
| 1638 |
"cell_type": "code",
|
| 1639 |
-
"execution_count":
|
| 1640 |
"metadata": {
|
| 1641 |
"execution": {
|
| 1642 |
"iopub.execute_input": "2023-01-16T08:01:06.518092Z",
|
|
@@ -1651,7 +1551,7 @@
|
|
| 1651 |
"name": "stderr",
|
| 1652 |
"output_type": "stream",
|
| 1653 |
"text": [
|
| 1654 |
-
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.
|
| 1655 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 1656 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 1657 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
@@ -1711,7 +1611,7 @@
|
|
| 1711 |
},
|
| 1712 |
{
|
| 1713 |
"cell_type": "code",
|
| 1714 |
-
"execution_count":
|
| 1715 |
"metadata": {
|
| 1716 |
"execution": {
|
| 1717 |
"iopub.execute_input": "2023-01-16T08:01:42.707229Z",
|
|
@@ -1737,7 +1637,7 @@
|
|
| 1737 |
"traceback": [
|
| 1738 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1739 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 1740 |
-
"\u001b[0;32m<ipython-input-
|
| 1741 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/tf_keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 68\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 69\u001b[0m \u001b[0;31m# `tf.debugging.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 70\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 71\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 72\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1742 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\u001b[0m in \u001b[0;36mtf__train_function\u001b[0;34m(iterator)\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0mdo_return\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 15\u001b[0;31m \u001b[0mretval_\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mconverted_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mld\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mstep_function\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mld\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mld\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0miterator\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfscope\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 16\u001b[0m \u001b[0;32mexcept\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 17\u001b[0m \u001b[0mdo_return\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1743 |
"\u001b[0;31mValueError\u001b[0m: in user code:\n\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1398, in train_function *\n return step_function(self, iterator)\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1381, in step_function **\n outputs = model.distribute_strategy.run(run_step, args=(data,))\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1370, in run_step **\n outputs = model.train_step(data)\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1147, in train_step\n y_pred = self(x, training=True)\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/utils/traceback_utils.py\", line 70, in error_handler\n raise e.with_traceback(filtered_tb) from None\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/input_spec.py\", line 298, in assert_input_compatibility\n raise ValueError(\n\n ValueError: Input 0 of layer \"model\" is incompatible with the layer: expected shape=(None, 50), found shape=(None, 172)\n"
|
|
|
|
| 510 |
},
|
| 511 |
{
|
| 512 |
"cell_type": "code",
|
| 513 |
+
"execution_count": null,
|
| 514 |
"metadata": {
|
| 515 |
"execution": {
|
| 516 |
"iopub.execute_input": "2023-01-16T08:00:49.850081Z",
|
|
|
|
| 520 |
"shell.execute_reply.started": "2023-01-16T08:00:49.850036Z"
|
| 521 |
}
|
| 522 |
},
|
| 523 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 524 |
"source": [
|
| 525 |
"train.head()"
|
| 526 |
]
|
|
|
|
| 1267 |
},
|
| 1268 |
{
|
| 1269 |
"cell_type": "code",
|
| 1270 |
+
"execution_count": 4,
|
| 1271 |
"metadata": {
|
| 1272 |
"execution": {
|
| 1273 |
"iopub.execute_input": "2023-01-16T08:00:50.898473Z",
|
|
|
|
| 1302 |
},
|
| 1303 |
{
|
| 1304 |
"cell_type": "code",
|
| 1305 |
+
"execution_count": 5,
|
| 1306 |
"metadata": {
|
| 1307 |
"execution": {
|
| 1308 |
"iopub.execute_input": "2023-01-16T08:00:53.424542Z",
|
|
|
|
| 1352 |
},
|
| 1353 |
{
|
| 1354 |
"cell_type": "code",
|
| 1355 |
+
"execution_count": 6,
|
| 1356 |
"metadata": {
|
| 1357 |
"execution": {
|
| 1358 |
"iopub.execute_input": "2023-01-16T08:00:53.449365Z",
|
|
|
|
| 1437 |
},
|
| 1438 |
{
|
| 1439 |
"cell_type": "code",
|
| 1440 |
+
"execution_count": 7,
|
| 1441 |
"metadata": {
|
| 1442 |
"execution": {
|
| 1443 |
"iopub.execute_input": "2023-01-16T08:00:53.463417Z",
|
|
|
|
| 1487 |
},
|
| 1488 |
{
|
| 1489 |
"cell_type": "code",
|
| 1490 |
+
"execution_count": 8,
|
| 1491 |
"metadata": {
|
| 1492 |
"execution": {
|
| 1493 |
"iopub.execute_input": "2023-01-16T08:01:06.505373Z",
|
|
|
|
| 1536 |
},
|
| 1537 |
{
|
| 1538 |
"cell_type": "code",
|
| 1539 |
+
"execution_count": 9,
|
| 1540 |
"metadata": {
|
| 1541 |
"execution": {
|
| 1542 |
"iopub.execute_input": "2023-01-16T08:01:06.518092Z",
|
|
|
|
| 1551 |
"name": "stderr",
|
| 1552 |
"output_type": "stream",
|
| 1553 |
"text": [
|
| 1554 |
+
"Some weights of the PyTorch model were not used when initializing the TF 2.0 model TFBertModel: ['cls.seq_relationship.bias', 'cls.predictions.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.dense.weight', 'cls.seq_relationship.weight', 'cls.predictions.transform.LayerNorm.bias']\n",
|
| 1555 |
"- This IS expected if you are initializing TFBertModel from a PyTorch model trained on another task or with another architecture (e.g. initializing a TFBertForSequenceClassification model from a BertForPreTraining model).\n",
|
| 1556 |
"- This IS NOT expected if you are initializing TFBertModel from a PyTorch model that you expect to be exactly identical (e.g. initializing a TFBertForSequenceClassification model from a BertForSequenceClassification model).\n",
|
| 1557 |
"All the weights of TFBertModel were initialized from the PyTorch model.\n",
|
|
|
|
| 1611 |
},
|
| 1612 |
{
|
| 1613 |
"cell_type": "code",
|
| 1614 |
+
"execution_count": 10,
|
| 1615 |
"metadata": {
|
| 1616 |
"execution": {
|
| 1617 |
"iopub.execute_input": "2023-01-16T08:01:42.707229Z",
|
|
|
|
| 1637 |
"traceback": [
|
| 1638 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1639 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 1640 |
+
"\u001b[0;32m<ipython-input-10-c8bc5cc527d1>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrain_input\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtrain\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlabel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvalues\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mepochs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mverbose\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbatch_size\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m64\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalidation_split\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m0.2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
| 1641 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/tf_keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 68\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 69\u001b[0m \u001b[0;31m# `tf.debugging.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 70\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 71\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 72\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1642 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\u001b[0m in \u001b[0;36mtf__train_function\u001b[0;34m(iterator)\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0mdo_return\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 15\u001b[0;31m \u001b[0mretval_\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mconverted_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mld\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mstep_function\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mld\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mag__\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mld\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0miterator\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfscope\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 16\u001b[0m \u001b[0;32mexcept\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 17\u001b[0m \u001b[0mdo_return\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1643 |
"\u001b[0;31mValueError\u001b[0m: in user code:\n\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1398, in train_function *\n return step_function(self, iterator)\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1381, in step_function **\n outputs = model.distribute_strategy.run(run_step, args=(data,))\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1370, in run_step **\n outputs = model.train_step(data)\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/training.py\", line 1147, in train_step\n y_pred = self(x, training=True)\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/utils/traceback_utils.py\", line 70, in error_handler\n raise e.with_traceback(filtered_tb) from None\n File \"/usr/local/lib/python3.10/dist-packages/tf_keras/src/engine/input_spec.py\", line 298, in assert_input_compatibility\n raise ValueError(\n\n ValueError: Input 0 of layer \"model\" is incompatible with the layer: expected shape=(None, 50), found shape=(None, 172)\n"
|
benchmark/tensorflow_8/tensorflow_8_fixed.ipynb
CHANGED
|
@@ -253,7 +253,7 @@
|
|
| 253 |
},
|
| 254 |
{
|
| 255 |
"cell_type": "code",
|
| 256 |
-
"execution_count":
|
| 257 |
"metadata": {
|
| 258 |
"execution": {
|
| 259 |
"iopub.execute_input": "2023-05-07T17:38:18.291526Z",
|
|
@@ -263,18 +263,7 @@
|
|
| 263 |
"shell.execute_reply.started": "2023-05-07T17:38:18.291485Z"
|
| 264 |
}
|
| 265 |
},
|
| 266 |
-
"outputs": [
|
| 267 |
-
{
|
| 268 |
-
"data": {
|
| 269 |
-
"text/plain": [
|
| 270 |
-
"13"
|
| 271 |
-
]
|
| 272 |
-
},
|
| 273 |
-
"execution_count": 5,
|
| 274 |
-
"metadata": {},
|
| 275 |
-
"output_type": "execute_result"
|
| 276 |
-
}
|
| 277 |
-
],
|
| 278 |
"source": [
|
| 279 |
"total_images = len(benign_images) + len(malignent_images)\n",
|
| 280 |
"total_images"
|
|
@@ -282,7 +271,7 @@
|
|
| 282 |
},
|
| 283 |
{
|
| 284 |
"cell_type": "code",
|
| 285 |
-
"execution_count":
|
| 286 |
"metadata": {
|
| 287 |
"execution": {
|
| 288 |
"iopub.execute_input": "2023-05-07T17:38:20.340832Z",
|
|
@@ -312,7 +301,7 @@
|
|
| 312 |
},
|
| 313 |
{
|
| 314 |
"cell_type": "code",
|
| 315 |
-
"execution_count":
|
| 316 |
"metadata": {
|
| 317 |
"execution": {
|
| 318 |
"iopub.execute_input": "2023-05-07T02:23:19.263565Z",
|
|
@@ -322,131 +311,14 @@
|
|
| 322 |
"shell.execute_reply.started": "2023-05-07T02:23:19.263525Z"
|
| 323 |
}
|
| 324 |
},
|
| 325 |
-
"outputs": [
|
| 326 |
-
{
|
| 327 |
-
"data": {
|
| 328 |
-
"text/html": [
|
| 329 |
-
"<div>\n",
|
| 330 |
-
"<style scoped>\n",
|
| 331 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 332 |
-
" vertical-align: middle;\n",
|
| 333 |
-
" }\n",
|
| 334 |
-
"\n",
|
| 335 |
-
" .dataframe tbody tr th {\n",
|
| 336 |
-
" vertical-align: top;\n",
|
| 337 |
-
" }\n",
|
| 338 |
-
"\n",
|
| 339 |
-
" .dataframe thead th {\n",
|
| 340 |
-
" text-align: right;\n",
|
| 341 |
-
" }\n",
|
| 342 |
-
"</style>\n",
|
| 343 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 344 |
-
" <thead>\n",
|
| 345 |
-
" <tr style=\"text-align: right;\">\n",
|
| 346 |
-
" <th></th>\n",
|
| 347 |
-
" <th>image</th>\n",
|
| 348 |
-
" <th>target</th>\n",
|
| 349 |
-
" </tr>\n",
|
| 350 |
-
" </thead>\n",
|
| 351 |
-
" <tbody>\n",
|
| 352 |
-
" <tr>\n",
|
| 353 |
-
" <th>0</th>\n",
|
| 354 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 355 |
-
" <td>1</td>\n",
|
| 356 |
-
" </tr>\n",
|
| 357 |
-
" <tr>\n",
|
| 358 |
-
" <th>1</th>\n",
|
| 359 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 360 |
-
" <td>1</td>\n",
|
| 361 |
-
" </tr>\n",
|
| 362 |
-
" <tr>\n",
|
| 363 |
-
" <th>2</th>\n",
|
| 364 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 365 |
-
" <td>1</td>\n",
|
| 366 |
-
" </tr>\n",
|
| 367 |
-
" <tr>\n",
|
| 368 |
-
" <th>3</th>\n",
|
| 369 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 370 |
-
" <td>1</td>\n",
|
| 371 |
-
" </tr>\n",
|
| 372 |
-
" <tr>\n",
|
| 373 |
-
" <th>4</th>\n",
|
| 374 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 375 |
-
" <td>1</td>\n",
|
| 376 |
-
" </tr>\n",
|
| 377 |
-
" <tr>\n",
|
| 378 |
-
" <th>5</th>\n",
|
| 379 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 380 |
-
" <td>1</td>\n",
|
| 381 |
-
" </tr>\n",
|
| 382 |
-
" <tr>\n",
|
| 383 |
-
" <th>6</th>\n",
|
| 384 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-001...</td>\n",
|
| 385 |
-
" <td>0</td>\n",
|
| 386 |
-
" </tr>\n",
|
| 387 |
-
" <tr>\n",
|
| 388 |
-
" <th>7</th>\n",
|
| 389 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-002...</td>\n",
|
| 390 |
-
" <td>0</td>\n",
|
| 391 |
-
" </tr>\n",
|
| 392 |
-
" <tr>\n",
|
| 393 |
-
" <th>8</th>\n",
|
| 394 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-003...</td>\n",
|
| 395 |
-
" <td>0</td>\n",
|
| 396 |
-
" </tr>\n",
|
| 397 |
-
" <tr>\n",
|
| 398 |
-
" <th>9</th>\n",
|
| 399 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-004...</td>\n",
|
| 400 |
-
" <td>0</td>\n",
|
| 401 |
-
" </tr>\n",
|
| 402 |
-
" <tr>\n",
|
| 403 |
-
" <th>10</th>\n",
|
| 404 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-014...</td>\n",
|
| 405 |
-
" <td>0</td>\n",
|
| 406 |
-
" </tr>\n",
|
| 407 |
-
" <tr>\n",
|
| 408 |
-
" <th>11</th>\n",
|
| 409 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-015...</td>\n",
|
| 410 |
-
" <td>0</td>\n",
|
| 411 |
-
" </tr>\n",
|
| 412 |
-
" <tr>\n",
|
| 413 |
-
" <th>12</th>\n",
|
| 414 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-016...</td>\n",
|
| 415 |
-
" <td>0</td>\n",
|
| 416 |
-
" </tr>\n",
|
| 417 |
-
" </tbody>\n",
|
| 418 |
-
"</table>\n",
|
| 419 |
-
"</div>"
|
| 420 |
-
],
|
| 421 |
-
"text/plain": [
|
| 422 |
-
" image target\n",
|
| 423 |
-
"0 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 424 |
-
"1 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 425 |
-
"2 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 426 |
-
"3 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 427 |
-
"4 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 428 |
-
"5 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 429 |
-
"6 data/augmented/benign/SOB_B_TA-14-3411F-40-001... 0\n",
|
| 430 |
-
"7 data/augmented/benign/SOB_B_TA-14-3411F-40-002... 0\n",
|
| 431 |
-
"8 data/augmented/benign/SOB_B_TA-14-3411F-40-003... 0\n",
|
| 432 |
-
"9 data/augmented/benign/SOB_B_TA-14-3411F-40-004... 0\n",
|
| 433 |
-
"10 data/augmented/benign/SOB_B_TA-14-3411F-40-014... 0\n",
|
| 434 |
-
"11 data/augmented/benign/SOB_B_TA-14-3411F-40-015... 0\n",
|
| 435 |
-
"12 data/augmented/benign/SOB_B_TA-14-3411F-40-016... 0"
|
| 436 |
-
]
|
| 437 |
-
},
|
| 438 |
-
"execution_count": 7,
|
| 439 |
-
"metadata": {},
|
| 440 |
-
"output_type": "execute_result"
|
| 441 |
-
}
|
| 442 |
-
],
|
| 443 |
"source": [
|
| 444 |
"data.head(20)"
|
| 445 |
]
|
| 446 |
},
|
| 447 |
{
|
| 448 |
"cell_type": "code",
|
| 449 |
-
"execution_count":
|
| 450 |
"metadata": {
|
| 451 |
"execution": {
|
| 452 |
"iopub.execute_input": "2023-05-07T17:38:30.061910Z",
|
|
@@ -456,18 +328,7 @@
|
|
| 456 |
"shell.execute_reply.started": "2023-05-07T17:38:30.061873Z"
|
| 457 |
}
|
| 458 |
},
|
| 459 |
-
"outputs": [
|
| 460 |
-
{
|
| 461 |
-
"data": {
|
| 462 |
-
"text/plain": [
|
| 463 |
-
"(13, 2)"
|
| 464 |
-
]
|
| 465 |
-
},
|
| 466 |
-
"execution_count": 8,
|
| 467 |
-
"metadata": {},
|
| 468 |
-
"output_type": "execute_result"
|
| 469 |
-
}
|
| 470 |
-
],
|
| 471 |
"source": [
|
| 472 |
"data.shape"
|
| 473 |
]
|
|
@@ -481,7 +342,7 @@
|
|
| 481 |
},
|
| 482 |
{
|
| 483 |
"cell_type": "code",
|
| 484 |
-
"execution_count":
|
| 485 |
"metadata": {
|
| 486 |
"execution": {
|
| 487 |
"iopub.execute_input": "2023-05-07T17:38:32.267778Z",
|
|
@@ -491,21 +352,7 @@
|
|
| 491 |
"shell.execute_reply.started": "2023-05-07T17:38:32.267688Z"
|
| 492 |
}
|
| 493 |
},
|
| 494 |
-
"outputs": [
|
| 495 |
-
{
|
| 496 |
-
"data": {
|
| 497 |
-
"text/plain": [
|
| 498 |
-
"target\n",
|
| 499 |
-
"0 7\n",
|
| 500 |
-
"1 6\n",
|
| 501 |
-
"Name: count, dtype: int64"
|
| 502 |
-
]
|
| 503 |
-
},
|
| 504 |
-
"execution_count": 9,
|
| 505 |
-
"metadata": {},
|
| 506 |
-
"output_type": "execute_result"
|
| 507 |
-
}
|
| 508 |
-
],
|
| 509 |
"source": [
|
| 510 |
"count_data = data[\"target\"].value_counts()\n",
|
| 511 |
"count_data"
|
|
@@ -513,7 +360,7 @@
|
|
| 513 |
},
|
| 514 |
{
|
| 515 |
"cell_type": "code",
|
| 516 |
-
"execution_count":
|
| 517 |
"metadata": {
|
| 518 |
"execution": {
|
| 519 |
"iopub.execute_input": "2023-05-07T17:38:33.907990Z",
|
|
@@ -533,7 +380,7 @@
|
|
| 533 |
"Name: count, dtype: int64"
|
| 534 |
]
|
| 535 |
},
|
| 536 |
-
"execution_count":
|
| 537 |
"metadata": {},
|
| 538 |
"output_type": "execute_result"
|
| 539 |
}
|
|
@@ -548,7 +395,7 @@
|
|
| 548 |
},
|
| 549 |
{
|
| 550 |
"cell_type": "code",
|
| 551 |
-
"execution_count":
|
| 552 |
"metadata": {
|
| 553 |
"execution": {
|
| 554 |
"iopub.execute_input": "2023-05-07T17:38:37.239633Z",
|
|
@@ -558,89 +405,14 @@
|
|
| 558 |
"shell.execute_reply.started": "2023-05-07T17:38:37.239596Z"
|
| 559 |
}
|
| 560 |
},
|
| 561 |
-
"outputs": [
|
| 562 |
-
{
|
| 563 |
-
"data": {
|
| 564 |
-
"text/html": [
|
| 565 |
-
"<div>\n",
|
| 566 |
-
"<style scoped>\n",
|
| 567 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 568 |
-
" vertical-align: middle;\n",
|
| 569 |
-
" }\n",
|
| 570 |
-
"\n",
|
| 571 |
-
" .dataframe tbody tr th {\n",
|
| 572 |
-
" vertical-align: top;\n",
|
| 573 |
-
" }\n",
|
| 574 |
-
"\n",
|
| 575 |
-
" .dataframe thead th {\n",
|
| 576 |
-
" text-align: right;\n",
|
| 577 |
-
" }\n",
|
| 578 |
-
"</style>\n",
|
| 579 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 580 |
-
" <thead>\n",
|
| 581 |
-
" <tr style=\"text-align: right;\">\n",
|
| 582 |
-
" <th></th>\n",
|
| 583 |
-
" <th>image</th>\n",
|
| 584 |
-
" <th>target</th>\n",
|
| 585 |
-
" </tr>\n",
|
| 586 |
-
" </thead>\n",
|
| 587 |
-
" <tbody>\n",
|
| 588 |
-
" <tr>\n",
|
| 589 |
-
" <th>12</th>\n",
|
| 590 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-016...</td>\n",
|
| 591 |
-
" <td>0</td>\n",
|
| 592 |
-
" </tr>\n",
|
| 593 |
-
" <tr>\n",
|
| 594 |
-
" <th>9</th>\n",
|
| 595 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-004...</td>\n",
|
| 596 |
-
" <td>0</td>\n",
|
| 597 |
-
" </tr>\n",
|
| 598 |
-
" <tr>\n",
|
| 599 |
-
" <th>10</th>\n",
|
| 600 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-014...</td>\n",
|
| 601 |
-
" <td>0</td>\n",
|
| 602 |
-
" </tr>\n",
|
| 603 |
-
" <tr>\n",
|
| 604 |
-
" <th>12</th>\n",
|
| 605 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-016...</td>\n",
|
| 606 |
-
" <td>0</td>\n",
|
| 607 |
-
" </tr>\n",
|
| 608 |
-
" <tr>\n",
|
| 609 |
-
" <th>8</th>\n",
|
| 610 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-003...</td>\n",
|
| 611 |
-
" <td>0</td>\n",
|
| 612 |
-
" </tr>\n",
|
| 613 |
-
" <tr>\n",
|
| 614 |
-
" <th>10</th>\n",
|
| 615 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-014...</td>\n",
|
| 616 |
-
" <td>0</td>\n",
|
| 617 |
-
" </tr>\n",
|
| 618 |
-
" </tbody>\n",
|
| 619 |
-
"</table>\n",
|
| 620 |
-
"</div>"
|
| 621 |
-
],
|
| 622 |
-
"text/plain": [
|
| 623 |
-
" image target\n",
|
| 624 |
-
"12 data/augmented/benign/SOB_B_TA-14-3411F-40-016... 0\n",
|
| 625 |
-
"9 data/augmented/benign/SOB_B_TA-14-3411F-40-004... 0\n",
|
| 626 |
-
"10 data/augmented/benign/SOB_B_TA-14-3411F-40-014... 0\n",
|
| 627 |
-
"12 data/augmented/benign/SOB_B_TA-14-3411F-40-016... 0\n",
|
| 628 |
-
"8 data/augmented/benign/SOB_B_TA-14-3411F-40-003... 0\n",
|
| 629 |
-
"10 data/augmented/benign/SOB_B_TA-14-3411F-40-014... 0"
|
| 630 |
-
]
|
| 631 |
-
},
|
| 632 |
-
"execution_count": 11,
|
| 633 |
-
"metadata": {},
|
| 634 |
-
"output_type": "execute_result"
|
| 635 |
-
}
|
| 636 |
-
],
|
| 637 |
"source": [
|
| 638 |
"ben_upsampled.head(10)"
|
| 639 |
]
|
| 640 |
},
|
| 641 |
{
|
| 642 |
"cell_type": "code",
|
| 643 |
-
"execution_count":
|
| 644 |
"metadata": {
|
| 645 |
"execution": {
|
| 646 |
"iopub.execute_input": "2023-05-07T17:38:40.114716Z",
|
|
@@ -650,25 +422,14 @@
|
|
| 650 |
"shell.execute_reply.started": "2023-05-07T17:38:40.114679Z"
|
| 651 |
}
|
| 652 |
},
|
| 653 |
-
"outputs": [
|
| 654 |
-
{
|
| 655 |
-
"data": {
|
| 656 |
-
"text/plain": [
|
| 657 |
-
"(12, 2)"
|
| 658 |
-
]
|
| 659 |
-
},
|
| 660 |
-
"execution_count": 12,
|
| 661 |
-
"metadata": {},
|
| 662 |
-
"output_type": "execute_result"
|
| 663 |
-
}
|
| 664 |
-
],
|
| 665 |
"source": [
|
| 666 |
"up_sampled.shape"
|
| 667 |
]
|
| 668 |
},
|
| 669 |
{
|
| 670 |
"cell_type": "code",
|
| 671 |
-
"execution_count":
|
| 672 |
"metadata": {
|
| 673 |
"execution": {
|
| 674 |
"iopub.execute_input": "2023-05-07T17:38:42.467607Z",
|
|
@@ -683,7 +444,7 @@
|
|
| 683 |
"name": "stderr",
|
| 684 |
"output_type": "stream",
|
| 685 |
"text": [
|
| 686 |
-
"100%|██████████| 12/12 [00:00<00:00,
|
| 687 |
]
|
| 688 |
},
|
| 689 |
{
|
|
@@ -737,7 +498,7 @@
|
|
| 737 |
},
|
| 738 |
{
|
| 739 |
"cell_type": "code",
|
| 740 |
-
"execution_count":
|
| 741 |
"metadata": {
|
| 742 |
"execution": {
|
| 743 |
"iopub.execute_input": "2023-05-07T17:42:50.854746Z",
|
|
@@ -773,7 +534,7 @@
|
|
| 773 |
},
|
| 774 |
{
|
| 775 |
"cell_type": "code",
|
| 776 |
-
"execution_count":
|
| 777 |
"metadata": {
|
| 778 |
"execution": {
|
| 779 |
"iopub.execute_input": "2023-05-07T17:42:53.875510Z",
|
|
@@ -823,7 +584,7 @@
|
|
| 823 |
},
|
| 824 |
{
|
| 825 |
"cell_type": "code",
|
| 826 |
-
"execution_count":
|
| 827 |
"metadata": {
|
| 828 |
"execution": {
|
| 829 |
"iopub.execute_input": "2023-05-07T17:42:56.988986Z",
|
|
@@ -853,7 +614,7 @@
|
|
| 853 |
},
|
| 854 |
{
|
| 855 |
"cell_type": "code",
|
| 856 |
-
"execution_count":
|
| 857 |
"metadata": {
|
| 858 |
"execution": {
|
| 859 |
"iopub.execute_input": "2023-05-07T17:43:00.697909Z",
|
|
@@ -865,7 +626,7 @@
|
|
| 865 |
},
|
| 866 |
"outputs": [],
|
| 867 |
"source": [
|
| 868 |
-
"inputs = Input(shape=(size, size, 1)) # fix the
|
| 869 |
"\n",
|
| 870 |
"# initial layers\n",
|
| 871 |
"x = Conv2D(filters=64, kernel_size=(3, 3), strides=(2, 2), padding='same', use_bias=False)(inputs)\n",
|
|
@@ -925,7 +686,7 @@
|
|
| 925 |
},
|
| 926 |
{
|
| 927 |
"cell_type": "code",
|
| 928 |
-
"execution_count":
|
| 929 |
"metadata": {
|
| 930 |
"execution": {
|
| 931 |
"iopub.execute_input": "2023-05-07T17:43:12.316279Z",
|
|
@@ -942,7 +703,7 @@
|
|
| 942 |
},
|
| 943 |
{
|
| 944 |
"cell_type": "code",
|
| 945 |
-
"execution_count":
|
| 946 |
"metadata": {
|
| 947 |
"execution": {
|
| 948 |
"iopub.execute_input": "2023-05-07T17:43:13.967137Z",
|
|
@@ -967,7 +728,7 @@
|
|
| 967 |
},
|
| 968 |
{
|
| 969 |
"cell_type": "code",
|
| 970 |
-
"execution_count":
|
| 971 |
"metadata": {
|
| 972 |
"execution": {
|
| 973 |
"iopub.execute_input": "2023-05-07T17:43:16.639909Z",
|
|
@@ -994,9 +755,9 @@
|
|
| 994 |
"name": "stdout",
|
| 995 |
"output_type": "stream",
|
| 996 |
"text": [
|
| 997 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 998 |
"Epoch 2/2\n",
|
| 999 |
-
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[
|
| 1000 |
]
|
| 1001 |
}
|
| 1002 |
],
|
|
@@ -1194,7 +955,7 @@
|
|
| 1194 |
},
|
| 1195 |
{
|
| 1196 |
"cell_type": "code",
|
| 1197 |
-
"execution_count":
|
| 1198 |
"metadata": {
|
| 1199 |
"execution": {
|
| 1200 |
"iopub.execute_input": "2023-05-07T07:56:43.638084Z",
|
|
@@ -1215,7 +976,8 @@
|
|
| 1215 |
}
|
| 1216 |
],
|
| 1217 |
"source": [
|
| 1218 |
-
"y_pred =
|
|
|
|
| 1219 |
"acc_test = 0\n",
|
| 1220 |
"\n",
|
| 1221 |
"for i in range(X_val.shape[0]):\n",
|
|
|
|
| 253 |
},
|
| 254 |
{
|
| 255 |
"cell_type": "code",
|
| 256 |
+
"execution_count": null,
|
| 257 |
"metadata": {
|
| 258 |
"execution": {
|
| 259 |
"iopub.execute_input": "2023-05-07T17:38:18.291526Z",
|
|
|
|
| 263 |
"shell.execute_reply.started": "2023-05-07T17:38:18.291485Z"
|
| 264 |
}
|
| 265 |
},
|
| 266 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
"source": [
|
| 268 |
"total_images = len(benign_images) + len(malignent_images)\n",
|
| 269 |
"total_images"
|
|
|
|
| 271 |
},
|
| 272 |
{
|
| 273 |
"cell_type": "code",
|
| 274 |
+
"execution_count": 5,
|
| 275 |
"metadata": {
|
| 276 |
"execution": {
|
| 277 |
"iopub.execute_input": "2023-05-07T17:38:20.340832Z",
|
|
|
|
| 301 |
},
|
| 302 |
{
|
| 303 |
"cell_type": "code",
|
| 304 |
+
"execution_count": null,
|
| 305 |
"metadata": {
|
| 306 |
"execution": {
|
| 307 |
"iopub.execute_input": "2023-05-07T02:23:19.263565Z",
|
|
|
|
| 311 |
"shell.execute_reply.started": "2023-05-07T02:23:19.263525Z"
|
| 312 |
}
|
| 313 |
},
|
| 314 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 315 |
"source": [
|
| 316 |
"data.head(20)"
|
| 317 |
]
|
| 318 |
},
|
| 319 |
{
|
| 320 |
"cell_type": "code",
|
| 321 |
+
"execution_count": null,
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
| 324 |
"iopub.execute_input": "2023-05-07T17:38:30.061910Z",
|
|
|
|
| 328 |
"shell.execute_reply.started": "2023-05-07T17:38:30.061873Z"
|
| 329 |
}
|
| 330 |
},
|
| 331 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
"source": [
|
| 333 |
"data.shape"
|
| 334 |
]
|
|
|
|
| 342 |
},
|
| 343 |
{
|
| 344 |
"cell_type": "code",
|
| 345 |
+
"execution_count": null,
|
| 346 |
"metadata": {
|
| 347 |
"execution": {
|
| 348 |
"iopub.execute_input": "2023-05-07T17:38:32.267778Z",
|
|
|
|
| 352 |
"shell.execute_reply.started": "2023-05-07T17:38:32.267688Z"
|
| 353 |
}
|
| 354 |
},
|
| 355 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 356 |
"source": [
|
| 357 |
"count_data = data[\"target\"].value_counts()\n",
|
| 358 |
"count_data"
|
|
|
|
| 360 |
},
|
| 361 |
{
|
| 362 |
"cell_type": "code",
|
| 363 |
+
"execution_count": 6,
|
| 364 |
"metadata": {
|
| 365 |
"execution": {
|
| 366 |
"iopub.execute_input": "2023-05-07T17:38:33.907990Z",
|
|
|
|
| 380 |
"Name: count, dtype: int64"
|
| 381 |
]
|
| 382 |
},
|
| 383 |
+
"execution_count": 6,
|
| 384 |
"metadata": {},
|
| 385 |
"output_type": "execute_result"
|
| 386 |
}
|
|
|
|
| 395 |
},
|
| 396 |
{
|
| 397 |
"cell_type": "code",
|
| 398 |
+
"execution_count": null,
|
| 399 |
"metadata": {
|
| 400 |
"execution": {
|
| 401 |
"iopub.execute_input": "2023-05-07T17:38:37.239633Z",
|
|
|
|
| 405 |
"shell.execute_reply.started": "2023-05-07T17:38:37.239596Z"
|
| 406 |
}
|
| 407 |
},
|
| 408 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 409 |
"source": [
|
| 410 |
"ben_upsampled.head(10)"
|
| 411 |
]
|
| 412 |
},
|
| 413 |
{
|
| 414 |
"cell_type": "code",
|
| 415 |
+
"execution_count": null,
|
| 416 |
"metadata": {
|
| 417 |
"execution": {
|
| 418 |
"iopub.execute_input": "2023-05-07T17:38:40.114716Z",
|
|
|
|
| 422 |
"shell.execute_reply.started": "2023-05-07T17:38:40.114679Z"
|
| 423 |
}
|
| 424 |
},
|
| 425 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 426 |
"source": [
|
| 427 |
"up_sampled.shape"
|
| 428 |
]
|
| 429 |
},
|
| 430 |
{
|
| 431 |
"cell_type": "code",
|
| 432 |
+
"execution_count": 7,
|
| 433 |
"metadata": {
|
| 434 |
"execution": {
|
| 435 |
"iopub.execute_input": "2023-05-07T17:38:42.467607Z",
|
|
|
|
| 444 |
"name": "stderr",
|
| 445 |
"output_type": "stream",
|
| 446 |
"text": [
|
| 447 |
+
"100%|██████████| 12/12 [00:00<00:00, 71.22it/s]"
|
| 448 |
]
|
| 449 |
},
|
| 450 |
{
|
|
|
|
| 498 |
},
|
| 499 |
{
|
| 500 |
"cell_type": "code",
|
| 501 |
+
"execution_count": 8,
|
| 502 |
"metadata": {
|
| 503 |
"execution": {
|
| 504 |
"iopub.execute_input": "2023-05-07T17:42:50.854746Z",
|
|
|
|
| 534 |
},
|
| 535 |
{
|
| 536 |
"cell_type": "code",
|
| 537 |
+
"execution_count": 9,
|
| 538 |
"metadata": {
|
| 539 |
"execution": {
|
| 540 |
"iopub.execute_input": "2023-05-07T17:42:53.875510Z",
|
|
|
|
| 584 |
},
|
| 585 |
{
|
| 586 |
"cell_type": "code",
|
| 587 |
+
"execution_count": 10,
|
| 588 |
"metadata": {
|
| 589 |
"execution": {
|
| 590 |
"iopub.execute_input": "2023-05-07T17:42:56.988986Z",
|
|
|
|
| 614 |
},
|
| 615 |
{
|
| 616 |
"cell_type": "code",
|
| 617 |
+
"execution_count": 11,
|
| 618 |
"metadata": {
|
| 619 |
"execution": {
|
| 620 |
"iopub.execute_input": "2023-05-07T17:43:00.697909Z",
|
|
|
|
| 626 |
},
|
| 627 |
"outputs": [],
|
| 628 |
"source": [
|
| 629 |
+
"inputs = Input(shape=(size, size, 1)) # fix --- the crash on \"model.fit\"\n",
|
| 630 |
"\n",
|
| 631 |
"# initial layers\n",
|
| 632 |
"x = Conv2D(filters=64, kernel_size=(3, 3), strides=(2, 2), padding='same', use_bias=False)(inputs)\n",
|
|
|
|
| 686 |
},
|
| 687 |
{
|
| 688 |
"cell_type": "code",
|
| 689 |
+
"execution_count": 13,
|
| 690 |
"metadata": {
|
| 691 |
"execution": {
|
| 692 |
"iopub.execute_input": "2023-05-07T17:43:12.316279Z",
|
|
|
|
| 703 |
},
|
| 704 |
{
|
| 705 |
"cell_type": "code",
|
| 706 |
+
"execution_count": 14,
|
| 707 |
"metadata": {
|
| 708 |
"execution": {
|
| 709 |
"iopub.execute_input": "2023-05-07T17:43:13.967137Z",
|
|
|
|
| 728 |
},
|
| 729 |
{
|
| 730 |
"cell_type": "code",
|
| 731 |
+
"execution_count": 15,
|
| 732 |
"metadata": {
|
| 733 |
"execution": {
|
| 734 |
"iopub.execute_input": "2023-05-07T17:43:16.639909Z",
|
|
|
|
| 755 |
"name": "stdout",
|
| 756 |
"output_type": "stream",
|
| 757 |
"text": [
|
| 758 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m40s\u001b[0m 40s/step - accuracy: 0.4444 - loss: 1.0785 - val_accuracy: 0.5000 - val_loss: 0.7002\n",
|
| 759 |
"Epoch 2/2\n",
|
| 760 |
+
"\u001b[1m1/1\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m6s\u001b[0m 6s/step - accuracy: 0.5556 - loss: 35.0594 - val_accuracy: 0.5000 - val_loss: 0.6976\n"
|
| 761 |
]
|
| 762 |
}
|
| 763 |
],
|
|
|
|
| 955 |
},
|
| 956 |
{
|
| 957 |
"cell_type": "code",
|
| 958 |
+
"execution_count": 16,
|
| 959 |
"metadata": {
|
| 960 |
"execution": {
|
| 961 |
"iopub.execute_input": "2023-05-07T07:56:43.638084Z",
|
|
|
|
| 976 |
}
|
| 977 |
],
|
| 978 |
"source": [
|
| 979 |
+
"# y_pred = model.predict_classes(X_val)\n",
|
| 980 |
+
"y_pred = np.argmax(model.predict(X_val),axis=1) # fix --- the crash (original) on \"model.predict_classes\"\n",
|
| 981 |
"acc_test = 0\n",
|
| 982 |
"\n",
|
| 983 |
"for i in range(X_val.shape[0]):\n",
|
benchmark/tensorflow_8/tensorflow_8_reproduced.ipynb
CHANGED
|
@@ -253,7 +253,7 @@
|
|
| 253 |
},
|
| 254 |
{
|
| 255 |
"cell_type": "code",
|
| 256 |
-
"execution_count":
|
| 257 |
"metadata": {
|
| 258 |
"execution": {
|
| 259 |
"iopub.execute_input": "2023-05-07T17:38:18.291526Z",
|
|
@@ -263,18 +263,7 @@
|
|
| 263 |
"shell.execute_reply.started": "2023-05-07T17:38:18.291485Z"
|
| 264 |
}
|
| 265 |
},
|
| 266 |
-
"outputs": [
|
| 267 |
-
{
|
| 268 |
-
"data": {
|
| 269 |
-
"text/plain": [
|
| 270 |
-
"13"
|
| 271 |
-
]
|
| 272 |
-
},
|
| 273 |
-
"execution_count": 5,
|
| 274 |
-
"metadata": {},
|
| 275 |
-
"output_type": "execute_result"
|
| 276 |
-
}
|
| 277 |
-
],
|
| 278 |
"source": [
|
| 279 |
"total_images = len(benign_images) + len(malignent_images)\n",
|
| 280 |
"total_images"
|
|
@@ -282,7 +271,7 @@
|
|
| 282 |
},
|
| 283 |
{
|
| 284 |
"cell_type": "code",
|
| 285 |
-
"execution_count":
|
| 286 |
"metadata": {
|
| 287 |
"execution": {
|
| 288 |
"iopub.execute_input": "2023-05-07T17:38:20.340832Z",
|
|
@@ -312,7 +301,7 @@
|
|
| 312 |
},
|
| 313 |
{
|
| 314 |
"cell_type": "code",
|
| 315 |
-
"execution_count":
|
| 316 |
"metadata": {
|
| 317 |
"execution": {
|
| 318 |
"iopub.execute_input": "2023-05-07T02:23:19.263565Z",
|
|
@@ -322,131 +311,14 @@
|
|
| 322 |
"shell.execute_reply.started": "2023-05-07T02:23:19.263525Z"
|
| 323 |
}
|
| 324 |
},
|
| 325 |
-
"outputs": [
|
| 326 |
-
{
|
| 327 |
-
"data": {
|
| 328 |
-
"text/html": [
|
| 329 |
-
"<div>\n",
|
| 330 |
-
"<style scoped>\n",
|
| 331 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 332 |
-
" vertical-align: middle;\n",
|
| 333 |
-
" }\n",
|
| 334 |
-
"\n",
|
| 335 |
-
" .dataframe tbody tr th {\n",
|
| 336 |
-
" vertical-align: top;\n",
|
| 337 |
-
" }\n",
|
| 338 |
-
"\n",
|
| 339 |
-
" .dataframe thead th {\n",
|
| 340 |
-
" text-align: right;\n",
|
| 341 |
-
" }\n",
|
| 342 |
-
"</style>\n",
|
| 343 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 344 |
-
" <thead>\n",
|
| 345 |
-
" <tr style=\"text-align: right;\">\n",
|
| 346 |
-
" <th></th>\n",
|
| 347 |
-
" <th>image</th>\n",
|
| 348 |
-
" <th>target</th>\n",
|
| 349 |
-
" </tr>\n",
|
| 350 |
-
" </thead>\n",
|
| 351 |
-
" <tbody>\n",
|
| 352 |
-
" <tr>\n",
|
| 353 |
-
" <th>0</th>\n",
|
| 354 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 355 |
-
" <td>1</td>\n",
|
| 356 |
-
" </tr>\n",
|
| 357 |
-
" <tr>\n",
|
| 358 |
-
" <th>1</th>\n",
|
| 359 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 360 |
-
" <td>1</td>\n",
|
| 361 |
-
" </tr>\n",
|
| 362 |
-
" <tr>\n",
|
| 363 |
-
" <th>2</th>\n",
|
| 364 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 365 |
-
" <td>1</td>\n",
|
| 366 |
-
" </tr>\n",
|
| 367 |
-
" <tr>\n",
|
| 368 |
-
" <th>3</th>\n",
|
| 369 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 370 |
-
" <td>1</td>\n",
|
| 371 |
-
" </tr>\n",
|
| 372 |
-
" <tr>\n",
|
| 373 |
-
" <th>4</th>\n",
|
| 374 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 375 |
-
" <td>1</td>\n",
|
| 376 |
-
" </tr>\n",
|
| 377 |
-
" <tr>\n",
|
| 378 |
-
" <th>5</th>\n",
|
| 379 |
-
" <td>data/augmented/malignant/SOB_M_PC-15-190EF-40-...</td>\n",
|
| 380 |
-
" <td>1</td>\n",
|
| 381 |
-
" </tr>\n",
|
| 382 |
-
" <tr>\n",
|
| 383 |
-
" <th>6</th>\n",
|
| 384 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-001...</td>\n",
|
| 385 |
-
" <td>0</td>\n",
|
| 386 |
-
" </tr>\n",
|
| 387 |
-
" <tr>\n",
|
| 388 |
-
" <th>7</th>\n",
|
| 389 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-002...</td>\n",
|
| 390 |
-
" <td>0</td>\n",
|
| 391 |
-
" </tr>\n",
|
| 392 |
-
" <tr>\n",
|
| 393 |
-
" <th>8</th>\n",
|
| 394 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-003...</td>\n",
|
| 395 |
-
" <td>0</td>\n",
|
| 396 |
-
" </tr>\n",
|
| 397 |
-
" <tr>\n",
|
| 398 |
-
" <th>9</th>\n",
|
| 399 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-004...</td>\n",
|
| 400 |
-
" <td>0</td>\n",
|
| 401 |
-
" </tr>\n",
|
| 402 |
-
" <tr>\n",
|
| 403 |
-
" <th>10</th>\n",
|
| 404 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-014...</td>\n",
|
| 405 |
-
" <td>0</td>\n",
|
| 406 |
-
" </tr>\n",
|
| 407 |
-
" <tr>\n",
|
| 408 |
-
" <th>11</th>\n",
|
| 409 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-015...</td>\n",
|
| 410 |
-
" <td>0</td>\n",
|
| 411 |
-
" </tr>\n",
|
| 412 |
-
" <tr>\n",
|
| 413 |
-
" <th>12</th>\n",
|
| 414 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-016...</td>\n",
|
| 415 |
-
" <td>0</td>\n",
|
| 416 |
-
" </tr>\n",
|
| 417 |
-
" </tbody>\n",
|
| 418 |
-
"</table>\n",
|
| 419 |
-
"</div>"
|
| 420 |
-
],
|
| 421 |
-
"text/plain": [
|
| 422 |
-
" image target\n",
|
| 423 |
-
"0 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 424 |
-
"1 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 425 |
-
"2 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 426 |
-
"3 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 427 |
-
"4 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 428 |
-
"5 data/augmented/malignant/SOB_M_PC-15-190EF-40-... 1\n",
|
| 429 |
-
"6 data/augmented/benign/SOB_B_TA-14-3411F-40-001... 0\n",
|
| 430 |
-
"7 data/augmented/benign/SOB_B_TA-14-3411F-40-002... 0\n",
|
| 431 |
-
"8 data/augmented/benign/SOB_B_TA-14-3411F-40-003... 0\n",
|
| 432 |
-
"9 data/augmented/benign/SOB_B_TA-14-3411F-40-004... 0\n",
|
| 433 |
-
"10 data/augmented/benign/SOB_B_TA-14-3411F-40-014... 0\n",
|
| 434 |
-
"11 data/augmented/benign/SOB_B_TA-14-3411F-40-015... 0\n",
|
| 435 |
-
"12 data/augmented/benign/SOB_B_TA-14-3411F-40-016... 0"
|
| 436 |
-
]
|
| 437 |
-
},
|
| 438 |
-
"execution_count": 7,
|
| 439 |
-
"metadata": {},
|
| 440 |
-
"output_type": "execute_result"
|
| 441 |
-
}
|
| 442 |
-
],
|
| 443 |
"source": [
|
| 444 |
"data.head(20)"
|
| 445 |
]
|
| 446 |
},
|
| 447 |
{
|
| 448 |
"cell_type": "code",
|
| 449 |
-
"execution_count":
|
| 450 |
"metadata": {
|
| 451 |
"execution": {
|
| 452 |
"iopub.execute_input": "2023-05-07T17:38:30.061910Z",
|
|
@@ -456,18 +328,7 @@
|
|
| 456 |
"shell.execute_reply.started": "2023-05-07T17:38:30.061873Z"
|
| 457 |
}
|
| 458 |
},
|
| 459 |
-
"outputs": [
|
| 460 |
-
{
|
| 461 |
-
"data": {
|
| 462 |
-
"text/plain": [
|
| 463 |
-
"(13, 2)"
|
| 464 |
-
]
|
| 465 |
-
},
|
| 466 |
-
"execution_count": 8,
|
| 467 |
-
"metadata": {},
|
| 468 |
-
"output_type": "execute_result"
|
| 469 |
-
}
|
| 470 |
-
],
|
| 471 |
"source": [
|
| 472 |
"data.shape"
|
| 473 |
]
|
|
@@ -481,7 +342,7 @@
|
|
| 481 |
},
|
| 482 |
{
|
| 483 |
"cell_type": "code",
|
| 484 |
-
"execution_count":
|
| 485 |
"metadata": {
|
| 486 |
"execution": {
|
| 487 |
"iopub.execute_input": "2023-05-07T17:38:32.267778Z",
|
|
@@ -491,21 +352,7 @@
|
|
| 491 |
"shell.execute_reply.started": "2023-05-07T17:38:32.267688Z"
|
| 492 |
}
|
| 493 |
},
|
| 494 |
-
"outputs": [
|
| 495 |
-
{
|
| 496 |
-
"data": {
|
| 497 |
-
"text/plain": [
|
| 498 |
-
"target\n",
|
| 499 |
-
"0 7\n",
|
| 500 |
-
"1 6\n",
|
| 501 |
-
"Name: count, dtype: int64"
|
| 502 |
-
]
|
| 503 |
-
},
|
| 504 |
-
"execution_count": 9,
|
| 505 |
-
"metadata": {},
|
| 506 |
-
"output_type": "execute_result"
|
| 507 |
-
}
|
| 508 |
-
],
|
| 509 |
"source": [
|
| 510 |
"count_data = data[\"target\"].value_counts()\n",
|
| 511 |
"count_data"
|
|
@@ -513,7 +360,7 @@
|
|
| 513 |
},
|
| 514 |
{
|
| 515 |
"cell_type": "code",
|
| 516 |
-
"execution_count":
|
| 517 |
"metadata": {
|
| 518 |
"execution": {
|
| 519 |
"iopub.execute_input": "2023-05-07T17:38:33.907990Z",
|
|
@@ -533,7 +380,7 @@
|
|
| 533 |
"Name: count, dtype: int64"
|
| 534 |
]
|
| 535 |
},
|
| 536 |
-
"execution_count":
|
| 537 |
"metadata": {},
|
| 538 |
"output_type": "execute_result"
|
| 539 |
}
|
|
@@ -548,7 +395,7 @@
|
|
| 548 |
},
|
| 549 |
{
|
| 550 |
"cell_type": "code",
|
| 551 |
-
"execution_count":
|
| 552 |
"metadata": {
|
| 553 |
"execution": {
|
| 554 |
"iopub.execute_input": "2023-05-07T17:38:37.239633Z",
|
|
@@ -558,89 +405,14 @@
|
|
| 558 |
"shell.execute_reply.started": "2023-05-07T17:38:37.239596Z"
|
| 559 |
}
|
| 560 |
},
|
| 561 |
-
"outputs": [
|
| 562 |
-
{
|
| 563 |
-
"data": {
|
| 564 |
-
"text/html": [
|
| 565 |
-
"<div>\n",
|
| 566 |
-
"<style scoped>\n",
|
| 567 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 568 |
-
" vertical-align: middle;\n",
|
| 569 |
-
" }\n",
|
| 570 |
-
"\n",
|
| 571 |
-
" .dataframe tbody tr th {\n",
|
| 572 |
-
" vertical-align: top;\n",
|
| 573 |
-
" }\n",
|
| 574 |
-
"\n",
|
| 575 |
-
" .dataframe thead th {\n",
|
| 576 |
-
" text-align: right;\n",
|
| 577 |
-
" }\n",
|
| 578 |
-
"</style>\n",
|
| 579 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 580 |
-
" <thead>\n",
|
| 581 |
-
" <tr style=\"text-align: right;\">\n",
|
| 582 |
-
" <th></th>\n",
|
| 583 |
-
" <th>image</th>\n",
|
| 584 |
-
" <th>target</th>\n",
|
| 585 |
-
" </tr>\n",
|
| 586 |
-
" </thead>\n",
|
| 587 |
-
" <tbody>\n",
|
| 588 |
-
" <tr>\n",
|
| 589 |
-
" <th>12</th>\n",
|
| 590 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-016...</td>\n",
|
| 591 |
-
" <td>0</td>\n",
|
| 592 |
-
" </tr>\n",
|
| 593 |
-
" <tr>\n",
|
| 594 |
-
" <th>9</th>\n",
|
| 595 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-004...</td>\n",
|
| 596 |
-
" <td>0</td>\n",
|
| 597 |
-
" </tr>\n",
|
| 598 |
-
" <tr>\n",
|
| 599 |
-
" <th>10</th>\n",
|
| 600 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-014...</td>\n",
|
| 601 |
-
" <td>0</td>\n",
|
| 602 |
-
" </tr>\n",
|
| 603 |
-
" <tr>\n",
|
| 604 |
-
" <th>12</th>\n",
|
| 605 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-016...</td>\n",
|
| 606 |
-
" <td>0</td>\n",
|
| 607 |
-
" </tr>\n",
|
| 608 |
-
" <tr>\n",
|
| 609 |
-
" <th>8</th>\n",
|
| 610 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-003...</td>\n",
|
| 611 |
-
" <td>0</td>\n",
|
| 612 |
-
" </tr>\n",
|
| 613 |
-
" <tr>\n",
|
| 614 |
-
" <th>10</th>\n",
|
| 615 |
-
" <td>data/augmented/benign/SOB_B_TA-14-3411F-40-014...</td>\n",
|
| 616 |
-
" <td>0</td>\n",
|
| 617 |
-
" </tr>\n",
|
| 618 |
-
" </tbody>\n",
|
| 619 |
-
"</table>\n",
|
| 620 |
-
"</div>"
|
| 621 |
-
],
|
| 622 |
-
"text/plain": [
|
| 623 |
-
" image target\n",
|
| 624 |
-
"12 data/augmented/benign/SOB_B_TA-14-3411F-40-016... 0\n",
|
| 625 |
-
"9 data/augmented/benign/SOB_B_TA-14-3411F-40-004... 0\n",
|
| 626 |
-
"10 data/augmented/benign/SOB_B_TA-14-3411F-40-014... 0\n",
|
| 627 |
-
"12 data/augmented/benign/SOB_B_TA-14-3411F-40-016... 0\n",
|
| 628 |
-
"8 data/augmented/benign/SOB_B_TA-14-3411F-40-003... 0\n",
|
| 629 |
-
"10 data/augmented/benign/SOB_B_TA-14-3411F-40-014... 0"
|
| 630 |
-
]
|
| 631 |
-
},
|
| 632 |
-
"execution_count": 11,
|
| 633 |
-
"metadata": {},
|
| 634 |
-
"output_type": "execute_result"
|
| 635 |
-
}
|
| 636 |
-
],
|
| 637 |
"source": [
|
| 638 |
"ben_upsampled.head(10)"
|
| 639 |
]
|
| 640 |
},
|
| 641 |
{
|
| 642 |
"cell_type": "code",
|
| 643 |
-
"execution_count":
|
| 644 |
"metadata": {
|
| 645 |
"execution": {
|
| 646 |
"iopub.execute_input": "2023-05-07T17:38:40.114716Z",
|
|
@@ -650,25 +422,14 @@
|
|
| 650 |
"shell.execute_reply.started": "2023-05-07T17:38:40.114679Z"
|
| 651 |
}
|
| 652 |
},
|
| 653 |
-
"outputs": [
|
| 654 |
-
{
|
| 655 |
-
"data": {
|
| 656 |
-
"text/plain": [
|
| 657 |
-
"(12, 2)"
|
| 658 |
-
]
|
| 659 |
-
},
|
| 660 |
-
"execution_count": 12,
|
| 661 |
-
"metadata": {},
|
| 662 |
-
"output_type": "execute_result"
|
| 663 |
-
}
|
| 664 |
-
],
|
| 665 |
"source": [
|
| 666 |
"up_sampled.shape"
|
| 667 |
]
|
| 668 |
},
|
| 669 |
{
|
| 670 |
"cell_type": "code",
|
| 671 |
-
"execution_count":
|
| 672 |
"metadata": {
|
| 673 |
"execution": {
|
| 674 |
"iopub.execute_input": "2023-05-07T17:38:42.467607Z",
|
|
@@ -683,7 +444,7 @@
|
|
| 683 |
"name": "stderr",
|
| 684 |
"output_type": "stream",
|
| 685 |
"text": [
|
| 686 |
-
"100%|██████████| 12/12 [00:00<00:00,
|
| 687 |
]
|
| 688 |
},
|
| 689 |
{
|
|
@@ -737,7 +498,7 @@
|
|
| 737 |
},
|
| 738 |
{
|
| 739 |
"cell_type": "code",
|
| 740 |
-
"execution_count":
|
| 741 |
"metadata": {
|
| 742 |
"execution": {
|
| 743 |
"iopub.execute_input": "2023-05-07T17:42:50.854746Z",
|
|
@@ -773,7 +534,7 @@
|
|
| 773 |
},
|
| 774 |
{
|
| 775 |
"cell_type": "code",
|
| 776 |
-
"execution_count":
|
| 777 |
"metadata": {
|
| 778 |
"execution": {
|
| 779 |
"iopub.execute_input": "2023-05-07T17:42:53.875510Z",
|
|
@@ -823,7 +584,7 @@
|
|
| 823 |
},
|
| 824 |
{
|
| 825 |
"cell_type": "code",
|
| 826 |
-
"execution_count":
|
| 827 |
"metadata": {
|
| 828 |
"execution": {
|
| 829 |
"iopub.execute_input": "2023-05-07T17:42:56.988986Z",
|
|
@@ -853,7 +614,7 @@
|
|
| 853 |
},
|
| 854 |
{
|
| 855 |
"cell_type": "code",
|
| 856 |
-
"execution_count":
|
| 857 |
"metadata": {
|
| 858 |
"execution": {
|
| 859 |
"iopub.execute_input": "2023-05-07T17:43:00.697909Z",
|
|
@@ -925,7 +686,7 @@
|
|
| 925 |
},
|
| 926 |
{
|
| 927 |
"cell_type": "code",
|
| 928 |
-
"execution_count":
|
| 929 |
"metadata": {
|
| 930 |
"execution": {
|
| 931 |
"iopub.execute_input": "2023-05-07T17:43:12.316279Z",
|
|
@@ -942,7 +703,7 @@
|
|
| 942 |
},
|
| 943 |
{
|
| 944 |
"cell_type": "code",
|
| 945 |
-
"execution_count":
|
| 946 |
"metadata": {
|
| 947 |
"execution": {
|
| 948 |
"iopub.execute_input": "2023-05-07T17:43:13.967137Z",
|
|
@@ -967,7 +728,7 @@
|
|
| 967 |
},
|
| 968 |
{
|
| 969 |
"cell_type": "code",
|
| 970 |
-
"execution_count":
|
| 971 |
"metadata": {
|
| 972 |
"execution": {
|
| 973 |
"iopub.execute_input": "2023-05-07T17:43:16.639909Z",
|
|
@@ -981,6 +742,19 @@
|
|
| 981 |
"text": [
|
| 982 |
"Epoch 1/2\n"
|
| 983 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 984 |
}
|
| 985 |
],
|
| 986 |
"source": [
|
|
@@ -1177,7 +951,7 @@
|
|
| 1177 |
},
|
| 1178 |
{
|
| 1179 |
"cell_type": "code",
|
| 1180 |
-
"execution_count":
|
| 1181 |
"metadata": {
|
| 1182 |
"execution": {
|
| 1183 |
"iopub.execute_input": "2023-05-07T07:56:43.638084Z",
|
|
@@ -1195,7 +969,7 @@
|
|
| 1195 |
"traceback": [
|
| 1196 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1197 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 1198 |
-
"\u001b[0;32m<ipython-input-
|
| 1199 |
"\u001b[0;31mAttributeError\u001b[0m: 'Functional' object has no attribute 'predict_classes'"
|
| 1200 |
]
|
| 1201 |
}
|
|
|
|
| 253 |
},
|
| 254 |
{
|
| 255 |
"cell_type": "code",
|
| 256 |
+
"execution_count": null,
|
| 257 |
"metadata": {
|
| 258 |
"execution": {
|
| 259 |
"iopub.execute_input": "2023-05-07T17:38:18.291526Z",
|
|
|
|
| 263 |
"shell.execute_reply.started": "2023-05-07T17:38:18.291485Z"
|
| 264 |
}
|
| 265 |
},
|
| 266 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
"source": [
|
| 268 |
"total_images = len(benign_images) + len(malignent_images)\n",
|
| 269 |
"total_images"
|
|
|
|
| 271 |
},
|
| 272 |
{
|
| 273 |
"cell_type": "code",
|
| 274 |
+
"execution_count": 5,
|
| 275 |
"metadata": {
|
| 276 |
"execution": {
|
| 277 |
"iopub.execute_input": "2023-05-07T17:38:20.340832Z",
|
|
|
|
| 301 |
},
|
| 302 |
{
|
| 303 |
"cell_type": "code",
|
| 304 |
+
"execution_count": null,
|
| 305 |
"metadata": {
|
| 306 |
"execution": {
|
| 307 |
"iopub.execute_input": "2023-05-07T02:23:19.263565Z",
|
|
|
|
| 311 |
"shell.execute_reply.started": "2023-05-07T02:23:19.263525Z"
|
| 312 |
}
|
| 313 |
},
|
| 314 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 315 |
"source": [
|
| 316 |
"data.head(20)"
|
| 317 |
]
|
| 318 |
},
|
| 319 |
{
|
| 320 |
"cell_type": "code",
|
| 321 |
+
"execution_count": null,
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
| 324 |
"iopub.execute_input": "2023-05-07T17:38:30.061910Z",
|
|
|
|
| 328 |
"shell.execute_reply.started": "2023-05-07T17:38:30.061873Z"
|
| 329 |
}
|
| 330 |
},
|
| 331 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
"source": [
|
| 333 |
"data.shape"
|
| 334 |
]
|
|
|
|
| 342 |
},
|
| 343 |
{
|
| 344 |
"cell_type": "code",
|
| 345 |
+
"execution_count": null,
|
| 346 |
"metadata": {
|
| 347 |
"execution": {
|
| 348 |
"iopub.execute_input": "2023-05-07T17:38:32.267778Z",
|
|
|
|
| 352 |
"shell.execute_reply.started": "2023-05-07T17:38:32.267688Z"
|
| 353 |
}
|
| 354 |
},
|
| 355 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 356 |
"source": [
|
| 357 |
"count_data = data[\"target\"].value_counts()\n",
|
| 358 |
"count_data"
|
|
|
|
| 360 |
},
|
| 361 |
{
|
| 362 |
"cell_type": "code",
|
| 363 |
+
"execution_count": 6,
|
| 364 |
"metadata": {
|
| 365 |
"execution": {
|
| 366 |
"iopub.execute_input": "2023-05-07T17:38:33.907990Z",
|
|
|
|
| 380 |
"Name: count, dtype: int64"
|
| 381 |
]
|
| 382 |
},
|
| 383 |
+
"execution_count": 6,
|
| 384 |
"metadata": {},
|
| 385 |
"output_type": "execute_result"
|
| 386 |
}
|
|
|
|
| 395 |
},
|
| 396 |
{
|
| 397 |
"cell_type": "code",
|
| 398 |
+
"execution_count": null,
|
| 399 |
"metadata": {
|
| 400 |
"execution": {
|
| 401 |
"iopub.execute_input": "2023-05-07T17:38:37.239633Z",
|
|
|
|
| 405 |
"shell.execute_reply.started": "2023-05-07T17:38:37.239596Z"
|
| 406 |
}
|
| 407 |
},
|
| 408 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 409 |
"source": [
|
| 410 |
"ben_upsampled.head(10)"
|
| 411 |
]
|
| 412 |
},
|
| 413 |
{
|
| 414 |
"cell_type": "code",
|
| 415 |
+
"execution_count": null,
|
| 416 |
"metadata": {
|
| 417 |
"execution": {
|
| 418 |
"iopub.execute_input": "2023-05-07T17:38:40.114716Z",
|
|
|
|
| 422 |
"shell.execute_reply.started": "2023-05-07T17:38:40.114679Z"
|
| 423 |
}
|
| 424 |
},
|
| 425 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 426 |
"source": [
|
| 427 |
"up_sampled.shape"
|
| 428 |
]
|
| 429 |
},
|
| 430 |
{
|
| 431 |
"cell_type": "code",
|
| 432 |
+
"execution_count": 7,
|
| 433 |
"metadata": {
|
| 434 |
"execution": {
|
| 435 |
"iopub.execute_input": "2023-05-07T17:38:42.467607Z",
|
|
|
|
| 444 |
"name": "stderr",
|
| 445 |
"output_type": "stream",
|
| 446 |
"text": [
|
| 447 |
+
"100%|██████████| 12/12 [00:00<00:00, 38.96it/s]"
|
| 448 |
]
|
| 449 |
},
|
| 450 |
{
|
|
|
|
| 498 |
},
|
| 499 |
{
|
| 500 |
"cell_type": "code",
|
| 501 |
+
"execution_count": 8,
|
| 502 |
"metadata": {
|
| 503 |
"execution": {
|
| 504 |
"iopub.execute_input": "2023-05-07T17:42:50.854746Z",
|
|
|
|
| 534 |
},
|
| 535 |
{
|
| 536 |
"cell_type": "code",
|
| 537 |
+
"execution_count": 9,
|
| 538 |
"metadata": {
|
| 539 |
"execution": {
|
| 540 |
"iopub.execute_input": "2023-05-07T17:42:53.875510Z",
|
|
|
|
| 584 |
},
|
| 585 |
{
|
| 586 |
"cell_type": "code",
|
| 587 |
+
"execution_count": 10,
|
| 588 |
"metadata": {
|
| 589 |
"execution": {
|
| 590 |
"iopub.execute_input": "2023-05-07T17:42:56.988986Z",
|
|
|
|
| 614 |
},
|
| 615 |
{
|
| 616 |
"cell_type": "code",
|
| 617 |
+
"execution_count": 11,
|
| 618 |
"metadata": {
|
| 619 |
"execution": {
|
| 620 |
"iopub.execute_input": "2023-05-07T17:43:00.697909Z",
|
|
|
|
| 686 |
},
|
| 687 |
{
|
| 688 |
"cell_type": "code",
|
| 689 |
+
"execution_count": 13,
|
| 690 |
"metadata": {
|
| 691 |
"execution": {
|
| 692 |
"iopub.execute_input": "2023-05-07T17:43:12.316279Z",
|
|
|
|
| 703 |
},
|
| 704 |
{
|
| 705 |
"cell_type": "code",
|
| 706 |
+
"execution_count": 14,
|
| 707 |
"metadata": {
|
| 708 |
"execution": {
|
| 709 |
"iopub.execute_input": "2023-05-07T17:43:13.967137Z",
|
|
|
|
| 728 |
},
|
| 729 |
{
|
| 730 |
"cell_type": "code",
|
| 731 |
+
"execution_count": 15,
|
| 732 |
"metadata": {
|
| 733 |
"execution": {
|
| 734 |
"iopub.execute_input": "2023-05-07T17:43:16.639909Z",
|
|
|
|
| 742 |
"text": [
|
| 743 |
"Epoch 1/2\n"
|
| 744 |
]
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"ename": "ValueError",
|
| 748 |
+
"evalue": "Exception encountered when calling Functional.call().\n\n\u001b[1mInput 0 of layer \"conv2d\" is incompatible with the layer: expected axis -1 of input shape to have value 3, but received input with shape (None, 75, 75, 1)\u001b[0m\n\nArguments received by Functional.call():\n • inputs=tf.Tensor(shape=(None, 75, 75, 1), dtype=float32)\n • training=True\n • mask=None",
|
| 749 |
+
"output_type": "error",
|
| 750 |
+
"traceback": [
|
| 751 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 752 |
+
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 753 |
+
"\u001b[0;32m<ipython-input-15-dcd0a9b85680>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m history = model.fit(data_gen.flow(X_train,Y_train,\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mbatch_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m64\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mseed\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m27\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m shuffle=True),\n\u001b[1;32m 5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 754 |
+
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py\u001b[0m in \u001b[0;36merror_handler\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 120\u001b[0m \u001b[0;31m# To get the full stack trace, call:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 121\u001b[0m \u001b[0;31m# `keras.config.disable_traceback_filtering()`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 122\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfiltered_tb\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 123\u001b[0m \u001b[0;32mfinally\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mfiltered_tb\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 755 |
+
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/layers/input_spec.py\u001b[0m in \u001b[0;36massert_input_compatibility\u001b[0;34m(input_spec, inputs, layer_name)\u001b[0m\n\u001b[1;32m 225\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 226\u001b[0m }:\n\u001b[0;32m--> 227\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 228\u001b[0m \u001b[0;34mf'Input {input_index} of layer \"{layer_name}\" is '\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 229\u001b[0m \u001b[0;34mf\"incompatible with the layer: expected axis {axis} \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 756 |
+
"\u001b[0;31mValueError\u001b[0m: Exception encountered when calling Functional.call().\n\n\u001b[1mInput 0 of layer \"conv2d\" is incompatible with the layer: expected axis -1 of input shape to have value 3, but received input with shape (None, 75, 75, 1)\u001b[0m\n\nArguments received by Functional.call():\n • inputs=tf.Tensor(shape=(None, 75, 75, 1), dtype=float32)\n • training=True\n • mask=None"
|
| 757 |
+
]
|
| 758 |
}
|
| 759 |
],
|
| 760 |
"source": [
|
|
|
|
| 951 |
},
|
| 952 |
{
|
| 953 |
"cell_type": "code",
|
| 954 |
+
"execution_count": 16,
|
| 955 |
"metadata": {
|
| 956 |
"execution": {
|
| 957 |
"iopub.execute_input": "2023-05-07T07:56:43.638084Z",
|
|
|
|
| 969 |
"traceback": [
|
| 970 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 971 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 972 |
+
"\u001b[0;32m<ipython-input-16-0c87e05d7114>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0my_pred\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpredict_classes\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX_val\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0macc_test\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX_val\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshape\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mif\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_pred\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0my_val\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 973 |
"\u001b[0;31mAttributeError\u001b[0m: 'Functional' object has no attribute 'predict_classes'"
|
| 974 |
]
|
| 975 |
}
|
benchmark/tensorflow_9/tensorflow_9_fixed.ipynb
CHANGED
|
@@ -85,43 +85,43 @@
|
|
| 85 |
" </thead>\n",
|
| 86 |
" <tbody>\n",
|
| 87 |
" <tr>\n",
|
| 88 |
-
" <th>
|
| 89 |
-
" <td>
|
| 90 |
-
" <td>
|
| 91 |
-
" <td>
|
| 92 |
-
" <td>@
|
| 93 |
" <td>0</td>\n",
|
| 94 |
" </tr>\n",
|
| 95 |
" <tr>\n",
|
| 96 |
-
" <th>
|
| 97 |
-
" <td>
|
| 98 |
-
" <td>
|
| 99 |
-
" <td></td>\n",
|
| 100 |
-
" <td>
|
| 101 |
-
" <td>
|
| 102 |
" </tr>\n",
|
| 103 |
" <tr>\n",
|
| 104 |
-
" <th>
|
| 105 |
-
" <td>
|
| 106 |
-
" <td>
|
| 107 |
-
" <td>
|
| 108 |
-
" <td>
|
| 109 |
" <td>1</td>\n",
|
| 110 |
" </tr>\n",
|
| 111 |
" <tr>\n",
|
| 112 |
-
" <th>
|
| 113 |
-
" <td>
|
| 114 |
-
" <td>
|
| 115 |
-
" <td>
|
| 116 |
-
" <td>
|
| 117 |
" <td>0</td>\n",
|
| 118 |
" </tr>\n",
|
| 119 |
" <tr>\n",
|
| 120 |
-
" <th>
|
| 121 |
-
" <td>
|
| 122 |
-
" <td>
|
| 123 |
-
" <td>
|
| 124 |
-
" <td>
|
| 125 |
" <td>1</td>\n",
|
| 126 |
" </tr>\n",
|
| 127 |
" </tbody>\n",
|
|
@@ -129,19 +129,19 @@
|
|
| 129 |
"</div>"
|
| 130 |
],
|
| 131 |
"text/plain": [
|
| 132 |
-
"
|
| 133 |
-
"
|
| 134 |
-
"
|
| 135 |
-
"
|
| 136 |
-
"
|
| 137 |
-
"
|
| 138 |
"\n",
|
| 139 |
" text target \n",
|
| 140 |
-
"
|
| 141 |
-
"
|
| 142 |
-
"
|
| 143 |
-
"
|
| 144 |
-
"
|
| 145 |
]
|
| 146 |
},
|
| 147 |
"execution_count": 2,
|
|
@@ -533,7 +533,7 @@
|
|
| 533 |
},
|
| 534 |
{
|
| 535 |
"cell_type": "code",
|
| 536 |
-
"execution_count":
|
| 537 |
"metadata": {
|
| 538 |
"execution": {
|
| 539 |
"iopub.execute_input": "2023-07-10T04:36:05.785406Z",
|
|
@@ -624,7 +624,7 @@
|
|
| 624 |
},
|
| 625 |
{
|
| 626 |
"cell_type": "code",
|
| 627 |
-
"execution_count":
|
| 628 |
"metadata": {
|
| 629 |
"execution": {
|
| 630 |
"iopub.execute_input": "2023-07-10T04:36:05.890142Z",
|
|
@@ -639,9 +639,9 @@
|
|
| 639 |
"name": "stderr",
|
| 640 |
"output_type": "stream",
|
| 641 |
"text": [
|
| 642 |
-
"<ipython-input-
|
| 643 |
" input_ids = torch.tensor(bert_input.input_ids)\n",
|
| 644 |
-
"<ipython-input-
|
| 645 |
" attention_mask = torch.tensor(bert_input.attention_mask)\n"
|
| 646 |
]
|
| 647 |
},
|
|
@@ -666,7 +666,7 @@
|
|
| 666 |
},
|
| 667 |
{
|
| 668 |
"cell_type": "code",
|
| 669 |
-
"execution_count":
|
| 670 |
"metadata": {
|
| 671 |
"execution": {
|
| 672 |
"iopub.execute_input": "2023-07-10T04:36:54.738639Z",
|
|
@@ -714,7 +714,7 @@
|
|
| 714 |
"================================================================================"
|
| 715 |
]
|
| 716 |
},
|
| 717 |
-
"execution_count":
|
| 718 |
"metadata": {},
|
| 719 |
"output_type": "execute_result"
|
| 720 |
}
|
|
|
|
| 85 |
" </thead>\n",
|
| 86 |
" <tbody>\n",
|
| 87 |
" <tr>\n",
|
| 88 |
+
" <th>2027</th>\n",
|
| 89 |
+
" <td>2910</td>\n",
|
| 90 |
+
" <td>danger</td>\n",
|
| 91 |
+
" <td>Worldwide</td>\n",
|
| 92 |
+
" <td>@DyannBridges @yeshayad Check out this #rockin...</td>\n",
|
| 93 |
" <td>0</td>\n",
|
| 94 |
" </tr>\n",
|
| 95 |
" <tr>\n",
|
| 96 |
+
" <th>2784</th>\n",
|
| 97 |
+
" <td>4005</td>\n",
|
| 98 |
+
" <td>disaster</td>\n",
|
| 99 |
+
" <td>NaN</td>\n",
|
| 100 |
+
" <td>@LovelyLikeLaura I can see why one of your fav...</td>\n",
|
| 101 |
+
" <td>0</td>\n",
|
| 102 |
" </tr>\n",
|
| 103 |
" <tr>\n",
|
| 104 |
+
" <th>4264</th>\n",
|
| 105 |
+
" <td>6058</td>\n",
|
| 106 |
+
" <td>heat%20wave</td>\n",
|
| 107 |
+
" <td>State College, PA</td>\n",
|
| 108 |
+
" <td>Must Read Forecast! Longest Streak of Triple-D...</td>\n",
|
| 109 |
" <td>1</td>\n",
|
| 110 |
" </tr>\n",
|
| 111 |
" <tr>\n",
|
| 112 |
+
" <th>1676</th>\n",
|
| 113 |
+
" <td>2419</td>\n",
|
| 114 |
+
" <td>collide</td>\n",
|
| 115 |
+
" <td>Fort Smith, AR</td>\n",
|
| 116 |
+
" <td>Students COLLIDE this Fri/Sat - register http:...</td>\n",
|
| 117 |
" <td>0</td>\n",
|
| 118 |
" </tr>\n",
|
| 119 |
" <tr>\n",
|
| 120 |
+
" <th>6598</th>\n",
|
| 121 |
+
" <td>9450</td>\n",
|
| 122 |
+
" <td>terrorism</td>\n",
|
| 123 |
+
" <td>USA</td>\n",
|
| 124 |
+
" <td>Preacher faces UK terrorism charges http://t.c...</td>\n",
|
| 125 |
" <td>1</td>\n",
|
| 126 |
" </tr>\n",
|
| 127 |
" </tbody>\n",
|
|
|
|
| 129 |
"</div>"
|
| 130 |
],
|
| 131 |
"text/plain": [
|
| 132 |
+
" id keyword location \\\n",
|
| 133 |
+
"2027 2910 danger Worldwide \n",
|
| 134 |
+
"2784 4005 disaster NaN \n",
|
| 135 |
+
"4264 6058 heat%20wave State College, PA \n",
|
| 136 |
+
"1676 2419 collide Fort Smith, AR \n",
|
| 137 |
+
"6598 9450 terrorism USA \n",
|
| 138 |
"\n",
|
| 139 |
" text target \n",
|
| 140 |
+
"2027 @DyannBridges @yeshayad Check out this #rockin... 0 \n",
|
| 141 |
+
"2784 @LovelyLikeLaura I can see why one of your fav... 0 \n",
|
| 142 |
+
"4264 Must Read Forecast! Longest Streak of Triple-D... 1 \n",
|
| 143 |
+
"1676 Students COLLIDE this Fri/Sat - register http:... 0 \n",
|
| 144 |
+
"6598 Preacher faces UK terrorism charges http://t.c... 1 "
|
| 145 |
]
|
| 146 |
},
|
| 147 |
"execution_count": 2,
|
|
|
|
| 533 |
},
|
| 534 |
{
|
| 535 |
"cell_type": "code",
|
| 536 |
+
"execution_count": 11,
|
| 537 |
"metadata": {
|
| 538 |
"execution": {
|
| 539 |
"iopub.execute_input": "2023-07-10T04:36:05.785406Z",
|
|
|
|
| 624 |
},
|
| 625 |
{
|
| 626 |
"cell_type": "code",
|
| 627 |
+
"execution_count": 12,
|
| 628 |
"metadata": {
|
| 629 |
"execution": {
|
| 630 |
"iopub.execute_input": "2023-07-10T04:36:05.890142Z",
|
|
|
|
| 639 |
"name": "stderr",
|
| 640 |
"output_type": "stream",
|
| 641 |
"text": [
|
| 642 |
+
"<ipython-input-12-243bff371cf0>:1: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n",
|
| 643 |
" input_ids = torch.tensor(bert_input.input_ids)\n",
|
| 644 |
+
"<ipython-input-12-243bff371cf0>:2: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n",
|
| 645 |
" attention_mask = torch.tensor(bert_input.attention_mask)\n"
|
| 646 |
]
|
| 647 |
},
|
|
|
|
| 666 |
},
|
| 667 |
{
|
| 668 |
"cell_type": "code",
|
| 669 |
+
"execution_count": 13,
|
| 670 |
"metadata": {
|
| 671 |
"execution": {
|
| 672 |
"iopub.execute_input": "2023-07-10T04:36:54.738639Z",
|
|
|
|
| 714 |
"================================================================================"
|
| 715 |
]
|
| 716 |
},
|
| 717 |
+
"execution_count": 13,
|
| 718 |
"metadata": {},
|
| 719 |
"output_type": "execute_result"
|
| 720 |
}
|
benchmark/tensorflow_9/tensorflow_9_reproduced.ipynb
CHANGED
|
@@ -85,63 +85,63 @@
|
|
| 85 |
" </thead>\n",
|
| 86 |
" <tbody>\n",
|
| 87 |
" <tr>\n",
|
| 88 |
-
" <th>
|
| 89 |
-
" <td>
|
| 90 |
-
" <td>
|
| 91 |
" <td>USA</td>\n",
|
| 92 |
-
" <td>
|
| 93 |
-
" <td>0</td>\n",
|
| 94 |
-
" </tr>\n",
|
| 95 |
-
" <tr>\n",
|
| 96 |
-
" <th>6771</th>\n",
|
| 97 |
-
" <td>9703</td>\n",
|
| 98 |
-
" <td>tornado</td>\n",
|
| 99 |
-
" <td></td>\n",
|
| 100 |
-
" <td>Maybe that's what happens when a tornado meets...</td>\n",
|
| 101 |
" <td>1</td>\n",
|
| 102 |
" </tr>\n",
|
| 103 |
" <tr>\n",
|
| 104 |
-
" <th>
|
| 105 |
-
" <td>
|
| 106 |
-
" <td>
|
| 107 |
" <td>NaN</td>\n",
|
| 108 |
-
" <td>
|
| 109 |
-
" <td>
|
| 110 |
" </tr>\n",
|
| 111 |
" <tr>\n",
|
| 112 |
-
" <th>
|
| 113 |
-
" <td>
|
| 114 |
-
" <td>
|
| 115 |
-
" <td>
|
| 116 |
-
" <td>
|
| 117 |
" <td>0</td>\n",
|
| 118 |
" </tr>\n",
|
| 119 |
" <tr>\n",
|
| 120 |
-
" <th>
|
| 121 |
-
" <td>
|
| 122 |
-
" <td>
|
| 123 |
-
" <td>
|
| 124 |
-
" <td>
|
| 125 |
" <td>1</td>\n",
|
| 126 |
" </tr>\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
" </tbody>\n",
|
| 128 |
"</table>\n",
|
| 129 |
"</div>"
|
| 130 |
],
|
| 131 |
"text/plain": [
|
| 132 |
-
"
|
| 133 |
-
"
|
| 134 |
-
"
|
| 135 |
-
"
|
| 136 |
-
"
|
| 137 |
-
"
|
| 138 |
"\n",
|
| 139 |
" text target \n",
|
| 140 |
-
"
|
| 141 |
-
"
|
| 142 |
-
"
|
| 143 |
-
"
|
| 144 |
-
"
|
| 145 |
]
|
| 146 |
},
|
| 147 |
"execution_count": 2,
|
|
@@ -533,7 +533,7 @@
|
|
| 533 |
},
|
| 534 |
{
|
| 535 |
"cell_type": "code",
|
| 536 |
-
"execution_count":
|
| 537 |
"metadata": {
|
| 538 |
"execution": {
|
| 539 |
"iopub.execute_input": "2023-07-10T04:36:05.785406Z",
|
|
@@ -624,7 +624,7 @@
|
|
| 624 |
},
|
| 625 |
{
|
| 626 |
"cell_type": "code",
|
| 627 |
-
"execution_count":
|
| 628 |
"metadata": {
|
| 629 |
"execution": {
|
| 630 |
"iopub.execute_input": "2023-07-10T04:36:05.890142Z",
|
|
@@ -639,9 +639,9 @@
|
|
| 639 |
"name": "stderr",
|
| 640 |
"output_type": "stream",
|
| 641 |
"text": [
|
| 642 |
-
"<ipython-input-
|
| 643 |
" input_ids = torch.tensor(bert_input.input_ids)\n",
|
| 644 |
-
"<ipython-input-
|
| 645 |
" attention_mask = torch.tensor(bert_input.attention_mask)\n"
|
| 646 |
]
|
| 647 |
},
|
|
@@ -666,7 +666,7 @@
|
|
| 666 |
},
|
| 667 |
{
|
| 668 |
"cell_type": "code",
|
| 669 |
-
"execution_count":
|
| 670 |
"metadata": {
|
| 671 |
"execution": {
|
| 672 |
"iopub.execute_input": "2023-07-10T04:36:54.738639Z",
|
|
@@ -684,7 +684,7 @@
|
|
| 684 |
"traceback": [
|
| 685 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 686 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 687 |
-
"\u001b[0;32m<ipython-input-
|
| 688 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/model_visualization.py\u001b[0m in \u001b[0;36mplot_model\u001b[0;34m(model, to_file, show_shapes, show_dtype, show_layer_names, rankdir, expand_nested, dpi, show_layer_activations, show_trainable, **kwargs)\u001b[0m\n\u001b[1;32m 410\u001b[0m \"\"\"\n\u001b[1;32m 411\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 412\u001b[0;31m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbuilt\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 413\u001b[0m raise ValueError(\n\u001b[1;32m 414\u001b[0m \u001b[0;34m\"This model has not yet been built. \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 689 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m__getattr__\u001b[0;34m(self, name)\u001b[0m\n\u001b[1;32m 1727\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mname\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mmodules\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1728\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mmodules\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mname\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1729\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mAttributeError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34mf\"'{type(self).__name__}' object has no attribute '{name}'\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1730\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1731\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__setattr__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mUnion\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mTensor\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'Module'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 690 |
"\u001b[0;31mAttributeError\u001b[0m: 'BertModel' object has no attribute 'built'"
|
|
|
|
| 85 |
" </thead>\n",
|
| 86 |
" <tbody>\n",
|
| 87 |
" <tr>\n",
|
| 88 |
+
" <th>556</th>\n",
|
| 89 |
+
" <td>805</td>\n",
|
| 90 |
+
" <td>battle</td>\n",
|
| 91 |
" <td>USA</td>\n",
|
| 92 |
+
" <td>Black Eye 9: A space battle occurred at Star M...</td>\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
" <td>1</td>\n",
|
| 94 |
" </tr>\n",
|
| 95 |
" <tr>\n",
|
| 96 |
+
" <th>244</th>\n",
|
| 97 |
+
" <td>347</td>\n",
|
| 98 |
+
" <td>annihilation</td>\n",
|
| 99 |
" <td>NaN</td>\n",
|
| 100 |
+
" <td>@POTUS Maybe we should call Israel and tell th...</td>\n",
|
| 101 |
+
" <td>0</td>\n",
|
| 102 |
" </tr>\n",
|
| 103 |
" <tr>\n",
|
| 104 |
+
" <th>4655</th>\n",
|
| 105 |
+
" <td>6619</td>\n",
|
| 106 |
+
" <td>inundated</td>\n",
|
| 107 |
+
" <td>Toronto, ON, Canada</td>\n",
|
| 108 |
+
" <td>inundated with Westeros Between Storm of Sword...</td>\n",
|
| 109 |
" <td>0</td>\n",
|
| 110 |
" </tr>\n",
|
| 111 |
" <tr>\n",
|
| 112 |
+
" <th>2453</th>\n",
|
| 113 |
+
" <td>3521</td>\n",
|
| 114 |
+
" <td>derailment</td>\n",
|
| 115 |
+
" <td>NaN</td>\n",
|
| 116 |
+
" <td>@greateranglia I know the cow incident not yr ...</td>\n",
|
| 117 |
" <td>1</td>\n",
|
| 118 |
" </tr>\n",
|
| 119 |
+
" <tr>\n",
|
| 120 |
+
" <th>6603</th>\n",
|
| 121 |
+
" <td>9455</td>\n",
|
| 122 |
+
" <td>terrorism</td>\n",
|
| 123 |
+
" <td>Earth 0</td>\n",
|
| 124 |
+
" <td>OMEGA MEN Writer Explores Terrorism Religion I...</td>\n",
|
| 125 |
+
" <td>0</td>\n",
|
| 126 |
+
" </tr>\n",
|
| 127 |
" </tbody>\n",
|
| 128 |
"</table>\n",
|
| 129 |
"</div>"
|
| 130 |
],
|
| 131 |
"text/plain": [
|
| 132 |
+
" id keyword location \\\n",
|
| 133 |
+
"556 805 battle USA \n",
|
| 134 |
+
"244 347 annihilation NaN \n",
|
| 135 |
+
"4655 6619 inundated Toronto, ON, Canada \n",
|
| 136 |
+
"2453 3521 derailment NaN \n",
|
| 137 |
+
"6603 9455 terrorism Earth 0 \n",
|
| 138 |
"\n",
|
| 139 |
" text target \n",
|
| 140 |
+
"556 Black Eye 9: A space battle occurred at Star M... 1 \n",
|
| 141 |
+
"244 @POTUS Maybe we should call Israel and tell th... 0 \n",
|
| 142 |
+
"4655 inundated with Westeros Between Storm of Sword... 0 \n",
|
| 143 |
+
"2453 @greateranglia I know the cow incident not yr ... 1 \n",
|
| 144 |
+
"6603 OMEGA MEN Writer Explores Terrorism Religion I... 0 "
|
| 145 |
]
|
| 146 |
},
|
| 147 |
"execution_count": 2,
|
|
|
|
| 533 |
},
|
| 534 |
{
|
| 535 |
"cell_type": "code",
|
| 536 |
+
"execution_count": 11,
|
| 537 |
"metadata": {
|
| 538 |
"execution": {
|
| 539 |
"iopub.execute_input": "2023-07-10T04:36:05.785406Z",
|
|
|
|
| 624 |
},
|
| 625 |
{
|
| 626 |
"cell_type": "code",
|
| 627 |
+
"execution_count": 12,
|
| 628 |
"metadata": {
|
| 629 |
"execution": {
|
| 630 |
"iopub.execute_input": "2023-07-10T04:36:05.890142Z",
|
|
|
|
| 639 |
"name": "stderr",
|
| 640 |
"output_type": "stream",
|
| 641 |
"text": [
|
| 642 |
+
"<ipython-input-12-243bff371cf0>:1: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n",
|
| 643 |
" input_ids = torch.tensor(bert_input.input_ids)\n",
|
| 644 |
+
"<ipython-input-12-243bff371cf0>:2: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n",
|
| 645 |
" attention_mask = torch.tensor(bert_input.attention_mask)\n"
|
| 646 |
]
|
| 647 |
},
|
|
|
|
| 666 |
},
|
| 667 |
{
|
| 668 |
"cell_type": "code",
|
| 669 |
+
"execution_count": 13,
|
| 670 |
"metadata": {
|
| 671 |
"execution": {
|
| 672 |
"iopub.execute_input": "2023-07-10T04:36:54.738639Z",
|
|
|
|
| 684 |
"traceback": [
|
| 685 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 686 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 687 |
+
"\u001b[0;32m<ipython-input-13-a99874e77d9c>\u001b[0m in \u001b[0;36m<cell line: 2>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mtensorflow\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mtf\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mtf\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mkeras\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mutils\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mplot_model\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mbert_model\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
| 688 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/keras/src/utils/model_visualization.py\u001b[0m in \u001b[0;36mplot_model\u001b[0;34m(model, to_file, show_shapes, show_dtype, show_layer_names, rankdir, expand_nested, dpi, show_layer_activations, show_trainable, **kwargs)\u001b[0m\n\u001b[1;32m 410\u001b[0m \"\"\"\n\u001b[1;32m 411\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 412\u001b[0;31m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbuilt\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 413\u001b[0m raise ValueError(\n\u001b[1;32m 414\u001b[0m \u001b[0;34m\"This model has not yet been built. \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 689 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m__getattr__\u001b[0;34m(self, name)\u001b[0m\n\u001b[1;32m 1727\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mname\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mmodules\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1728\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mmodules\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mname\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1729\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mAttributeError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34mf\"'{type(self).__name__}' object has no attribute '{name}'\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1730\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1731\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__setattr__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mUnion\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mTensor\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'Module'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 690 |
"\u001b[0;31mAttributeError\u001b[0m: 'BertModel' object has no attribute 'built'"
|