Datasets:
ArXiv:
DOI:
License:
Yiran Wang commited on
Commit ·
f5ec8a8
1
Parent(s): 21a760e
polish sklearn buggy and fixed versions
Browse files- benchmark/sklearn_10/sklearn_10_fixed.ipynb +34 -588
- benchmark/sklearn_10/sklearn_10_reproduced.ipynb +29 -583
- benchmark/sklearn_11/sklearn_11_fixed.ipynb +0 -0
- benchmark/sklearn_11/sklearn_11_reproduced.ipynb +5 -142
- benchmark/sklearn_12/sklearn_12_fixed.ipynb +21 -314
- benchmark/sklearn_12/sklearn_12_reproduced.ipynb +16 -73
- benchmark/sklearn_13/sklearn_13_fixed.ipynb +26 -101
- benchmark/sklearn_13/sklearn_13_reproduced.ipynb +1 -1
- benchmark/sklearn_14/sklearn_14_fixed.ipynb +80 -686
- benchmark/sklearn_14/sklearn_14_reproduced.ipynb +18 -604
- benchmark/sklearn_15/sklearn_15_fixed.ipynb +12 -59
- benchmark/sklearn_15/sklearn_15_reproduced.ipynb +10 -49
- benchmark/sklearn_2/sklearn_2_fixed.ipynb +0 -0
- benchmark/sklearn_2/sklearn_2_reproduced.ipynb +0 -0
- benchmark/sklearn_3/sklearn_3_fixed.ipynb +15 -899
- benchmark/sklearn_3/sklearn_3_reproduced.ipynb +13 -1505
- benchmark/sklearn_4/sklearn_4_fixed.ipynb +5 -33
- benchmark/sklearn_4/sklearn_4_fixed1.ipynb +0 -0
- benchmark/sklearn_4/sklearn_4_fixed2.ipynb +4 -28
- benchmark/sklearn_4/sklearn_4_reproduced.ipynb +15 -32
- benchmark/sklearn_5/sklearn_5_fixed.ipynb +0 -0
- benchmark/sklearn_5/sklearn_5_reproduced.ipynb +0 -0
- benchmark/sklearn_6/sklearn_6_fixed.ipynb +22 -440
- benchmark/sklearn_6/sklearn_6_reproduced.ipynb +23 -441
- benchmark/sklearn_7/sklearn_7_fixed.ipynb +6 -137
- benchmark/sklearn_7/sklearn_7_reproduced.ipynb +6 -137
- benchmark/sklearn_8/sklearn_8_fixed.ipynb +6 -19
- benchmark/sklearn_8/sklearn_8_reproduced.ipynb +13 -27
- benchmark/sklearn_9/sklearn_9_fixed.ipynb +1 -1
benchmark/sklearn_10/sklearn_10_fixed.ipynb
CHANGED
|
@@ -301,7 +301,7 @@
|
|
| 301 |
},
|
| 302 |
{
|
| 303 |
"cell_type": "code",
|
| 304 |
-
"execution_count":
|
| 305 |
"metadata": {
|
| 306 |
"execution": {
|
| 307 |
"iopub.execute_input": "2023-02-28T07:58:04.166694Z",
|
|
@@ -311,40 +311,14 @@
|
|
| 311 |
"shell.execute_reply.started": "2023-02-28T07:58:04.166635Z"
|
| 312 |
}
|
| 313 |
},
|
| 314 |
-
"outputs": [
|
| 315 |
-
{
|
| 316 |
-
"name": "stdout",
|
| 317 |
-
"output_type": "stream",
|
| 318 |
-
"text": [
|
| 319 |
-
"<class 'pandas.core.frame.DataFrame'>\n",
|
| 320 |
-
"RangeIndex: 1330816 entries, 0 to 1330815\n",
|
| 321 |
-
"Data columns (total 12 columns):\n",
|
| 322 |
-
" # Column Non-Null Count Dtype \n",
|
| 323 |
-
"--- ------ -------------- ----- \n",
|
| 324 |
-
" 0 u_q 1330816 non-null float64\n",
|
| 325 |
-
" 1 coolant 1330816 non-null float64\n",
|
| 326 |
-
" 2 stator_winding 1330816 non-null float64\n",
|
| 327 |
-
" 3 u_d 1330816 non-null float64\n",
|
| 328 |
-
" 4 stator_tooth 1330816 non-null float64\n",
|
| 329 |
-
" 5 motor_speed 1330816 non-null float64\n",
|
| 330 |
-
" 6 i_d 1330816 non-null float64\n",
|
| 331 |
-
" 7 i_q 1330816 non-null float64\n",
|
| 332 |
-
" 8 pm 1330816 non-null float64\n",
|
| 333 |
-
" 9 stator_yoke 1330816 non-null float64\n",
|
| 334 |
-
" 10 ambient 1330816 non-null float64\n",
|
| 335 |
-
" 11 torque 1330816 non-null float64\n",
|
| 336 |
-
"dtypes: float64(12)\n",
|
| 337 |
-
"memory usage: 121.8 MB\n"
|
| 338 |
-
]
|
| 339 |
-
}
|
| 340 |
-
],
|
| 341 |
"source": [
|
| 342 |
"df.info()"
|
| 343 |
]
|
| 344 |
},
|
| 345 |
{
|
| 346 |
"cell_type": "code",
|
| 347 |
-
"execution_count":
|
| 348 |
"metadata": {
|
| 349 |
"execution": {
|
| 350 |
"iopub.execute_input": "2023-02-28T07:58:04.229634Z",
|
|
@@ -354,217 +328,14 @@
|
|
| 354 |
"shell.execute_reply.started": "2023-02-28T07:58:04.229578Z"
|
| 355 |
}
|
| 356 |
},
|
| 357 |
-
"outputs": [
|
| 358 |
-
{
|
| 359 |
-
"data": {
|
| 360 |
-
"text/html": [
|
| 361 |
-
"<div>\n",
|
| 362 |
-
"<style scoped>\n",
|
| 363 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 364 |
-
" vertical-align: middle;\n",
|
| 365 |
-
" }\n",
|
| 366 |
-
"\n",
|
| 367 |
-
" .dataframe tbody tr th {\n",
|
| 368 |
-
" vertical-align: top;\n",
|
| 369 |
-
" }\n",
|
| 370 |
-
"\n",
|
| 371 |
-
" .dataframe thead th {\n",
|
| 372 |
-
" text-align: right;\n",
|
| 373 |
-
" }\n",
|
| 374 |
-
"</style>\n",
|
| 375 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 376 |
-
" <thead>\n",
|
| 377 |
-
" <tr style=\"text-align: right;\">\n",
|
| 378 |
-
" <th></th>\n",
|
| 379 |
-
" <th>count</th>\n",
|
| 380 |
-
" <th>mean</th>\n",
|
| 381 |
-
" <th>std</th>\n",
|
| 382 |
-
" <th>min</th>\n",
|
| 383 |
-
" <th>25%</th>\n",
|
| 384 |
-
" <th>50%</th>\n",
|
| 385 |
-
" <th>75%</th>\n",
|
| 386 |
-
" <th>max</th>\n",
|
| 387 |
-
" </tr>\n",
|
| 388 |
-
" </thead>\n",
|
| 389 |
-
" <tbody>\n",
|
| 390 |
-
" <tr>\n",
|
| 391 |
-
" <th>u_q</th>\n",
|
| 392 |
-
" <td>1330816.0</td>\n",
|
| 393 |
-
" <td>54.279005</td>\n",
|
| 394 |
-
" <td>44.173234</td>\n",
|
| 395 |
-
" <td>-25.290930</td>\n",
|
| 396 |
-
" <td>12.069925</td>\n",
|
| 397 |
-
" <td>48.938181</td>\n",
|
| 398 |
-
" <td>90.034393</td>\n",
|
| 399 |
-
" <td>133.036994</td>\n",
|
| 400 |
-
" </tr>\n",
|
| 401 |
-
" <tr>\n",
|
| 402 |
-
" <th>coolant</th>\n",
|
| 403 |
-
" <td>1330816.0</td>\n",
|
| 404 |
-
" <td>36.229995</td>\n",
|
| 405 |
-
" <td>21.786149</td>\n",
|
| 406 |
-
" <td>10.623751</td>\n",
|
| 407 |
-
" <td>18.698135</td>\n",
|
| 408 |
-
" <td>26.900141</td>\n",
|
| 409 |
-
" <td>49.857487</td>\n",
|
| 410 |
-
" <td>101.598512</td>\n",
|
| 411 |
-
" </tr>\n",
|
| 412 |
-
" <tr>\n",
|
| 413 |
-
" <th>stator_winding</th>\n",
|
| 414 |
-
" <td>1330816.0</td>\n",
|
| 415 |
-
" <td>66.342745</td>\n",
|
| 416 |
-
" <td>28.672061</td>\n",
|
| 417 |
-
" <td>18.585815</td>\n",
|
| 418 |
-
" <td>42.787957</td>\n",
|
| 419 |
-
" <td>65.110129</td>\n",
|
| 420 |
-
" <td>88.141137</td>\n",
|
| 421 |
-
" <td>141.362885</td>\n",
|
| 422 |
-
" </tr>\n",
|
| 423 |
-
" <tr>\n",
|
| 424 |
-
" <th>u_d</th>\n",
|
| 425 |
-
" <td>1330816.0</td>\n",
|
| 426 |
-
" <td>-25.133809</td>\n",
|
| 427 |
-
" <td>63.091972</td>\n",
|
| 428 |
-
" <td>-131.530411</td>\n",
|
| 429 |
-
" <td>-78.690904</td>\n",
|
| 430 |
-
" <td>-7.429755</td>\n",
|
| 431 |
-
" <td>1.470271</td>\n",
|
| 432 |
-
" <td>131.469788</td>\n",
|
| 433 |
-
" </tr>\n",
|
| 434 |
-
" <tr>\n",
|
| 435 |
-
" <th>stator_tooth</th>\n",
|
| 436 |
-
" <td>1330816.0</td>\n",
|
| 437 |
-
" <td>56.878582</td>\n",
|
| 438 |
-
" <td>22.952233</td>\n",
|
| 439 |
-
" <td>18.133976</td>\n",
|
| 440 |
-
" <td>38.416012</td>\n",
|
| 441 |
-
" <td>56.036345</td>\n",
|
| 442 |
-
" <td>75.586682</td>\n",
|
| 443 |
-
" <td>111.946423</td>\n",
|
| 444 |
-
" </tr>\n",
|
| 445 |
-
" <tr>\n",
|
| 446 |
-
" <th>motor_speed</th>\n",
|
| 447 |
-
" <td>1330816.0</td>\n",
|
| 448 |
-
" <td>2202.080728</td>\n",
|
| 449 |
-
" <td>1859.663350</td>\n",
|
| 450 |
-
" <td>-275.549144</td>\n",
|
| 451 |
-
" <td>317.110665</td>\n",
|
| 452 |
-
" <td>1999.976685</td>\n",
|
| 453 |
-
" <td>3760.639058</td>\n",
|
| 454 |
-
" <td>6000.015137</td>\n",
|
| 455 |
-
" </tr>\n",
|
| 456 |
-
" <tr>\n",
|
| 457 |
-
" <th>i_d</th>\n",
|
| 458 |
-
" <td>1330816.0</td>\n",
|
| 459 |
-
" <td>-68.716810</td>\n",
|
| 460 |
-
" <td>64.933233</td>\n",
|
| 461 |
-
" <td>-278.003632</td>\n",
|
| 462 |
-
" <td>-115.406060</td>\n",
|
| 463 |
-
" <td>-51.093763</td>\n",
|
| 464 |
-
" <td>-2.979688</td>\n",
|
| 465 |
-
" <td>0.051897</td>\n",
|
| 466 |
-
" </tr>\n",
|
| 467 |
-
" <tr>\n",
|
| 468 |
-
" <th>i_q</th>\n",
|
| 469 |
-
" <td>1330816.0</td>\n",
|
| 470 |
-
" <td>37.412782</td>\n",
|
| 471 |
-
" <td>92.181880</td>\n",
|
| 472 |
-
" <td>-293.426793</td>\n",
|
| 473 |
-
" <td>1.095863</td>\n",
|
| 474 |
-
" <td>15.774007</td>\n",
|
| 475 |
-
" <td>100.612150</td>\n",
|
| 476 |
-
" <td>301.707855</td>\n",
|
| 477 |
-
" </tr>\n",
|
| 478 |
-
" <tr>\n",
|
| 479 |
-
" <th>pm</th>\n",
|
| 480 |
-
" <td>1330816.0</td>\n",
|
| 481 |
-
" <td>58.506776</td>\n",
|
| 482 |
-
" <td>19.001498</td>\n",
|
| 483 |
-
" <td>20.856956</td>\n",
|
| 484 |
-
" <td>43.151582</td>\n",
|
| 485 |
-
" <td>60.266287</td>\n",
|
| 486 |
-
" <td>72.008371</td>\n",
|
| 487 |
-
" <td>113.606628</td>\n",
|
| 488 |
-
" </tr>\n",
|
| 489 |
-
" <tr>\n",
|
| 490 |
-
" <th>stator_yoke</th>\n",
|
| 491 |
-
" <td>1330816.0</td>\n",
|
| 492 |
-
" <td>48.187965</td>\n",
|
| 493 |
-
" <td>19.991004</td>\n",
|
| 494 |
-
" <td>18.076689</td>\n",
|
| 495 |
-
" <td>31.990333</td>\n",
|
| 496 |
-
" <td>45.625509</td>\n",
|
| 497 |
-
" <td>61.460828</td>\n",
|
| 498 |
-
" <td>101.147964</td>\n",
|
| 499 |
-
" </tr>\n",
|
| 500 |
-
" <tr>\n",
|
| 501 |
-
" <th>ambient</th>\n",
|
| 502 |
-
" <td>1330816.0</td>\n",
|
| 503 |
-
" <td>24.565256</td>\n",
|
| 504 |
-
" <td>1.929522</td>\n",
|
| 505 |
-
" <td>8.783478</td>\n",
|
| 506 |
-
" <td>23.184804</td>\n",
|
| 507 |
-
" <td>24.797327</td>\n",
|
| 508 |
-
" <td>26.217019</td>\n",
|
| 509 |
-
" <td>30.714205</td>\n",
|
| 510 |
-
" </tr>\n",
|
| 511 |
-
" <tr>\n",
|
| 512 |
-
" <th>torque</th>\n",
|
| 513 |
-
" <td>1330816.0</td>\n",
|
| 514 |
-
" <td>31.106032</td>\n",
|
| 515 |
-
" <td>77.135755</td>\n",
|
| 516 |
-
" <td>-246.466663</td>\n",
|
| 517 |
-
" <td>-0.137427</td>\n",
|
| 518 |
-
" <td>10.860354</td>\n",
|
| 519 |
-
" <td>91.597176</td>\n",
|
| 520 |
-
" <td>261.005707</td>\n",
|
| 521 |
-
" </tr>\n",
|
| 522 |
-
" </tbody>\n",
|
| 523 |
-
"</table>\n",
|
| 524 |
-
"</div>"
|
| 525 |
-
],
|
| 526 |
-
"text/plain": [
|
| 527 |
-
" count mean std min 25% \\\n",
|
| 528 |
-
"u_q 1330816.0 54.279005 44.173234 -25.290930 12.069925 \n",
|
| 529 |
-
"coolant 1330816.0 36.229995 21.786149 10.623751 18.698135 \n",
|
| 530 |
-
"stator_winding 1330816.0 66.342745 28.672061 18.585815 42.787957 \n",
|
| 531 |
-
"u_d 1330816.0 -25.133809 63.091972 -131.530411 -78.690904 \n",
|
| 532 |
-
"stator_tooth 1330816.0 56.878582 22.952233 18.133976 38.416012 \n",
|
| 533 |
-
"motor_speed 1330816.0 2202.080728 1859.663350 -275.549144 317.110665 \n",
|
| 534 |
-
"i_d 1330816.0 -68.716810 64.933233 -278.003632 -115.406060 \n",
|
| 535 |
-
"i_q 1330816.0 37.412782 92.181880 -293.426793 1.095863 \n",
|
| 536 |
-
"pm 1330816.0 58.506776 19.001498 20.856956 43.151582 \n",
|
| 537 |
-
"stator_yoke 1330816.0 48.187965 19.991004 18.076689 31.990333 \n",
|
| 538 |
-
"ambient 1330816.0 24.565256 1.929522 8.783478 23.184804 \n",
|
| 539 |
-
"torque 1330816.0 31.106032 77.135755 -246.466663 -0.137427 \n",
|
| 540 |
-
"\n",
|
| 541 |
-
" 50% 75% max \n",
|
| 542 |
-
"u_q 48.938181 90.034393 133.036994 \n",
|
| 543 |
-
"coolant 26.900141 49.857487 101.598512 \n",
|
| 544 |
-
"stator_winding 65.110129 88.141137 141.362885 \n",
|
| 545 |
-
"u_d -7.429755 1.470271 131.469788 \n",
|
| 546 |
-
"stator_tooth 56.036345 75.586682 111.946423 \n",
|
| 547 |
-
"motor_speed 1999.976685 3760.639058 6000.015137 \n",
|
| 548 |
-
"i_d -51.093763 -2.979688 0.051897 \n",
|
| 549 |
-
"i_q 15.774007 100.612150 301.707855 \n",
|
| 550 |
-
"pm 60.266287 72.008371 113.606628 \n",
|
| 551 |
-
"stator_yoke 45.625509 61.460828 101.147964 \n",
|
| 552 |
-
"ambient 24.797327 26.217019 30.714205 \n",
|
| 553 |
-
"torque 10.860354 91.597176 261.005707 "
|
| 554 |
-
]
|
| 555 |
-
},
|
| 556 |
-
"execution_count": 4,
|
| 557 |
-
"metadata": {},
|
| 558 |
-
"output_type": "execute_result"
|
| 559 |
-
}
|
| 560 |
-
],
|
| 561 |
"source": [
|
| 562 |
"df.describe().T"
|
| 563 |
]
|
| 564 |
},
|
| 565 |
{
|
| 566 |
"cell_type": "code",
|
| 567 |
-
"execution_count":
|
| 568 |
"metadata": {
|
| 569 |
"execution": {
|
| 570 |
"iopub.execute_input": "2023-02-28T07:58:04.736648Z",
|
|
@@ -574,25 +345,14 @@
|
|
| 574 |
"shell.execute_reply.started": "2023-02-28T07:58:04.736575Z"
|
| 575 |
}
|
| 576 |
},
|
| 577 |
-
"outputs": [
|
| 578 |
-
{
|
| 579 |
-
"data": {
|
| 580 |
-
"text/plain": [
|
| 581 |
-
"False"
|
| 582 |
-
]
|
| 583 |
-
},
|
| 584 |
-
"execution_count": 5,
|
| 585 |
-
"metadata": {},
|
| 586 |
-
"output_type": "execute_result"
|
| 587 |
-
}
|
| 588 |
-
],
|
| 589 |
"source": [
|
| 590 |
"df.isnull().values.any()"
|
| 591 |
]
|
| 592 |
},
|
| 593 |
{
|
| 594 |
"cell_type": "code",
|
| 595 |
-
"execution_count":
|
| 596 |
"metadata": {
|
| 597 |
"execution": {
|
| 598 |
"iopub.execute_input": "2023-02-28T07:58:04.765667Z",
|
|
@@ -602,18 +362,7 @@
|
|
| 602 |
"shell.execute_reply.started": "2023-02-28T07:58:04.765595Z"
|
| 603 |
}
|
| 604 |
},
|
| 605 |
-
"outputs": [
|
| 606 |
-
{
|
| 607 |
-
"data": {
|
| 608 |
-
"text/plain": [
|
| 609 |
-
"Series([], dtype: int64)"
|
| 610 |
-
]
|
| 611 |
-
},
|
| 612 |
-
"execution_count": 6,
|
| 613 |
-
"metadata": {},
|
| 614 |
-
"output_type": "execute_result"
|
| 615 |
-
}
|
| 616 |
-
],
|
| 617 |
"source": [
|
| 618 |
"# Count the number of NaNs each column has.\n",
|
| 619 |
"nans=pd.isnull(df).sum()\n",
|
|
@@ -622,7 +371,7 @@
|
|
| 622 |
},
|
| 623 |
{
|
| 624 |
"cell_type": "code",
|
| 625 |
-
"execution_count":
|
| 626 |
"metadata": {
|
| 627 |
"execution": {
|
| 628 |
"iopub.execute_input": "2023-02-28T07:58:04.812012Z",
|
|
@@ -632,19 +381,7 @@
|
|
| 632 |
"shell.execute_reply.started": "2023-02-28T07:58:04.811961Z"
|
| 633 |
}
|
| 634 |
},
|
| 635 |
-
"outputs": [
|
| 636 |
-
{
|
| 637 |
-
"data": {
|
| 638 |
-
"text/plain": [
|
| 639 |
-
"float64 12\n",
|
| 640 |
-
"Name: count, dtype: int64"
|
| 641 |
-
]
|
| 642 |
-
},
|
| 643 |
-
"execution_count": 7,
|
| 644 |
-
"metadata": {},
|
| 645 |
-
"output_type": "execute_result"
|
| 646 |
-
}
|
| 647 |
-
],
|
| 648 |
"source": [
|
| 649 |
"# Count the column types\n",
|
| 650 |
"df.dtypes.value_counts()"
|
|
@@ -652,7 +389,7 @@
|
|
| 652 |
},
|
| 653 |
{
|
| 654 |
"cell_type": "code",
|
| 655 |
-
"execution_count":
|
| 656 |
"metadata": {
|
| 657 |
"execution": {
|
| 658 |
"iopub.execute_input": "2023-02-28T07:58:04.824255Z",
|
|
@@ -662,276 +399,7 @@
|
|
| 662 |
"shell.execute_reply.started": "2023-02-28T07:58:04.824186Z"
|
| 663 |
}
|
| 664 |
},
|
| 665 |
-
"outputs": [
|
| 666 |
-
{
|
| 667 |
-
"data": {
|
| 668 |
-
"text/html": [
|
| 669 |
-
"<div>\n",
|
| 670 |
-
"<style scoped>\n",
|
| 671 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 672 |
-
" vertical-align: middle;\n",
|
| 673 |
-
" }\n",
|
| 674 |
-
"\n",
|
| 675 |
-
" .dataframe tbody tr th {\n",
|
| 676 |
-
" vertical-align: top;\n",
|
| 677 |
-
" }\n",
|
| 678 |
-
"\n",
|
| 679 |
-
" .dataframe thead th {\n",
|
| 680 |
-
" text-align: right;\n",
|
| 681 |
-
" }\n",
|
| 682 |
-
"</style>\n",
|
| 683 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 684 |
-
" <thead>\n",
|
| 685 |
-
" <tr style=\"text-align: right;\">\n",
|
| 686 |
-
" <th></th>\n",
|
| 687 |
-
" <th>u_q</th>\n",
|
| 688 |
-
" <th>coolant</th>\n",
|
| 689 |
-
" <th>stator_winding</th>\n",
|
| 690 |
-
" <th>u_d</th>\n",
|
| 691 |
-
" <th>stator_tooth</th>\n",
|
| 692 |
-
" <th>motor_speed</th>\n",
|
| 693 |
-
" <th>i_d</th>\n",
|
| 694 |
-
" <th>i_q</th>\n",
|
| 695 |
-
" <th>pm</th>\n",
|
| 696 |
-
" <th>stator_yoke</th>\n",
|
| 697 |
-
" <th>ambient</th>\n",
|
| 698 |
-
" <th>torque</th>\n",
|
| 699 |
-
" </tr>\n",
|
| 700 |
-
" </thead>\n",
|
| 701 |
-
" <tbody>\n",
|
| 702 |
-
" <tr>\n",
|
| 703 |
-
" <th>u_q</th>\n",
|
| 704 |
-
" <td>1.000000</td>\n",
|
| 705 |
-
" <td>0.051721</td>\n",
|
| 706 |
-
" <td>0.050610</td>\n",
|
| 707 |
-
" <td>0.004702</td>\n",
|
| 708 |
-
" <td>0.104373</td>\n",
|
| 709 |
-
" <td>0.683556</td>\n",
|
| 710 |
-
" <td>-0.100357</td>\n",
|
| 711 |
-
" <td>-0.124589</td>\n",
|
| 712 |
-
" <td>0.122365</td>\n",
|
| 713 |
-
" <td>0.090992</td>\n",
|
| 714 |
-
" <td>0.150264</td>\n",
|
| 715 |
-
" <td>-0.136215</td>\n",
|
| 716 |
-
" </tr>\n",
|
| 717 |
-
" <tr>\n",
|
| 718 |
-
" <th>coolant</th>\n",
|
| 719 |
-
" <td>0.051721</td>\n",
|
| 720 |
-
" <td>1.000000</td>\n",
|
| 721 |
-
" <td>0.504835</td>\n",
|
| 722 |
-
" <td>0.195517</td>\n",
|
| 723 |
-
" <td>0.674974</td>\n",
|
| 724 |
-
" <td>0.011872</td>\n",
|
| 725 |
-
" <td>0.074865</td>\n",
|
| 726 |
-
" <td>-0.256389</td>\n",
|
| 727 |
-
" <td>0.467117</td>\n",
|
| 728 |
-
" <td>0.860750</td>\n",
|
| 729 |
-
" <td>0.525963</td>\n",
|
| 730 |
-
" <td>-0.257982</td>\n",
|
| 731 |
-
" </tr>\n",
|
| 732 |
-
" <tr>\n",
|
| 733 |
-
" <th>stator_winding</th>\n",
|
| 734 |
-
" <td>0.050610</td>\n",
|
| 735 |
-
" <td>0.504835</td>\n",
|
| 736 |
-
" <td>1.000000</td>\n",
|
| 737 |
-
" <td>-0.234950</td>\n",
|
| 738 |
-
" <td>0.970135</td>\n",
|
| 739 |
-
" <td>0.432034</td>\n",
|
| 740 |
-
" <td>-0.624370</td>\n",
|
| 741 |
-
" <td>0.065617</td>\n",
|
| 742 |
-
" <td>0.795893</td>\n",
|
| 743 |
-
" <td>0.860268</td>\n",
|
| 744 |
-
" <td>0.333208</td>\n",
|
| 745 |
-
" <td>0.095510</td>\n",
|
| 746 |
-
" </tr>\n",
|
| 747 |
-
" <tr>\n",
|
| 748 |
-
" <th>u_d</th>\n",
|
| 749 |
-
" <td>0.004702</td>\n",
|
| 750 |
-
" <td>0.195517</td>\n",
|
| 751 |
-
" <td>-0.234950</td>\n",
|
| 752 |
-
" <td>1.000000</td>\n",
|
| 753 |
-
" <td>-0.142749</td>\n",
|
| 754 |
-
" <td>-0.288472</td>\n",
|
| 755 |
-
" <td>0.448331</td>\n",
|
| 756 |
-
" <td>-0.723069</td>\n",
|
| 757 |
-
" <td>-0.172031</td>\n",
|
| 758 |
-
" <td>-0.008098</td>\n",
|
| 759 |
-
" <td>0.203647</td>\n",
|
| 760 |
-
" <td>-0.753779</td>\n",
|
| 761 |
-
" </tr>\n",
|
| 762 |
-
" <tr>\n",
|
| 763 |
-
" <th>stator_tooth</th>\n",
|
| 764 |
-
" <td>0.104373</td>\n",
|
| 765 |
-
" <td>0.674974</td>\n",
|
| 766 |
-
" <td>0.970135</td>\n",
|
| 767 |
-
" <td>-0.142749</td>\n",
|
| 768 |
-
" <td>1.000000</td>\n",
|
| 769 |
-
" <td>0.398431</td>\n",
|
| 770 |
-
" <td>-0.487062</td>\n",
|
| 771 |
-
" <td>-0.042294</td>\n",
|
| 772 |
-
" <td>0.832084</td>\n",
|
| 773 |
-
" <td>0.953115</td>\n",
|
| 774 |
-
" <td>0.443470</td>\n",
|
| 775 |
-
" <td>-0.018413</td>\n",
|
| 776 |
-
" </tr>\n",
|
| 777 |
-
" <tr>\n",
|
| 778 |
-
" <th>motor_speed</th>\n",
|
| 779 |
-
" <td>0.683556</td>\n",
|
| 780 |
-
" <td>0.011872</td>\n",
|
| 781 |
-
" <td>0.432034</td>\n",
|
| 782 |
-
" <td>-0.288472</td>\n",
|
| 783 |
-
" <td>0.398431</td>\n",
|
| 784 |
-
" <td>1.000000</td>\n",
|
| 785 |
-
" <td>-0.700609</td>\n",
|
| 786 |
-
" <td>-0.068881</td>\n",
|
| 787 |
-
" <td>0.458947</td>\n",
|
| 788 |
-
" <td>0.255790</td>\n",
|
| 789 |
-
" <td>0.118232</td>\n",
|
| 790 |
-
" <td>-0.043903</td>\n",
|
| 791 |
-
" </tr>\n",
|
| 792 |
-
" <tr>\n",
|
| 793 |
-
" <th>i_d</th>\n",
|
| 794 |
-
" <td>-0.100357</td>\n",
|
| 795 |
-
" <td>0.074865</td>\n",
|
| 796 |
-
" <td>-0.624370</td>\n",
|
| 797 |
-
" <td>0.448331</td>\n",
|
| 798 |
-
" <td>-0.487062</td>\n",
|
| 799 |
-
" <td>-0.700609</td>\n",
|
| 800 |
-
" <td>1.000000</td>\n",
|
| 801 |
-
" <td>-0.231344</td>\n",
|
| 802 |
-
" <td>-0.427736</td>\n",
|
| 803 |
-
" <td>-0.278005</td>\n",
|
| 804 |
-
" <td>0.016397</td>\n",
|
| 805 |
-
" <td>-0.274097</td>\n",
|
| 806 |
-
" </tr>\n",
|
| 807 |
-
" <tr>\n",
|
| 808 |
-
" <th>i_q</th>\n",
|
| 809 |
-
" <td>-0.124589</td>\n",
|
| 810 |
-
" <td>-0.256389</td>\n",
|
| 811 |
-
" <td>0.065617</td>\n",
|
| 812 |
-
" <td>-0.723069</td>\n",
|
| 813 |
-
" <td>-0.042294</td>\n",
|
| 814 |
-
" <td>-0.068881</td>\n",
|
| 815 |
-
" <td>-0.231344</td>\n",
|
| 816 |
-
" <td>1.000000</td>\n",
|
| 817 |
-
" <td>-0.142416</td>\n",
|
| 818 |
-
" <td>-0.131466</td>\n",
|
| 819 |
-
" <td>-0.314044</td>\n",
|
| 820 |
-
" <td>0.996457</td>\n",
|
| 821 |
-
" </tr>\n",
|
| 822 |
-
" <tr>\n",
|
| 823 |
-
" <th>pm</th>\n",
|
| 824 |
-
" <td>0.122365</td>\n",
|
| 825 |
-
" <td>0.467117</td>\n",
|
| 826 |
-
" <td>0.795893</td>\n",
|
| 827 |
-
" <td>-0.172031</td>\n",
|
| 828 |
-
" <td>0.832084</td>\n",
|
| 829 |
-
" <td>0.458947</td>\n",
|
| 830 |
-
" <td>-0.427736</td>\n",
|
| 831 |
-
" <td>-0.142416</td>\n",
|
| 832 |
-
" <td>1.000000</td>\n",
|
| 833 |
-
" <td>0.756684</td>\n",
|
| 834 |
-
" <td>0.513728</td>\n",
|
| 835 |
-
" <td>-0.117138</td>\n",
|
| 836 |
-
" </tr>\n",
|
| 837 |
-
" <tr>\n",
|
| 838 |
-
" <th>stator_yoke</th>\n",
|
| 839 |
-
" <td>0.090992</td>\n",
|
| 840 |
-
" <td>0.860750</td>\n",
|
| 841 |
-
" <td>0.860268</td>\n",
|
| 842 |
-
" <td>-0.008098</td>\n",
|
| 843 |
-
" <td>0.953115</td>\n",
|
| 844 |
-
" <td>0.255790</td>\n",
|
| 845 |
-
" <td>-0.278005</td>\n",
|
| 846 |
-
" <td>-0.131466</td>\n",
|
| 847 |
-
" <td>0.756684</td>\n",
|
| 848 |
-
" <td>1.000000</td>\n",
|
| 849 |
-
" <td>0.520382</td>\n",
|
| 850 |
-
" <td>-0.117118</td>\n",
|
| 851 |
-
" </tr>\n",
|
| 852 |
-
" <tr>\n",
|
| 853 |
-
" <th>ambient</th>\n",
|
| 854 |
-
" <td>0.150264</td>\n",
|
| 855 |
-
" <td>0.525963</td>\n",
|
| 856 |
-
" <td>0.333208</td>\n",
|
| 857 |
-
" <td>0.203647</td>\n",
|
| 858 |
-
" <td>0.443470</td>\n",
|
| 859 |
-
" <td>0.118232</td>\n",
|
| 860 |
-
" <td>0.016397</td>\n",
|
| 861 |
-
" <td>-0.314044</td>\n",
|
| 862 |
-
" <td>0.513728</td>\n",
|
| 863 |
-
" <td>0.520382</td>\n",
|
| 864 |
-
" <td>1.000000</td>\n",
|
| 865 |
-
" <td>-0.315747</td>\n",
|
| 866 |
-
" </tr>\n",
|
| 867 |
-
" <tr>\n",
|
| 868 |
-
" <th>torque</th>\n",
|
| 869 |
-
" <td>-0.136215</td>\n",
|
| 870 |
-
" <td>-0.257982</td>\n",
|
| 871 |
-
" <td>0.095510</td>\n",
|
| 872 |
-
" <td>-0.753779</td>\n",
|
| 873 |
-
" <td>-0.018413</td>\n",
|
| 874 |
-
" <td>-0.043903</td>\n",
|
| 875 |
-
" <td>-0.274097</td>\n",
|
| 876 |
-
" <td>0.996457</td>\n",
|
| 877 |
-
" <td>-0.117138</td>\n",
|
| 878 |
-
" <td>-0.117118</td>\n",
|
| 879 |
-
" <td>-0.315747</td>\n",
|
| 880 |
-
" <td>1.000000</td>\n",
|
| 881 |
-
" </tr>\n",
|
| 882 |
-
" </tbody>\n",
|
| 883 |
-
"</table>\n",
|
| 884 |
-
"</div>"
|
| 885 |
-
],
|
| 886 |
-
"text/plain": [
|
| 887 |
-
" u_q coolant stator_winding u_d stator_tooth \\\n",
|
| 888 |
-
"u_q 1.000000 0.051721 0.050610 0.004702 0.104373 \n",
|
| 889 |
-
"coolant 0.051721 1.000000 0.504835 0.195517 0.674974 \n",
|
| 890 |
-
"stator_winding 0.050610 0.504835 1.000000 -0.234950 0.970135 \n",
|
| 891 |
-
"u_d 0.004702 0.195517 -0.234950 1.000000 -0.142749 \n",
|
| 892 |
-
"stator_tooth 0.104373 0.674974 0.970135 -0.142749 1.000000 \n",
|
| 893 |
-
"motor_speed 0.683556 0.011872 0.432034 -0.288472 0.398431 \n",
|
| 894 |
-
"i_d -0.100357 0.074865 -0.624370 0.448331 -0.487062 \n",
|
| 895 |
-
"i_q -0.124589 -0.256389 0.065617 -0.723069 -0.042294 \n",
|
| 896 |
-
"pm 0.122365 0.467117 0.795893 -0.172031 0.832084 \n",
|
| 897 |
-
"stator_yoke 0.090992 0.860750 0.860268 -0.008098 0.953115 \n",
|
| 898 |
-
"ambient 0.150264 0.525963 0.333208 0.203647 0.443470 \n",
|
| 899 |
-
"torque -0.136215 -0.257982 0.095510 -0.753779 -0.018413 \n",
|
| 900 |
-
"\n",
|
| 901 |
-
" motor_speed i_d i_q pm stator_yoke \\\n",
|
| 902 |
-
"u_q 0.683556 -0.100357 -0.124589 0.122365 0.090992 \n",
|
| 903 |
-
"coolant 0.011872 0.074865 -0.256389 0.467117 0.860750 \n",
|
| 904 |
-
"stator_winding 0.432034 -0.624370 0.065617 0.795893 0.860268 \n",
|
| 905 |
-
"u_d -0.288472 0.448331 -0.723069 -0.172031 -0.008098 \n",
|
| 906 |
-
"stator_tooth 0.398431 -0.487062 -0.042294 0.832084 0.953115 \n",
|
| 907 |
-
"motor_speed 1.000000 -0.700609 -0.068881 0.458947 0.255790 \n",
|
| 908 |
-
"i_d -0.700609 1.000000 -0.231344 -0.427736 -0.278005 \n",
|
| 909 |
-
"i_q -0.068881 -0.231344 1.000000 -0.142416 -0.131466 \n",
|
| 910 |
-
"pm 0.458947 -0.427736 -0.142416 1.000000 0.756684 \n",
|
| 911 |
-
"stator_yoke 0.255790 -0.278005 -0.131466 0.756684 1.000000 \n",
|
| 912 |
-
"ambient 0.118232 0.016397 -0.314044 0.513728 0.520382 \n",
|
| 913 |
-
"torque -0.043903 -0.274097 0.996457 -0.117138 -0.117118 \n",
|
| 914 |
-
"\n",
|
| 915 |
-
" ambient torque \n",
|
| 916 |
-
"u_q 0.150264 -0.136215 \n",
|
| 917 |
-
"coolant 0.525963 -0.257982 \n",
|
| 918 |
-
"stator_winding 0.333208 0.095510 \n",
|
| 919 |
-
"u_d 0.203647 -0.753779 \n",
|
| 920 |
-
"stator_tooth 0.443470 -0.018413 \n",
|
| 921 |
-
"motor_speed 0.118232 -0.043903 \n",
|
| 922 |
-
"i_d 0.016397 -0.274097 \n",
|
| 923 |
-
"i_q -0.314044 0.996457 \n",
|
| 924 |
-
"pm 0.513728 -0.117138 \n",
|
| 925 |
-
"stator_yoke 0.520382 -0.117118 \n",
|
| 926 |
-
"ambient 1.000000 -0.315747 \n",
|
| 927 |
-
"torque -0.315747 1.000000 "
|
| 928 |
-
]
|
| 929 |
-
},
|
| 930 |
-
"execution_count": 8,
|
| 931 |
-
"metadata": {},
|
| 932 |
-
"output_type": "execute_result"
|
| 933 |
-
}
|
| 934 |
-
],
|
| 935 |
"source": [
|
| 936 |
"df.corr()"
|
| 937 |
]
|
|
@@ -1287,7 +755,7 @@
|
|
| 1287 |
},
|
| 1288 |
{
|
| 1289 |
"cell_type": "code",
|
| 1290 |
-
"execution_count":
|
| 1291 |
"metadata": {
|
| 1292 |
"execution": {
|
| 1293 |
"iopub.execute_input": "2023-02-28T08:01:18.238465Z",
|
|
@@ -1305,7 +773,7 @@
|
|
| 1305 |
},
|
| 1306 |
{
|
| 1307 |
"cell_type": "code",
|
| 1308 |
-
"execution_count":
|
| 1309 |
"metadata": {
|
| 1310 |
"execution": {
|
| 1311 |
"iopub.execute_input": "2023-02-28T08:01:18.347741Z",
|
|
@@ -1326,7 +794,7 @@
|
|
| 1326 |
},
|
| 1327 |
{
|
| 1328 |
"cell_type": "code",
|
| 1329 |
-
"execution_count":
|
| 1330 |
"metadata": {
|
| 1331 |
"execution": {
|
| 1332 |
"iopub.execute_input": "2023-02-28T08:01:18.862666Z",
|
|
@@ -1336,18 +804,7 @@
|
|
| 1336 |
"shell.execute_reply.started": "2023-02-28T08:01:18.862615Z"
|
| 1337 |
}
|
| 1338 |
},
|
| 1339 |
-
"outputs": [
|
| 1340 |
-
{
|
| 1341 |
-
"data": {
|
| 1342 |
-
"text/plain": [
|
| 1343 |
-
"(266164, 11)"
|
| 1344 |
-
]
|
| 1345 |
-
},
|
| 1346 |
-
"execution_count": 11,
|
| 1347 |
-
"metadata": {},
|
| 1348 |
-
"output_type": "execute_result"
|
| 1349 |
-
}
|
| 1350 |
-
],
|
| 1351 |
"source": [
|
| 1352 |
"X_test.shape"
|
| 1353 |
]
|
|
@@ -1732,7 +1189,7 @@
|
|
| 1732 |
},
|
| 1733 |
{
|
| 1734 |
"cell_type": "code",
|
| 1735 |
-
"execution_count":
|
| 1736 |
"metadata": {
|
| 1737 |
"execution": {
|
| 1738 |
"iopub.execute_input": "2023-02-28T08:02:05.781217Z",
|
|
@@ -1892,7 +1349,7 @@
|
|
| 1892 |
},
|
| 1893 |
{
|
| 1894 |
"cell_type": "code",
|
| 1895 |
-
"execution_count":
|
| 1896 |
"metadata": {
|
| 1897 |
"execution": {
|
| 1898 |
"iopub.status.busy": "2023-02-28T08:06:29.921532Z",
|
|
@@ -1995,7 +1452,7 @@
|
|
| 1995 |
},
|
| 1996 |
{
|
| 1997 |
"cell_type": "code",
|
| 1998 |
-
"execution_count":
|
| 1999 |
"metadata": {
|
| 2000 |
"execution": {
|
| 2001 |
"iopub.execute_input": "2023-02-28T08:06:47.156652Z",
|
|
@@ -2013,7 +1470,7 @@
|
|
| 2013 |
},
|
| 2014 |
{
|
| 2015 |
"cell_type": "code",
|
| 2016 |
-
"execution_count":
|
| 2017 |
"metadata": {
|
| 2018 |
"execution": {
|
| 2019 |
"iopub.execute_input": "2023-02-28T08:16:56.707730Z",
|
|
@@ -2037,7 +1494,7 @@
|
|
| 2037 |
},
|
| 2038 |
{
|
| 2039 |
"cell_type": "code",
|
| 2040 |
-
"execution_count":
|
| 2041 |
"metadata": {
|
| 2042 |
"execution": {
|
| 2043 |
"iopub.execute_input": "2023-02-28T08:20:42.723037Z",
|
|
@@ -2047,25 +1504,14 @@
|
|
| 2047 |
"shell.execute_reply.started": "2023-02-28T08:20:42.722967Z"
|
| 2048 |
}
|
| 2049 |
},
|
| 2050 |
-
"outputs": [
|
| 2051 |
-
{
|
| 2052 |
-
"data": {
|
| 2053 |
-
"text/plain": [
|
| 2054 |
-
"33.34830764198559"
|
| 2055 |
-
]
|
| 2056 |
-
},
|
| 2057 |
-
"execution_count": 16,
|
| 2058 |
-
"metadata": {},
|
| 2059 |
-
"output_type": "execute_result"
|
| 2060 |
-
}
|
| 2061 |
-
],
|
| 2062 |
"source": [
|
| 2063 |
"np.sqrt(mean_squared_error(y_test,y_pred))"
|
| 2064 |
]
|
| 2065 |
},
|
| 2066 |
{
|
| 2067 |
"cell_type": "code",
|
| 2068 |
-
"execution_count":
|
| 2069 |
"metadata": {
|
| 2070 |
"execution": {
|
| 2071 |
"iopub.execute_input": "2023-02-28T08:11:12.055602Z",
|
|
@@ -2080,17 +1526,17 @@
|
|
| 2080 |
"name": "stdout",
|
| 2081 |
"output_type": "stream",
|
| 2082 |
"text": [
|
| 2083 |
-
"Fold 1/10 RMSE:
|
| 2084 |
-
"Fold 2/10 RMSE:
|
| 2085 |
-
"Fold 3/10 RMSE:
|
| 2086 |
-
"Fold 4/10 RMSE: 34.
|
| 2087 |
-
"Fold 5/10 RMSE:
|
| 2088 |
-
"Fold 6/10 RMSE: 33.
|
| 2089 |
-
"Fold 7/10 RMSE:
|
| 2090 |
-
"Fold 8/10 RMSE:
|
| 2091 |
-
"Fold 9/10 RMSE:
|
| 2092 |
-
"Fold 10/10 RMSE:
|
| 2093 |
-
"Average KFold RMSE: 33.
|
| 2094 |
]
|
| 2095 |
}
|
| 2096 |
],
|
|
|
|
| 301 |
},
|
| 302 |
{
|
| 303 |
"cell_type": "code",
|
| 304 |
+
"execution_count": null,
|
| 305 |
"metadata": {
|
| 306 |
"execution": {
|
| 307 |
"iopub.execute_input": "2023-02-28T07:58:04.166694Z",
|
|
|
|
| 311 |
"shell.execute_reply.started": "2023-02-28T07:58:04.166635Z"
|
| 312 |
}
|
| 313 |
},
|
| 314 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 315 |
"source": [
|
| 316 |
"df.info()"
|
| 317 |
]
|
| 318 |
},
|
| 319 |
{
|
| 320 |
"cell_type": "code",
|
| 321 |
+
"execution_count": null,
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
| 324 |
"iopub.execute_input": "2023-02-28T07:58:04.229634Z",
|
|
|
|
| 328 |
"shell.execute_reply.started": "2023-02-28T07:58:04.229578Z"
|
| 329 |
}
|
| 330 |
},
|
| 331 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
"execution": {
|
| 341 |
"iopub.execute_input": "2023-02-28T07:58:04.736648Z",
|
|
|
|
| 345 |
"shell.execute_reply.started": "2023-02-28T07:58:04.736575Z"
|
| 346 |
}
|
| 347 |
},
|
| 348 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
"source": [
|
| 350 |
"df.isnull().values.any()"
|
| 351 |
]
|
| 352 |
},
|
| 353 |
{
|
| 354 |
"cell_type": "code",
|
| 355 |
+
"execution_count": null,
|
| 356 |
"metadata": {
|
| 357 |
"execution": {
|
| 358 |
"iopub.execute_input": "2023-02-28T07:58:04.765667Z",
|
|
|
|
| 362 |
"shell.execute_reply.started": "2023-02-28T07:58:04.765595Z"
|
| 363 |
}
|
| 364 |
},
|
| 365 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
"source": [
|
| 367 |
"# Count the number of NaNs each column has.\n",
|
| 368 |
"nans=pd.isnull(df).sum()\n",
|
|
|
|
| 371 |
},
|
| 372 |
{
|
| 373 |
"cell_type": "code",
|
| 374 |
+
"execution_count": null,
|
| 375 |
"metadata": {
|
| 376 |
"execution": {
|
| 377 |
"iopub.execute_input": "2023-02-28T07:58:04.812012Z",
|
|
|
|
| 381 |
"shell.execute_reply.started": "2023-02-28T07:58:04.811961Z"
|
| 382 |
}
|
| 383 |
},
|
| 384 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
"source": [
|
| 386 |
"# Count the column types\n",
|
| 387 |
"df.dtypes.value_counts()"
|
|
|
|
| 389 |
},
|
| 390 |
{
|
| 391 |
"cell_type": "code",
|
| 392 |
+
"execution_count": null,
|
| 393 |
"metadata": {
|
| 394 |
"execution": {
|
| 395 |
"i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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
"source": [
|
| 404 |
"df.corr()"
|
| 405 |
]
|
|
|
|
| 755 |
},
|
| 756 |
{
|
| 757 |
"cell_type": "code",
|
| 758 |
+
"execution_count": 3,
|
| 759 |
"metadata": {
|
| 760 |
"execution": {
|
| 761 |
"iopub.execute_input": "2023-02-28T08:01:18.238465Z",
|
|
|
|
| 773 |
},
|
| 774 |
{
|
| 775 |
"cell_type": "code",
|
| 776 |
+
"execution_count": 4,
|
| 777 |
"metadata": {
|
| 778 |
"execution": {
|
| 779 |
"iopub.execute_input": "2023-02-28T08:01:18.347741Z",
|
|
|
|
| 794 |
},
|
| 795 |
{
|
| 796 |
"cell_type": "code",
|
| 797 |
+
"execution_count": null,
|
| 798 |
"metadata": {
|
| 799 |
"execution": {
|
| 800 |
"iopub.execute_input": "2023-02-28T08:01:18.862666Z",
|
|
|
|
| 804 |
"shell.execute_reply.started": "2023-02-28T08:01:18.862615Z"
|
| 805 |
}
|
| 806 |
},
|
| 807 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 808 |
"source": [
|
| 809 |
"X_test.shape"
|
| 810 |
]
|
|
|
|
| 1189 |
},
|
| 1190 |
{
|
| 1191 |
"cell_type": "code",
|
| 1192 |
+
"execution_count": 5,
|
| 1193 |
"metadata": {
|
| 1194 |
"execution": {
|
| 1195 |
"iopub.execute_input": "2023-02-28T08:02:05.781217Z",
|
|
|
|
| 1349 |
},
|
| 1350 |
{
|
| 1351 |
"cell_type": "code",
|
| 1352 |
+
"execution_count": 6,
|
| 1353 |
"metadata": {
|
| 1354 |
"execution": {
|
| 1355 |
"iopub.status.busy": "2023-02-28T08:06:29.921532Z",
|
|
|
|
| 1452 |
},
|
| 1453 |
{
|
| 1454 |
"cell_type": "code",
|
| 1455 |
+
"execution_count": 7,
|
| 1456 |
"metadata": {
|
| 1457 |
"execution": {
|
| 1458 |
"iopub.execute_input": "2023-02-28T08:06:47.156652Z",
|
|
|
|
| 1470 |
},
|
| 1471 |
{
|
| 1472 |
"cell_type": "code",
|
| 1473 |
+
"execution_count": 8,
|
| 1474 |
"metadata": {
|
| 1475 |
"execution": {
|
| 1476 |
"iopub.execute_input": "2023-02-28T08:16:56.707730Z",
|
|
|
|
| 1494 |
},
|
| 1495 |
{
|
| 1496 |
"cell_type": "code",
|
| 1497 |
+
"execution_count": null,
|
| 1498 |
"metadata": {
|
| 1499 |
"execution": {
|
| 1500 |
"iopub.execute_input": "2023-02-28T08:20:42.723037Z",
|
|
|
|
| 1504 |
"shell.execute_reply.started": "2023-02-28T08:20:42.722967Z"
|
| 1505 |
}
|
| 1506 |
},
|
| 1507 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1508 |
"source": [
|
| 1509 |
"np.sqrt(mean_squared_error(y_test,y_pred))"
|
| 1510 |
]
|
| 1511 |
},
|
| 1512 |
{
|
| 1513 |
"cell_type": "code",
|
| 1514 |
+
"execution_count": 9,
|
| 1515 |
"metadata": {
|
| 1516 |
"execution": {
|
| 1517 |
"iopub.execute_input": "2023-02-28T08:11:12.055602Z",
|
|
|
|
| 1526 |
"name": "stdout",
|
| 1527 |
"output_type": "stream",
|
| 1528 |
"text": [
|
| 1529 |
+
"Fold 1/10 RMSE: 32.0238\n",
|
| 1530 |
+
"Fold 2/10 RMSE: 32.6497\n",
|
| 1531 |
+
"Fold 3/10 RMSE: 34.6523\n",
|
| 1532 |
+
"Fold 4/10 RMSE: 34.3301\n",
|
| 1533 |
+
"Fold 5/10 RMSE: 32.7508\n",
|
| 1534 |
+
"Fold 6/10 RMSE: 33.3000\n",
|
| 1535 |
+
"Fold 7/10 RMSE: 32.6886\n",
|
| 1536 |
+
"Fold 8/10 RMSE: 34.1172\n",
|
| 1537 |
+
"Fold 9/10 RMSE: 34.2978\n",
|
| 1538 |
+
"Fold 10/10 RMSE: 34.7723\n",
|
| 1539 |
+
"Average KFold RMSE: 33.55826\n"
|
| 1540 |
]
|
| 1541 |
}
|
| 1542 |
],
|
benchmark/sklearn_10/sklearn_10_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",
|
|
@@ -60,7 +60,7 @@
|
|
| 60 |
},
|
| 61 |
{
|
| 62 |
"cell_type": "code",
|
| 63 |
-
"execution_count":
|
| 64 |
"metadata": {
|
| 65 |
"execution": {
|
| 66 |
"iopub.execute_input": "2023-02-28T07:58:01.047089Z",
|
|
@@ -287,7 +287,7 @@
|
|
| 287 |
"9 -1.634464 0.898013 24.553242 18.301733 19.850624 0.924010 "
|
| 288 |
]
|
| 289 |
},
|
| 290 |
-
"execution_count":
|
| 291 |
"metadata": {},
|
| 292 |
"output_type": "execute_result"
|
| 293 |
}
|
|
@@ -301,7 +301,7 @@
|
|
| 301 |
},
|
| 302 |
{
|
| 303 |
"cell_type": "code",
|
| 304 |
-
"execution_count":
|
| 305 |
"metadata": {
|
| 306 |
"execution": {
|
| 307 |
"iopub.execute_input": "2023-02-28T07:58:04.166694Z",
|
|
@@ -311,40 +311,14 @@
|
|
| 311 |
"shell.execute_reply.started": "2023-02-28T07:58:04.166635Z"
|
| 312 |
}
|
| 313 |
},
|
| 314 |
-
"outputs": [
|
| 315 |
-
{
|
| 316 |
-
"name": "stdout",
|
| 317 |
-
"output_type": "stream",
|
| 318 |
-
"text": [
|
| 319 |
-
"<class 'pandas.core.frame.DataFrame'>\n",
|
| 320 |
-
"RangeIndex: 1330816 entries, 0 to 1330815\n",
|
| 321 |
-
"Data columns (total 12 columns):\n",
|
| 322 |
-
" # Column Non-Null Count Dtype \n",
|
| 323 |
-
"--- ------ -------------- ----- \n",
|
| 324 |
-
" 0 u_q 1330816 non-null float64\n",
|
| 325 |
-
" 1 coolant 1330816 non-null float64\n",
|
| 326 |
-
" 2 stator_winding 1330816 non-null float64\n",
|
| 327 |
-
" 3 u_d 1330816 non-null float64\n",
|
| 328 |
-
" 4 stator_tooth 1330816 non-null float64\n",
|
| 329 |
-
" 5 motor_speed 1330816 non-null float64\n",
|
| 330 |
-
" 6 i_d 1330816 non-null float64\n",
|
| 331 |
-
" 7 i_q 1330816 non-null float64\n",
|
| 332 |
-
" 8 pm 1330816 non-null float64\n",
|
| 333 |
-
" 9 stator_yoke 1330816 non-null float64\n",
|
| 334 |
-
" 10 ambient 1330816 non-null float64\n",
|
| 335 |
-
" 11 torque 1330816 non-null float64\n",
|
| 336 |
-
"dtypes: float64(12)\n",
|
| 337 |
-
"memory usage: 121.8 MB\n"
|
| 338 |
-
]
|
| 339 |
-
}
|
| 340 |
-
],
|
| 341 |
"source": [
|
| 342 |
"df.info()"
|
| 343 |
]
|
| 344 |
},
|
| 345 |
{
|
| 346 |
"cell_type": "code",
|
| 347 |
-
"execution_count":
|
| 348 |
"metadata": {
|
| 349 |
"execution": {
|
| 350 |
"iopub.execute_input": "2023-02-28T07:58:04.229634Z",
|
|
@@ -354,217 +328,14 @@
|
|
| 354 |
"shell.execute_reply.started": "2023-02-28T07:58:04.229578Z"
|
| 355 |
}
|
| 356 |
},
|
| 357 |
-
"outputs": [
|
| 358 |
-
{
|
| 359 |
-
"data": {
|
| 360 |
-
"text/html": [
|
| 361 |
-
"<div>\n",
|
| 362 |
-
"<style scoped>\n",
|
| 363 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 364 |
-
" vertical-align: middle;\n",
|
| 365 |
-
" }\n",
|
| 366 |
-
"\n",
|
| 367 |
-
" .dataframe tbody tr th {\n",
|
| 368 |
-
" vertical-align: top;\n",
|
| 369 |
-
" }\n",
|
| 370 |
-
"\n",
|
| 371 |
-
" .dataframe thead th {\n",
|
| 372 |
-
" text-align: right;\n",
|
| 373 |
-
" }\n",
|
| 374 |
-
"</style>\n",
|
| 375 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 376 |
-
" <thead>\n",
|
| 377 |
-
" <tr style=\"text-align: right;\">\n",
|
| 378 |
-
" <th></th>\n",
|
| 379 |
-
" <th>count</th>\n",
|
| 380 |
-
" <th>mean</th>\n",
|
| 381 |
-
" <th>std</th>\n",
|
| 382 |
-
" <th>min</th>\n",
|
| 383 |
-
" <th>25%</th>\n",
|
| 384 |
-
" <th>50%</th>\n",
|
| 385 |
-
" <th>75%</th>\n",
|
| 386 |
-
" <th>max</th>\n",
|
| 387 |
-
" </tr>\n",
|
| 388 |
-
" </thead>\n",
|
| 389 |
-
" <tbody>\n",
|
| 390 |
-
" <tr>\n",
|
| 391 |
-
" <th>u_q</th>\n",
|
| 392 |
-
" <td>1330816.0</td>\n",
|
| 393 |
-
" <td>54.279005</td>\n",
|
| 394 |
-
" <td>44.173234</td>\n",
|
| 395 |
-
" <td>-25.290930</td>\n",
|
| 396 |
-
" <td>12.069925</td>\n",
|
| 397 |
-
" <td>48.938181</td>\n",
|
| 398 |
-
" <td>90.034393</td>\n",
|
| 399 |
-
" <td>133.036994</td>\n",
|
| 400 |
-
" </tr>\n",
|
| 401 |
-
" <tr>\n",
|
| 402 |
-
" <th>coolant</th>\n",
|
| 403 |
-
" <td>1330816.0</td>\n",
|
| 404 |
-
" <td>36.229995</td>\n",
|
| 405 |
-
" <td>21.786149</td>\n",
|
| 406 |
-
" <td>10.623751</td>\n",
|
| 407 |
-
" <td>18.698135</td>\n",
|
| 408 |
-
" <td>26.900141</td>\n",
|
| 409 |
-
" <td>49.857487</td>\n",
|
| 410 |
-
" <td>101.598512</td>\n",
|
| 411 |
-
" </tr>\n",
|
| 412 |
-
" <tr>\n",
|
| 413 |
-
" <th>stator_winding</th>\n",
|
| 414 |
-
" <td>1330816.0</td>\n",
|
| 415 |
-
" <td>66.342745</td>\n",
|
| 416 |
-
" <td>28.672061</td>\n",
|
| 417 |
-
" <td>18.585815</td>\n",
|
| 418 |
-
" <td>42.787957</td>\n",
|
| 419 |
-
" <td>65.110129</td>\n",
|
| 420 |
-
" <td>88.141137</td>\n",
|
| 421 |
-
" <td>141.362885</td>\n",
|
| 422 |
-
" </tr>\n",
|
| 423 |
-
" <tr>\n",
|
| 424 |
-
" <th>u_d</th>\n",
|
| 425 |
-
" <td>1330816.0</td>\n",
|
| 426 |
-
" <td>-25.133809</td>\n",
|
| 427 |
-
" <td>63.091972</td>\n",
|
| 428 |
-
" <td>-131.530411</td>\n",
|
| 429 |
-
" <td>-78.690904</td>\n",
|
| 430 |
-
" <td>-7.429755</td>\n",
|
| 431 |
-
" <td>1.470271</td>\n",
|
| 432 |
-
" <td>131.469788</td>\n",
|
| 433 |
-
" </tr>\n",
|
| 434 |
-
" <tr>\n",
|
| 435 |
-
" <th>stator_tooth</th>\n",
|
| 436 |
-
" <td>1330816.0</td>\n",
|
| 437 |
-
" <td>56.878582</td>\n",
|
| 438 |
-
" <td>22.952233</td>\n",
|
| 439 |
-
" <td>18.133976</td>\n",
|
| 440 |
-
" <td>38.416012</td>\n",
|
| 441 |
-
" <td>56.036345</td>\n",
|
| 442 |
-
" <td>75.586682</td>\n",
|
| 443 |
-
" <td>111.946423</td>\n",
|
| 444 |
-
" </tr>\n",
|
| 445 |
-
" <tr>\n",
|
| 446 |
-
" <th>motor_speed</th>\n",
|
| 447 |
-
" <td>1330816.0</td>\n",
|
| 448 |
-
" <td>2202.080728</td>\n",
|
| 449 |
-
" <td>1859.663350</td>\n",
|
| 450 |
-
" <td>-275.549144</td>\n",
|
| 451 |
-
" <td>317.110665</td>\n",
|
| 452 |
-
" <td>1999.976685</td>\n",
|
| 453 |
-
" <td>3760.639058</td>\n",
|
| 454 |
-
" <td>6000.015137</td>\n",
|
| 455 |
-
" </tr>\n",
|
| 456 |
-
" <tr>\n",
|
| 457 |
-
" <th>i_d</th>\n",
|
| 458 |
-
" <td>1330816.0</td>\n",
|
| 459 |
-
" <td>-68.716810</td>\n",
|
| 460 |
-
" <td>64.933233</td>\n",
|
| 461 |
-
" <td>-278.003632</td>\n",
|
| 462 |
-
" <td>-115.406060</td>\n",
|
| 463 |
-
" <td>-51.093763</td>\n",
|
| 464 |
-
" <td>-2.979688</td>\n",
|
| 465 |
-
" <td>0.051897</td>\n",
|
| 466 |
-
" </tr>\n",
|
| 467 |
-
" <tr>\n",
|
| 468 |
-
" <th>i_q</th>\n",
|
| 469 |
-
" <td>1330816.0</td>\n",
|
| 470 |
-
" <td>37.412782</td>\n",
|
| 471 |
-
" <td>92.181880</td>\n",
|
| 472 |
-
" <td>-293.426793</td>\n",
|
| 473 |
-
" <td>1.095863</td>\n",
|
| 474 |
-
" <td>15.774007</td>\n",
|
| 475 |
-
" <td>100.612150</td>\n",
|
| 476 |
-
" <td>301.707855</td>\n",
|
| 477 |
-
" </tr>\n",
|
| 478 |
-
" <tr>\n",
|
| 479 |
-
" <th>pm</th>\n",
|
| 480 |
-
" <td>1330816.0</td>\n",
|
| 481 |
-
" <td>58.506776</td>\n",
|
| 482 |
-
" <td>19.001498</td>\n",
|
| 483 |
-
" <td>20.856956</td>\n",
|
| 484 |
-
" <td>43.151582</td>\n",
|
| 485 |
-
" <td>60.266287</td>\n",
|
| 486 |
-
" <td>72.008371</td>\n",
|
| 487 |
-
" <td>113.606628</td>\n",
|
| 488 |
-
" </tr>\n",
|
| 489 |
-
" <tr>\n",
|
| 490 |
-
" <th>stator_yoke</th>\n",
|
| 491 |
-
" <td>1330816.0</td>\n",
|
| 492 |
-
" <td>48.187965</td>\n",
|
| 493 |
-
" <td>19.991004</td>\n",
|
| 494 |
-
" <td>18.076689</td>\n",
|
| 495 |
-
" <td>31.990333</td>\n",
|
| 496 |
-
" <td>45.625509</td>\n",
|
| 497 |
-
" <td>61.460828</td>\n",
|
| 498 |
-
" <td>101.147964</td>\n",
|
| 499 |
-
" </tr>\n",
|
| 500 |
-
" <tr>\n",
|
| 501 |
-
" <th>ambient</th>\n",
|
| 502 |
-
" <td>1330816.0</td>\n",
|
| 503 |
-
" <td>24.565256</td>\n",
|
| 504 |
-
" <td>1.929522</td>\n",
|
| 505 |
-
" <td>8.783478</td>\n",
|
| 506 |
-
" <td>23.184804</td>\n",
|
| 507 |
-
" <td>24.797327</td>\n",
|
| 508 |
-
" <td>26.217019</td>\n",
|
| 509 |
-
" <td>30.714205</td>\n",
|
| 510 |
-
" </tr>\n",
|
| 511 |
-
" <tr>\n",
|
| 512 |
-
" <th>torque</th>\n",
|
| 513 |
-
" <td>1330816.0</td>\n",
|
| 514 |
-
" <td>31.106032</td>\n",
|
| 515 |
-
" <td>77.135755</td>\n",
|
| 516 |
-
" <td>-246.466663</td>\n",
|
| 517 |
-
" <td>-0.137427</td>\n",
|
| 518 |
-
" <td>10.860354</td>\n",
|
| 519 |
-
" <td>91.597176</td>\n",
|
| 520 |
-
" <td>261.005707</td>\n",
|
| 521 |
-
" </tr>\n",
|
| 522 |
-
" </tbody>\n",
|
| 523 |
-
"</table>\n",
|
| 524 |
-
"</div>"
|
| 525 |
-
],
|
| 526 |
-
"text/plain": [
|
| 527 |
-
" count mean std min 25% \\\n",
|
| 528 |
-
"u_q 1330816.0 54.279005 44.173234 -25.290930 12.069925 \n",
|
| 529 |
-
"coolant 1330816.0 36.229995 21.786149 10.623751 18.698135 \n",
|
| 530 |
-
"stator_winding 1330816.0 66.342745 28.672061 18.585815 42.787957 \n",
|
| 531 |
-
"u_d 1330816.0 -25.133809 63.091972 -131.530411 -78.690904 \n",
|
| 532 |
-
"stator_tooth 1330816.0 56.878582 22.952233 18.133976 38.416012 \n",
|
| 533 |
-
"motor_speed 1330816.0 2202.080728 1859.663350 -275.549144 317.110665 \n",
|
| 534 |
-
"i_d 1330816.0 -68.716810 64.933233 -278.003632 -115.406060 \n",
|
| 535 |
-
"i_q 1330816.0 37.412782 92.181880 -293.426793 1.095863 \n",
|
| 536 |
-
"pm 1330816.0 58.506776 19.001498 20.856956 43.151582 \n",
|
| 537 |
-
"stator_yoke 1330816.0 48.187965 19.991004 18.076689 31.990333 \n",
|
| 538 |
-
"ambient 1330816.0 24.565256 1.929522 8.783478 23.184804 \n",
|
| 539 |
-
"torque 1330816.0 31.106032 77.135755 -246.466663 -0.137427 \n",
|
| 540 |
-
"\n",
|
| 541 |
-
" 50% 75% max \n",
|
| 542 |
-
"u_q 48.938181 90.034393 133.036994 \n",
|
| 543 |
-
"coolant 26.900141 49.857487 101.598512 \n",
|
| 544 |
-
"stator_winding 65.110129 88.141137 141.362885 \n",
|
| 545 |
-
"u_d -7.429755 1.470271 131.469788 \n",
|
| 546 |
-
"stator_tooth 56.036345 75.586682 111.946423 \n",
|
| 547 |
-
"motor_speed 1999.976685 3760.639058 6000.015137 \n",
|
| 548 |
-
"i_d -51.093763 -2.979688 0.051897 \n",
|
| 549 |
-
"i_q 15.774007 100.612150 301.707855 \n",
|
| 550 |
-
"pm 60.266287 72.008371 113.606628 \n",
|
| 551 |
-
"stator_yoke 45.625509 61.460828 101.147964 \n",
|
| 552 |
-
"ambient 24.797327 26.217019 30.714205 \n",
|
| 553 |
-
"torque 10.860354 91.597176 261.005707 "
|
| 554 |
-
]
|
| 555 |
-
},
|
| 556 |
-
"execution_count": 5,
|
| 557 |
-
"metadata": {},
|
| 558 |
-
"output_type": "execute_result"
|
| 559 |
-
}
|
| 560 |
-
],
|
| 561 |
"source": [
|
| 562 |
"df.describe().T"
|
| 563 |
]
|
| 564 |
},
|
| 565 |
{
|
| 566 |
"cell_type": "code",
|
| 567 |
-
"execution_count":
|
| 568 |
"metadata": {
|
| 569 |
"execution": {
|
| 570 |
"iopub.execute_input": "2023-02-28T07:58:04.736648Z",
|
|
@@ -574,25 +345,14 @@
|
|
| 574 |
"shell.execute_reply.started": "2023-02-28T07:58:04.736575Z"
|
| 575 |
}
|
| 576 |
},
|
| 577 |
-
"outputs": [
|
| 578 |
-
{
|
| 579 |
-
"data": {
|
| 580 |
-
"text/plain": [
|
| 581 |
-
"False"
|
| 582 |
-
]
|
| 583 |
-
},
|
| 584 |
-
"execution_count": 6,
|
| 585 |
-
"metadata": {},
|
| 586 |
-
"output_type": "execute_result"
|
| 587 |
-
}
|
| 588 |
-
],
|
| 589 |
"source": [
|
| 590 |
"df.isnull().values.any()"
|
| 591 |
]
|
| 592 |
},
|
| 593 |
{
|
| 594 |
"cell_type": "code",
|
| 595 |
-
"execution_count":
|
| 596 |
"metadata": {
|
| 597 |
"execution": {
|
| 598 |
"iopub.execute_input": "2023-02-28T07:58:04.765667Z",
|
|
@@ -602,18 +362,7 @@
|
|
| 602 |
"shell.execute_reply.started": "2023-02-28T07:58:04.765595Z"
|
| 603 |
}
|
| 604 |
},
|
| 605 |
-
"outputs": [
|
| 606 |
-
{
|
| 607 |
-
"data": {
|
| 608 |
-
"text/plain": [
|
| 609 |
-
"Series([], dtype: int64)"
|
| 610 |
-
]
|
| 611 |
-
},
|
| 612 |
-
"execution_count": 7,
|
| 613 |
-
"metadata": {},
|
| 614 |
-
"output_type": "execute_result"
|
| 615 |
-
}
|
| 616 |
-
],
|
| 617 |
"source": [
|
| 618 |
"# Count the number of NaNs each column has.\n",
|
| 619 |
"nans=pd.isnull(df).sum()\n",
|
|
@@ -622,7 +371,7 @@
|
|
| 622 |
},
|
| 623 |
{
|
| 624 |
"cell_type": "code",
|
| 625 |
-
"execution_count":
|
| 626 |
"metadata": {
|
| 627 |
"execution": {
|
| 628 |
"iopub.execute_input": "2023-02-28T07:58:04.812012Z",
|
|
@@ -632,19 +381,7 @@
|
|
| 632 |
"shell.execute_reply.started": "2023-02-28T07:58:04.811961Z"
|
| 633 |
}
|
| 634 |
},
|
| 635 |
-
"outputs": [
|
| 636 |
-
{
|
| 637 |
-
"data": {
|
| 638 |
-
"text/plain": [
|
| 639 |
-
"float64 12\n",
|
| 640 |
-
"Name: count, dtype: int64"
|
| 641 |
-
]
|
| 642 |
-
},
|
| 643 |
-
"execution_count": 8,
|
| 644 |
-
"metadata": {},
|
| 645 |
-
"output_type": "execute_result"
|
| 646 |
-
}
|
| 647 |
-
],
|
| 648 |
"source": [
|
| 649 |
"# Count the column types\n",
|
| 650 |
"df.dtypes.value_counts()"
|
|
@@ -652,7 +389,7 @@
|
|
| 652 |
},
|
| 653 |
{
|
| 654 |
"cell_type": "code",
|
| 655 |
-
"execution_count":
|
| 656 |
"metadata": {
|
| 657 |
"execution": {
|
| 658 |
"iopub.execute_input": "2023-02-28T07:58:04.824255Z",
|
|
@@ -662,276 +399,7 @@
|
|
| 662 |
"shell.execute_reply.started": "2023-02-28T07:58:04.824186Z"
|
| 663 |
}
|
| 664 |
},
|
| 665 |
-
"outputs": [
|
| 666 |
-
{
|
| 667 |
-
"data": {
|
| 668 |
-
"text/html": [
|
| 669 |
-
"<div>\n",
|
| 670 |
-
"<style scoped>\n",
|
| 671 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 672 |
-
" vertical-align: middle;\n",
|
| 673 |
-
" }\n",
|
| 674 |
-
"\n",
|
| 675 |
-
" .dataframe tbody tr th {\n",
|
| 676 |
-
" vertical-align: top;\n",
|
| 677 |
-
" }\n",
|
| 678 |
-
"\n",
|
| 679 |
-
" .dataframe thead th {\n",
|
| 680 |
-
" text-align: right;\n",
|
| 681 |
-
" }\n",
|
| 682 |
-
"</style>\n",
|
| 683 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 684 |
-
" <thead>\n",
|
| 685 |
-
" <tr style=\"text-align: right;\">\n",
|
| 686 |
-
" <th></th>\n",
|
| 687 |
-
" <th>u_q</th>\n",
|
| 688 |
-
" <th>coolant</th>\n",
|
| 689 |
-
" <th>stator_winding</th>\n",
|
| 690 |
-
" <th>u_d</th>\n",
|
| 691 |
-
" <th>stator_tooth</th>\n",
|
| 692 |
-
" <th>motor_speed</th>\n",
|
| 693 |
-
" <th>i_d</th>\n",
|
| 694 |
-
" <th>i_q</th>\n",
|
| 695 |
-
" <th>pm</th>\n",
|
| 696 |
-
" <th>stator_yoke</th>\n",
|
| 697 |
-
" <th>ambient</th>\n",
|
| 698 |
-
" <th>torque</th>\n",
|
| 699 |
-
" </tr>\n",
|
| 700 |
-
" </thead>\n",
|
| 701 |
-
" <tbody>\n",
|
| 702 |
-
" <tr>\n",
|
| 703 |
-
" <th>u_q</th>\n",
|
| 704 |
-
" <td>1.000000</td>\n",
|
| 705 |
-
" <td>0.051721</td>\n",
|
| 706 |
-
" <td>0.050610</td>\n",
|
| 707 |
-
" <td>0.004702</td>\n",
|
| 708 |
-
" <td>0.104373</td>\n",
|
| 709 |
-
" <td>0.683556</td>\n",
|
| 710 |
-
" <td>-0.100357</td>\n",
|
| 711 |
-
" <td>-0.124589</td>\n",
|
| 712 |
-
" <td>0.122365</td>\n",
|
| 713 |
-
" <td>0.090992</td>\n",
|
| 714 |
-
" <td>0.150264</td>\n",
|
| 715 |
-
" <td>-0.136215</td>\n",
|
| 716 |
-
" </tr>\n",
|
| 717 |
-
" <tr>\n",
|
| 718 |
-
" <th>coolant</th>\n",
|
| 719 |
-
" <td>0.051721</td>\n",
|
| 720 |
-
" <td>1.000000</td>\n",
|
| 721 |
-
" <td>0.504835</td>\n",
|
| 722 |
-
" <td>0.195517</td>\n",
|
| 723 |
-
" <td>0.674974</td>\n",
|
| 724 |
-
" <td>0.011872</td>\n",
|
| 725 |
-
" <td>0.074865</td>\n",
|
| 726 |
-
" <td>-0.256389</td>\n",
|
| 727 |
-
" <td>0.467117</td>\n",
|
| 728 |
-
" <td>0.860750</td>\n",
|
| 729 |
-
" <td>0.525963</td>\n",
|
| 730 |
-
" <td>-0.257982</td>\n",
|
| 731 |
-
" </tr>\n",
|
| 732 |
-
" <tr>\n",
|
| 733 |
-
" <th>stator_winding</th>\n",
|
| 734 |
-
" <td>0.050610</td>\n",
|
| 735 |
-
" <td>0.504835</td>\n",
|
| 736 |
-
" <td>1.000000</td>\n",
|
| 737 |
-
" <td>-0.234950</td>\n",
|
| 738 |
-
" <td>0.970135</td>\n",
|
| 739 |
-
" <td>0.432034</td>\n",
|
| 740 |
-
" <td>-0.624370</td>\n",
|
| 741 |
-
" <td>0.065617</td>\n",
|
| 742 |
-
" <td>0.795893</td>\n",
|
| 743 |
-
" <td>0.860268</td>\n",
|
| 744 |
-
" <td>0.333208</td>\n",
|
| 745 |
-
" <td>0.095510</td>\n",
|
| 746 |
-
" </tr>\n",
|
| 747 |
-
" <tr>\n",
|
| 748 |
-
" <th>u_d</th>\n",
|
| 749 |
-
" <td>0.004702</td>\n",
|
| 750 |
-
" <td>0.195517</td>\n",
|
| 751 |
-
" <td>-0.234950</td>\n",
|
| 752 |
-
" <td>1.000000</td>\n",
|
| 753 |
-
" <td>-0.142749</td>\n",
|
| 754 |
-
" <td>-0.288472</td>\n",
|
| 755 |
-
" <td>0.448331</td>\n",
|
| 756 |
-
" <td>-0.723069</td>\n",
|
| 757 |
-
" <td>-0.172031</td>\n",
|
| 758 |
-
" <td>-0.008098</td>\n",
|
| 759 |
-
" <td>0.203647</td>\n",
|
| 760 |
-
" <td>-0.753779</td>\n",
|
| 761 |
-
" </tr>\n",
|
| 762 |
-
" <tr>\n",
|
| 763 |
-
" <th>stator_tooth</th>\n",
|
| 764 |
-
" <td>0.104373</td>\n",
|
| 765 |
-
" <td>0.674974</td>\n",
|
| 766 |
-
" <td>0.970135</td>\n",
|
| 767 |
-
" <td>-0.142749</td>\n",
|
| 768 |
-
" <td>1.000000</td>\n",
|
| 769 |
-
" <td>0.398431</td>\n",
|
| 770 |
-
" <td>-0.487062</td>\n",
|
| 771 |
-
" <td>-0.042294</td>\n",
|
| 772 |
-
" <td>0.832084</td>\n",
|
| 773 |
-
" <td>0.953115</td>\n",
|
| 774 |
-
" <td>0.443470</td>\n",
|
| 775 |
-
" <td>-0.018413</td>\n",
|
| 776 |
-
" </tr>\n",
|
| 777 |
-
" <tr>\n",
|
| 778 |
-
" <th>motor_speed</th>\n",
|
| 779 |
-
" <td>0.683556</td>\n",
|
| 780 |
-
" <td>0.011872</td>\n",
|
| 781 |
-
" <td>0.432034</td>\n",
|
| 782 |
-
" <td>-0.288472</td>\n",
|
| 783 |
-
" <td>0.398431</td>\n",
|
| 784 |
-
" <td>1.000000</td>\n",
|
| 785 |
-
" <td>-0.700609</td>\n",
|
| 786 |
-
" <td>-0.068881</td>\n",
|
| 787 |
-
" <td>0.458947</td>\n",
|
| 788 |
-
" <td>0.255790</td>\n",
|
| 789 |
-
" <td>0.118232</td>\n",
|
| 790 |
-
" <td>-0.043903</td>\n",
|
| 791 |
-
" </tr>\n",
|
| 792 |
-
" <tr>\n",
|
| 793 |
-
" <th>i_d</th>\n",
|
| 794 |
-
" <td>-0.100357</td>\n",
|
| 795 |
-
" <td>0.074865</td>\n",
|
| 796 |
-
" <td>-0.624370</td>\n",
|
| 797 |
-
" <td>0.448331</td>\n",
|
| 798 |
-
" <td>-0.487062</td>\n",
|
| 799 |
-
" <td>-0.700609</td>\n",
|
| 800 |
-
" <td>1.000000</td>\n",
|
| 801 |
-
" <td>-0.231344</td>\n",
|
| 802 |
-
" <td>-0.427736</td>\n",
|
| 803 |
-
" <td>-0.278005</td>\n",
|
| 804 |
-
" <td>0.016397</td>\n",
|
| 805 |
-
" <td>-0.274097</td>\n",
|
| 806 |
-
" </tr>\n",
|
| 807 |
-
" <tr>\n",
|
| 808 |
-
" <th>i_q</th>\n",
|
| 809 |
-
" <td>-0.124589</td>\n",
|
| 810 |
-
" <td>-0.256389</td>\n",
|
| 811 |
-
" <td>0.065617</td>\n",
|
| 812 |
-
" <td>-0.723069</td>\n",
|
| 813 |
-
" <td>-0.042294</td>\n",
|
| 814 |
-
" <td>-0.068881</td>\n",
|
| 815 |
-
" <td>-0.231344</td>\n",
|
| 816 |
-
" <td>1.000000</td>\n",
|
| 817 |
-
" <td>-0.142416</td>\n",
|
| 818 |
-
" <td>-0.131466</td>\n",
|
| 819 |
-
" <td>-0.314044</td>\n",
|
| 820 |
-
" <td>0.996457</td>\n",
|
| 821 |
-
" </tr>\n",
|
| 822 |
-
" <tr>\n",
|
| 823 |
-
" <th>pm</th>\n",
|
| 824 |
-
" <td>0.122365</td>\n",
|
| 825 |
-
" <td>0.467117</td>\n",
|
| 826 |
-
" <td>0.795893</td>\n",
|
| 827 |
-
" <td>-0.172031</td>\n",
|
| 828 |
-
" <td>0.832084</td>\n",
|
| 829 |
-
" <td>0.458947</td>\n",
|
| 830 |
-
" <td>-0.427736</td>\n",
|
| 831 |
-
" <td>-0.142416</td>\n",
|
| 832 |
-
" <td>1.000000</td>\n",
|
| 833 |
-
" <td>0.756684</td>\n",
|
| 834 |
-
" <td>0.513728</td>\n",
|
| 835 |
-
" <td>-0.117138</td>\n",
|
| 836 |
-
" </tr>\n",
|
| 837 |
-
" <tr>\n",
|
| 838 |
-
" <th>stator_yoke</th>\n",
|
| 839 |
-
" <td>0.090992</td>\n",
|
| 840 |
-
" <td>0.860750</td>\n",
|
| 841 |
-
" <td>0.860268</td>\n",
|
| 842 |
-
" <td>-0.008098</td>\n",
|
| 843 |
-
" <td>0.953115</td>\n",
|
| 844 |
-
" <td>0.255790</td>\n",
|
| 845 |
-
" <td>-0.278005</td>\n",
|
| 846 |
-
" <td>-0.131466</td>\n",
|
| 847 |
-
" <td>0.756684</td>\n",
|
| 848 |
-
" <td>1.000000</td>\n",
|
| 849 |
-
" <td>0.520382</td>\n",
|
| 850 |
-
" <td>-0.117118</td>\n",
|
| 851 |
-
" </tr>\n",
|
| 852 |
-
" <tr>\n",
|
| 853 |
-
" <th>ambient</th>\n",
|
| 854 |
-
" <td>0.150264</td>\n",
|
| 855 |
-
" <td>0.525963</td>\n",
|
| 856 |
-
" <td>0.333208</td>\n",
|
| 857 |
-
" <td>0.203647</td>\n",
|
| 858 |
-
" <td>0.443470</td>\n",
|
| 859 |
-
" <td>0.118232</td>\n",
|
| 860 |
-
" <td>0.016397</td>\n",
|
| 861 |
-
" <td>-0.314044</td>\n",
|
| 862 |
-
" <td>0.513728</td>\n",
|
| 863 |
-
" <td>0.520382</td>\n",
|
| 864 |
-
" <td>1.000000</td>\n",
|
| 865 |
-
" <td>-0.315747</td>\n",
|
| 866 |
-
" </tr>\n",
|
| 867 |
-
" <tr>\n",
|
| 868 |
-
" <th>torque</th>\n",
|
| 869 |
-
" <td>-0.136215</td>\n",
|
| 870 |
-
" <td>-0.257982</td>\n",
|
| 871 |
-
" <td>0.095510</td>\n",
|
| 872 |
-
" <td>-0.753779</td>\n",
|
| 873 |
-
" <td>-0.018413</td>\n",
|
| 874 |
-
" <td>-0.043903</td>\n",
|
| 875 |
-
" <td>-0.274097</td>\n",
|
| 876 |
-
" <td>0.996457</td>\n",
|
| 877 |
-
" <td>-0.117138</td>\n",
|
| 878 |
-
" <td>-0.117118</td>\n",
|
| 879 |
-
" <td>-0.315747</td>\n",
|
| 880 |
-
" <td>1.000000</td>\n",
|
| 881 |
-
" </tr>\n",
|
| 882 |
-
" </tbody>\n",
|
| 883 |
-
"</table>\n",
|
| 884 |
-
"</div>"
|
| 885 |
-
],
|
| 886 |
-
"text/plain": [
|
| 887 |
-
" u_q coolant stator_winding u_d stator_tooth \\\n",
|
| 888 |
-
"u_q 1.000000 0.051721 0.050610 0.004702 0.104373 \n",
|
| 889 |
-
"coolant 0.051721 1.000000 0.504835 0.195517 0.674974 \n",
|
| 890 |
-
"stator_winding 0.050610 0.504835 1.000000 -0.234950 0.970135 \n",
|
| 891 |
-
"u_d 0.004702 0.195517 -0.234950 1.000000 -0.142749 \n",
|
| 892 |
-
"stator_tooth 0.104373 0.674974 0.970135 -0.142749 1.000000 \n",
|
| 893 |
-
"motor_speed 0.683556 0.011872 0.432034 -0.288472 0.398431 \n",
|
| 894 |
-
"i_d -0.100357 0.074865 -0.624370 0.448331 -0.487062 \n",
|
| 895 |
-
"i_q -0.124589 -0.256389 0.065617 -0.723069 -0.042294 \n",
|
| 896 |
-
"pm 0.122365 0.467117 0.795893 -0.172031 0.832084 \n",
|
| 897 |
-
"stator_yoke 0.090992 0.860750 0.860268 -0.008098 0.953115 \n",
|
| 898 |
-
"ambient 0.150264 0.525963 0.333208 0.203647 0.443470 \n",
|
| 899 |
-
"torque -0.136215 -0.257982 0.095510 -0.753779 -0.018413 \n",
|
| 900 |
-
"\n",
|
| 901 |
-
" motor_speed i_d i_q pm stator_yoke \\\n",
|
| 902 |
-
"u_q 0.683556 -0.100357 -0.124589 0.122365 0.090992 \n",
|
| 903 |
-
"coolant 0.011872 0.074865 -0.256389 0.467117 0.860750 \n",
|
| 904 |
-
"stator_winding 0.432034 -0.624370 0.065617 0.795893 0.860268 \n",
|
| 905 |
-
"u_d -0.288472 0.448331 -0.723069 -0.172031 -0.008098 \n",
|
| 906 |
-
"stator_tooth 0.398431 -0.487062 -0.042294 0.832084 0.953115 \n",
|
| 907 |
-
"motor_speed 1.000000 -0.700609 -0.068881 0.458947 0.255790 \n",
|
| 908 |
-
"i_d -0.700609 1.000000 -0.231344 -0.427736 -0.278005 \n",
|
| 909 |
-
"i_q -0.068881 -0.231344 1.000000 -0.142416 -0.131466 \n",
|
| 910 |
-
"pm 0.458947 -0.427736 -0.142416 1.000000 0.756684 \n",
|
| 911 |
-
"stator_yoke 0.255790 -0.278005 -0.131466 0.756684 1.000000 \n",
|
| 912 |
-
"ambient 0.118232 0.016397 -0.314044 0.513728 0.520382 \n",
|
| 913 |
-
"torque -0.043903 -0.274097 0.996457 -0.117138 -0.117118 \n",
|
| 914 |
-
"\n",
|
| 915 |
-
" ambient torque \n",
|
| 916 |
-
"u_q 0.150264 -0.136215 \n",
|
| 917 |
-
"coolant 0.525963 -0.257982 \n",
|
| 918 |
-
"stator_winding 0.333208 0.095510 \n",
|
| 919 |
-
"u_d 0.203647 -0.753779 \n",
|
| 920 |
-
"stator_tooth 0.443470 -0.018413 \n",
|
| 921 |
-
"motor_speed 0.118232 -0.043903 \n",
|
| 922 |
-
"i_d 0.016397 -0.274097 \n",
|
| 923 |
-
"i_q -0.314044 0.996457 \n",
|
| 924 |
-
"pm 0.513728 -0.117138 \n",
|
| 925 |
-
"stator_yoke 0.520382 -0.117118 \n",
|
| 926 |
-
"ambient 1.000000 -0.315747 \n",
|
| 927 |
-
"torque -0.315747 1.000000 "
|
| 928 |
-
]
|
| 929 |
-
},
|
| 930 |
-
"execution_count": 9,
|
| 931 |
-
"metadata": {},
|
| 932 |
-
"output_type": "execute_result"
|
| 933 |
-
}
|
| 934 |
-
],
|
| 935 |
"source": [
|
| 936 |
"df.corr()"
|
| 937 |
]
|
|
@@ -1287,7 +755,7 @@
|
|
| 1287 |
},
|
| 1288 |
{
|
| 1289 |
"cell_type": "code",
|
| 1290 |
-
"execution_count":
|
| 1291 |
"metadata": {
|
| 1292 |
"execution": {
|
| 1293 |
"iopub.execute_input": "2023-02-28T08:01:18.238465Z",
|
|
@@ -1305,7 +773,7 @@
|
|
| 1305 |
},
|
| 1306 |
{
|
| 1307 |
"cell_type": "code",
|
| 1308 |
-
"execution_count":
|
| 1309 |
"metadata": {
|
| 1310 |
"execution": {
|
| 1311 |
"iopub.execute_input": "2023-02-28T08:01:18.347741Z",
|
|
@@ -1326,7 +794,7 @@
|
|
| 1326 |
},
|
| 1327 |
{
|
| 1328 |
"cell_type": "code",
|
| 1329 |
-
"execution_count":
|
| 1330 |
"metadata": {
|
| 1331 |
"execution": {
|
| 1332 |
"iopub.execute_input": "2023-02-28T08:01:18.862666Z",
|
|
@@ -1336,18 +804,7 @@
|
|
| 1336 |
"shell.execute_reply.started": "2023-02-28T08:01:18.862615Z"
|
| 1337 |
}
|
| 1338 |
},
|
| 1339 |
-
"outputs": [
|
| 1340 |
-
{
|
| 1341 |
-
"data": {
|
| 1342 |
-
"text/plain": [
|
| 1343 |
-
"(266164, 11)"
|
| 1344 |
-
]
|
| 1345 |
-
},
|
| 1346 |
-
"execution_count": 22,
|
| 1347 |
-
"metadata": {},
|
| 1348 |
-
"output_type": "execute_result"
|
| 1349 |
-
}
|
| 1350 |
-
],
|
| 1351 |
"source": [
|
| 1352 |
"X_test.shape"
|
| 1353 |
]
|
|
@@ -1732,7 +1189,7 @@
|
|
| 1732 |
},
|
| 1733 |
{
|
| 1734 |
"cell_type": "code",
|
| 1735 |
-
"execution_count":
|
| 1736 |
"metadata": {
|
| 1737 |
"execution": {
|
| 1738 |
"iopub.execute_input": "2023-02-28T08:02:05.781217Z",
|
|
@@ -1892,7 +1349,7 @@
|
|
| 1892 |
},
|
| 1893 |
{
|
| 1894 |
"cell_type": "code",
|
| 1895 |
-
"execution_count":
|
| 1896 |
"metadata": {
|
| 1897 |
"execution": {
|
| 1898 |
"iopub.status.busy": "2023-02-28T08:06:29.921532Z",
|
|
@@ -1995,7 +1452,7 @@
|
|
| 1995 |
},
|
| 1996 |
{
|
| 1997 |
"cell_type": "code",
|
| 1998 |
-
"execution_count":
|
| 1999 |
"metadata": {
|
| 2000 |
"execution": {
|
| 2001 |
"iopub.execute_input": "2023-02-28T08:06:47.156652Z",
|
|
@@ -2013,7 +1470,7 @@
|
|
| 2013 |
},
|
| 2014 |
{
|
| 2015 |
"cell_type": "code",
|
| 2016 |
-
"execution_count":
|
| 2017 |
"metadata": {
|
| 2018 |
"execution": {
|
| 2019 |
"iopub.execute_input": "2023-02-28T08:16:56.707730Z",
|
|
@@ -2037,7 +1494,7 @@
|
|
| 2037 |
},
|
| 2038 |
{
|
| 2039 |
"cell_type": "code",
|
| 2040 |
-
"execution_count":
|
| 2041 |
"metadata": {
|
| 2042 |
"execution": {
|
| 2043 |
"iopub.execute_input": "2023-02-28T08:20:42.723037Z",
|
|
@@ -2047,25 +1504,14 @@
|
|
| 2047 |
"shell.execute_reply.started": "2023-02-28T08:20:42.722967Z"
|
| 2048 |
}
|
| 2049 |
},
|
| 2050 |
-
"outputs": [
|
| 2051 |
-
{
|
| 2052 |
-
"data": {
|
| 2053 |
-
"text/plain": [
|
| 2054 |
-
"33.34830764198559"
|
| 2055 |
-
]
|
| 2056 |
-
},
|
| 2057 |
-
"execution_count": 29,
|
| 2058 |
-
"metadata": {},
|
| 2059 |
-
"output_type": "execute_result"
|
| 2060 |
-
}
|
| 2061 |
-
],
|
| 2062 |
"source": [
|
| 2063 |
"np.sqrt(mean_squared_error(y_test,y_pred))"
|
| 2064 |
]
|
| 2065 |
},
|
| 2066 |
{
|
| 2067 |
"cell_type": "code",
|
| 2068 |
-
"execution_count":
|
| 2069 |
"metadata": {
|
| 2070 |
"execution": {
|
| 2071 |
"iopub.execute_input": "2023-02-28T08:11:12.055602Z",
|
|
@@ -2078,16 +1524,16 @@
|
|
| 2078 |
"outputs": [
|
| 2079 |
{
|
| 2080 |
"ename": "KeyError",
|
| 2081 |
-
"evalue": "\"None of [Index([ 0, 1, 2, 3,
|
| 2082 |
"output_type": "error",
|
| 2083 |
"traceback": [
|
| 2084 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 2085 |
"\u001b[0;31mKeyError\u001b[0m Traceback (most recent call last)",
|
| 2086 |
-
"\u001b[0;32m<ipython-input-
|
| 2087 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/frame.py\u001b[0m in \u001b[0;36m__getitem__\u001b[0;34m(self, key)\u001b[0m\n\u001b[1;32m 3897\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mis_iterator\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\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 3898\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3899\u001b[0;31m \u001b[0mindexer\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcolumns\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_indexer_strict\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"columns\"\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[0m\u001b[1;32m 3900\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3901\u001b[0m \u001b[0;31m# take() does not accept boolean indexers\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 2088 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py\u001b[0m in \u001b[0;36m_get_indexer_strict\u001b[0;34m(self, key, axis_name)\u001b[0m\n\u001b[1;32m 6113\u001b[0m \u001b[0mkeyarr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindexer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnew_indexer\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reindex_non_unique\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkeyarr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6114\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 6115\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_raise_if_missing\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkeyarr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindexer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis_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 6116\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6117\u001b[0m \u001b[0mkeyarr\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtake\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mindexer\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 2089 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py\u001b[0m in \u001b[0;36m_raise_if_missing\u001b[0;34m(self, key, indexer, axis_name)\u001b[0m\n\u001b[1;32m 6174\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0muse_interval_msg\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6175\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 6176\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mKeyError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34mf\"None of [{key}] are in the [{axis_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 6177\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6178\u001b[0m \u001b[0mnot_found\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mensure_index\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mmissing_mask\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnonzero\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\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[0munique\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",
|
| 2090 |
-
"\u001b[0;31mKeyError\u001b[0m: \"None of [Index([ 0, 1, 2, 3,
|
| 2091 |
]
|
| 2092 |
}
|
| 2093 |
],
|
|
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
"metadata": {
|
| 7 |
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
|
| 8 |
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
|
|
|
|
| 60 |
},
|
| 61 |
{
|
| 62 |
"cell_type": "code",
|
| 63 |
+
"execution_count": 2,
|
| 64 |
"metadata": {
|
| 65 |
"execution": {
|
| 66 |
"iopub.execute_input": "2023-02-28T07:58:01.047089Z",
|
|
|
|
| 287 |
"9 -1.634464 0.898013 24.553242 18.301733 19.850624 0.924010 "
|
| 288 |
]
|
| 289 |
},
|
| 290 |
+
"execution_count": 2,
|
| 291 |
"metadata": {},
|
| 292 |
"output_type": "execute_result"
|
| 293 |
}
|
|
|
|
| 301 |
},
|
| 302 |
{
|
| 303 |
"cell_type": "code",
|
| 304 |
+
"execution_count": null,
|
| 305 |
"metadata": {
|
| 306 |
"execution": {
|
| 307 |
"iopub.execute_input": "2023-02-28T07:58:04.166694Z",
|
|
|
|
| 311 |
"shell.execute_reply.started": "2023-02-28T07:58:04.166635Z"
|
| 312 |
}
|
| 313 |
},
|
| 314 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 315 |
"source": [
|
| 316 |
"df.info()"
|
| 317 |
]
|
| 318 |
},
|
| 319 |
{
|
| 320 |
"cell_type": "code",
|
| 321 |
+
"execution_count": null,
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
| 324 |
"iopub.execute_input": "2023-02-28T07:58:04.229634Z",
|
|
|
|
| 328 |
"shell.execute_reply.started": "2023-02-28T07:58:04.229578Z"
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
"source": [
|
| 333 |
"df.describe().T"
|
| 334 |
]
|
| 335 |
},
|
| 336 |
{
|
| 337 |
"cell_type": "code",
|
| 338 |
+
"execution_count": null,
|
| 339 |
"metadata": {
|
| 340 |
"execution": {
|
| 341 |
"iopub.execute_input": "2023-02-28T07:58:04.736648Z",
|
|
|
|
| 345 |
"shell.execute_reply.started": "2023-02-28T07:58:04.736575Z"
|
| 346 |
}
|
| 347 |
},
|
| 348 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
"source": [
|
| 350 |
"df.isnull().values.any()"
|
| 351 |
]
|
| 352 |
},
|
| 353 |
{
|
| 354 |
"cell_type": "code",
|
| 355 |
+
"execution_count": null,
|
| 356 |
"metadata": {
|
| 357 |
"execution": {
|
| 358 |
"iopub.execute_input": "2023-02-28T07:58:04.765667Z",
|
|
|
|
| 362 |
"shell.execute_reply.started": "2023-02-28T07:58:04.765595Z"
|
| 363 |
}
|
| 364 |
},
|
| 365 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
"source": [
|
| 367 |
"# Count the number of NaNs each column has.\n",
|
| 368 |
"nans=pd.isnull(df).sum()\n",
|
|
|
|
| 371 |
},
|
| 372 |
{
|
| 373 |
"cell_type": "code",
|
| 374 |
+
"execution_count": null,
|
| 375 |
"metadata": {
|
| 376 |
"execution": {
|
| 377 |
"iopub.execute_input": "2023-02-28T07:58:04.812012Z",
|
|
|
|
| 381 |
"shell.execute_reply.started": "2023-02-28T07:58:04.811961Z"
|
| 382 |
}
|
| 383 |
},
|
| 384 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
"source": [
|
| 386 |
"# Count the column types\n",
|
| 387 |
"df.dtypes.value_counts()"
|
|
|
|
| 389 |
},
|
| 390 |
{
|
| 391 |
"cell_type": "code",
|
| 392 |
+
"execution_count": null,
|
| 393 |
"metadata": {
|
| 394 |
"execution": {
|
| 395 |
"iopub.execute_input": "2023-02-28T07:58:04.824255Z",
|
|
|
|
| 399 |
"shell.execute_reply.started": "2023-02-28T07:58:04.824186Z"
|
| 400 |
}
|
| 401 |
},
|
| 402 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
"source": [
|
| 404 |
"df.corr()"
|
| 405 |
]
|
|
|
|
| 755 |
},
|
| 756 |
{
|
| 757 |
"cell_type": "code",
|
| 758 |
+
"execution_count": 3,
|
| 759 |
"metadata": {
|
| 760 |
"execution": {
|
| 761 |
"iopub.execute_input": "2023-02-28T08:01:18.238465Z",
|
|
|
|
| 773 |
},
|
| 774 |
{
|
| 775 |
"cell_type": "code",
|
| 776 |
+
"execution_count": 4,
|
| 777 |
"metadata": {
|
| 778 |
"execution": {
|
| 779 |
"iopub.execute_input": "2023-02-28T08:01:18.347741Z",
|
|
|
|
| 794 |
},
|
| 795 |
{
|
| 796 |
"cell_type": "code",
|
| 797 |
+
"execution_count": null,
|
| 798 |
"metadata": {
|
| 799 |
"execution": {
|
| 800 |
"iopub.execute_input": "2023-02-28T08:01:18.862666Z",
|
|
|
|
| 804 |
"shell.execute_reply.started": "2023-02-28T08:01:18.862615Z"
|
| 805 |
}
|
| 806 |
},
|
| 807 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 808 |
"source": [
|
| 809 |
"X_test.shape"
|
| 810 |
]
|
|
|
|
| 1189 |
},
|
| 1190 |
{
|
| 1191 |
"cell_type": "code",
|
| 1192 |
+
"execution_count": 5,
|
| 1193 |
"metadata": {
|
| 1194 |
"execution": {
|
| 1195 |
"iopub.execute_input": "2023-02-28T08:02:05.781217Z",
|
|
|
|
| 1349 |
},
|
| 1350 |
{
|
| 1351 |
"cell_type": "code",
|
| 1352 |
+
"execution_count": 6,
|
| 1353 |
"metadata": {
|
| 1354 |
"execution": {
|
| 1355 |
"iopub.status.busy": "2023-02-28T08:06:29.921532Z",
|
|
|
|
| 1452 |
},
|
| 1453 |
{
|
| 1454 |
"cell_type": "code",
|
| 1455 |
+
"execution_count": 7,
|
| 1456 |
"metadata": {
|
| 1457 |
"execution": {
|
| 1458 |
"iopub.execute_input": "2023-02-28T08:06:47.156652Z",
|
|
|
|
| 1470 |
},
|
| 1471 |
{
|
| 1472 |
"cell_type": "code",
|
| 1473 |
+
"execution_count": 8,
|
| 1474 |
"metadata": {
|
| 1475 |
"execution": {
|
| 1476 |
"iopub.execute_input": "2023-02-28T08:16:56.707730Z",
|
|
|
|
| 1494 |
},
|
| 1495 |
{
|
| 1496 |
"cell_type": "code",
|
| 1497 |
+
"execution_count": null,
|
| 1498 |
"metadata": {
|
| 1499 |
"execution": {
|
| 1500 |
"iopub.execute_input": "2023-02-28T08:20:42.723037Z",
|
|
|
|
| 1504 |
"shell.execute_reply.started": "2023-02-28T08:20:42.722967Z"
|
| 1505 |
}
|
| 1506 |
},
|
| 1507 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1508 |
"source": [
|
| 1509 |
"np.sqrt(mean_squared_error(y_test,y_pred))"
|
| 1510 |
]
|
| 1511 |
},
|
| 1512 |
{
|
| 1513 |
"cell_type": "code",
|
| 1514 |
+
"execution_count": 9,
|
| 1515 |
"metadata": {
|
| 1516 |
"execution": {
|
| 1517 |
"iopub.execute_input": "2023-02-28T08:11:12.055602Z",
|
|
|
|
| 1524 |
"outputs": [
|
| 1525 |
{
|
| 1526 |
"ename": "KeyError",
|
| 1527 |
+
"evalue": "\"None of [Index([ 0, 1, 2, 3, 5, 6, 7, 8,\\n 9, 10,\\n ...\\n 1064642, 1064643, 1064644, 1064645, 1064646, 1064647, 1064648, 1064649,\\n 1064650, 1064651],\\n dtype='int64', length=958186)] are in the [columns]\"",
|
| 1528 |
"output_type": "error",
|
| 1529 |
"traceback": [
|
| 1530 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1531 |
"\u001b[0;31mKeyError\u001b[0m Traceback (most recent call last)",
|
| 1532 |
+
"\u001b[0;32m<ipython-input-9-43075d4b01ce>\u001b[0m in \u001b[0;36m<cell line: 11>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mfold\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mtrain_idx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalid_idx\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32min\u001b[0m \u001b[0menumerate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mKFold\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mn_splits\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mn_splits\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mshuffle\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msplit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX_train\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[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;31m# Fetch the train-validation indices.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 13\u001b[0;31m \u001b[0mX_train\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_train\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mX_train\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mtrain_idx\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_train\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mtrain_idx\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 14\u001b[0m \u001b[0mX_valid\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_valid\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mX_train\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mvalid_idx\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_train\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mvalid_idx\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1533 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/frame.py\u001b[0m in \u001b[0;36m__getitem__\u001b[0;34m(self, key)\u001b[0m\n\u001b[1;32m 3897\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mis_iterator\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\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 3898\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3899\u001b[0;31m \u001b[0mindexer\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcolumns\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_indexer_strict\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"columns\"\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[0m\u001b[1;32m 3900\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3901\u001b[0m \u001b[0;31m# take() does not accept boolean indexers\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1534 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py\u001b[0m in \u001b[0;36m_get_indexer_strict\u001b[0;34m(self, key, axis_name)\u001b[0m\n\u001b[1;32m 6113\u001b[0m \u001b[0mkeyarr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindexer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnew_indexer\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reindex_non_unique\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkeyarr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6114\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 6115\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_raise_if_missing\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkeyarr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindexer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis_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 6116\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6117\u001b[0m \u001b[0mkeyarr\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtake\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mindexer\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1535 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py\u001b[0m in \u001b[0;36m_raise_if_missing\u001b[0;34m(self, key, indexer, axis_name)\u001b[0m\n\u001b[1;32m 6174\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0muse_interval_msg\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6175\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 6176\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mKeyError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34mf\"None of [{key}] are in the [{axis_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 6177\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6178\u001b[0m \u001b[0mnot_found\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mensure_index\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mmissing_mask\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnonzero\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\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[0munique\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",
|
| 1536 |
+
"\u001b[0;31mKeyError\u001b[0m: \"None of [Index([ 0, 1, 2, 3, 5, 6, 7, 8,\\n 9, 10,\\n ...\\n 1064642, 1064643, 1064644, 1064645, 1064646, 1064647, 1064648, 1064649,\\n 1064650, 1064651],\\n dtype='int64', length=958186)] are in the [columns]\""
|
| 1537 |
]
|
| 1538 |
}
|
| 1539 |
],
|
benchmark/sklearn_11/sklearn_11_fixed.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/sklearn_11/sklearn_11_reproduced.ipynb
CHANGED
|
@@ -49,7 +49,7 @@
|
|
| 49 |
},
|
| 50 |
{
|
| 51 |
"cell_type": "code",
|
| 52 |
-
"execution_count":
|
| 53 |
"metadata": {
|
| 54 |
"execution": {
|
| 55 |
"iopub.execute_input": "2023-04-07T16:31:30.923547Z",
|
|
@@ -59,144 +59,7 @@
|
|
| 59 |
"shell.execute_reply.started": "2023-04-07T16:31:30.923493Z"
|
| 60 |
}
|
| 61 |
},
|
| 62 |
-
"outputs": [
|
| 63 |
-
{
|
| 64 |
-
"data": {
|
| 65 |
-
"text/html": [
|
| 66 |
-
"<div>\n",
|
| 67 |
-
"<style scoped>\n",
|
| 68 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 69 |
-
" vertical-align: middle;\n",
|
| 70 |
-
" }\n",
|
| 71 |
-
"\n",
|
| 72 |
-
" .dataframe tbody tr th {\n",
|
| 73 |
-
" vertical-align: top;\n",
|
| 74 |
-
" }\n",
|
| 75 |
-
"\n",
|
| 76 |
-
" .dataframe thead th {\n",
|
| 77 |
-
" text-align: right;\n",
|
| 78 |
-
" }\n",
|
| 79 |
-
"</style>\n",
|
| 80 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 81 |
-
" <thead>\n",
|
| 82 |
-
" <tr style=\"text-align: right;\">\n",
|
| 83 |
-
" <th></th>\n",
|
| 84 |
-
" <th>number_people</th>\n",
|
| 85 |
-
" <th>date</th>\n",
|
| 86 |
-
" <th>timestamp</th>\n",
|
| 87 |
-
" <th>day_of_week</th>\n",
|
| 88 |
-
" <th>is_weekend</th>\n",
|
| 89 |
-
" <th>is_holiday</th>\n",
|
| 90 |
-
" <th>temperature</th>\n",
|
| 91 |
-
" <th>is_start_of_semester</th>\n",
|
| 92 |
-
" <th>is_during_semester</th>\n",
|
| 93 |
-
" <th>month</th>\n",
|
| 94 |
-
" <th>hour</th>\n",
|
| 95 |
-
" </tr>\n",
|
| 96 |
-
" </thead>\n",
|
| 97 |
-
" <tbody>\n",
|
| 98 |
-
" <tr>\n",
|
| 99 |
-
" <th>62179</th>\n",
|
| 100 |
-
" <td>23</td>\n",
|
| 101 |
-
" <td>2017-03-18 18:42:28-07:00</td>\n",
|
| 102 |
-
" <td>67348</td>\n",
|
| 103 |
-
" <td>5</td>\n",
|
| 104 |
-
" <td>1</td>\n",
|
| 105 |
-
" <td>0</td>\n",
|
| 106 |
-
" <td>61.07</td>\n",
|
| 107 |
-
" <td>0</td>\n",
|
| 108 |
-
" <td>1</td>\n",
|
| 109 |
-
" <td>3</td>\n",
|
| 110 |
-
" <td>18</td>\n",
|
| 111 |
-
" </tr>\n",
|
| 112 |
-
" <tr>\n",
|
| 113 |
-
" <th>62180</th>\n",
|
| 114 |
-
" <td>21</td>\n",
|
| 115 |
-
" <td>2017-03-18 18:52:35-07:00</td>\n",
|
| 116 |
-
" <td>67955</td>\n",
|
| 117 |
-
" <td>5</td>\n",
|
| 118 |
-
" <td>1</td>\n",
|
| 119 |
-
" <td>0</td>\n",
|
| 120 |
-
" <td>61.07</td>\n",
|
| 121 |
-
" <td>0</td>\n",
|
| 122 |
-
" <td>1</td>\n",
|
| 123 |
-
" <td>3</td>\n",
|
| 124 |
-
" <td>18</td>\n",
|
| 125 |
-
" </tr>\n",
|
| 126 |
-
" <tr>\n",
|
| 127 |
-
" <th>62181</th>\n",
|
| 128 |
-
" <td>25</td>\n",
|
| 129 |
-
" <td>2017-03-18 19:02:40-07:00</td>\n",
|
| 130 |
-
" <td>68560</td>\n",
|
| 131 |
-
" <td>5</td>\n",
|
| 132 |
-
" <td>1</td>\n",
|
| 133 |
-
" <td>0</td>\n",
|
| 134 |
-
" <td>56.71</td>\n",
|
| 135 |
-
" <td>0</td>\n",
|
| 136 |
-
" <td>1</td>\n",
|
| 137 |
-
" <td>3</td>\n",
|
| 138 |
-
" <td>19</td>\n",
|
| 139 |
-
" </tr>\n",
|
| 140 |
-
" <tr>\n",
|
| 141 |
-
" <th>62182</th>\n",
|
| 142 |
-
" <td>18</td>\n",
|
| 143 |
-
" <td>2017-03-18 19:12:47-07:00</td>\n",
|
| 144 |
-
" <td>69167</td>\n",
|
| 145 |
-
" <td>5</td>\n",
|
| 146 |
-
" <td>1</td>\n",
|
| 147 |
-
" <td>0</td>\n",
|
| 148 |
-
" <td>56.71</td>\n",
|
| 149 |
-
" <td>0</td>\n",
|
| 150 |
-
" <td>1</td>\n",
|
| 151 |
-
" <td>3</td>\n",
|
| 152 |
-
" <td>19</td>\n",
|
| 153 |
-
" </tr>\n",
|
| 154 |
-
" <tr>\n",
|
| 155 |
-
" <th>62183</th>\n",
|
| 156 |
-
" <td>23</td>\n",
|
| 157 |
-
" <td>2017-03-18 19:22:51-07:00</td>\n",
|
| 158 |
-
" <td>69771</td>\n",
|
| 159 |
-
" <td>5</td>\n",
|
| 160 |
-
" <td>1</td>\n",
|
| 161 |
-
" <td>0</td>\n",
|
| 162 |
-
" <td>56.71</td>\n",
|
| 163 |
-
" <td>0</td>\n",
|
| 164 |
-
" <td>1</td>\n",
|
| 165 |
-
" <td>3</td>\n",
|
| 166 |
-
" <td>19</td>\n",
|
| 167 |
-
" </tr>\n",
|
| 168 |
-
" </tbody>\n",
|
| 169 |
-
"</table>\n",
|
| 170 |
-
"</div>"
|
| 171 |
-
],
|
| 172 |
-
"text/plain": [
|
| 173 |
-
" number_people date timestamp day_of_week \\\n",
|
| 174 |
-
"62179 23 2017-03-18 18:42:28-07:00 67348 5 \n",
|
| 175 |
-
"62180 21 2017-03-18 18:52:35-07:00 67955 5 \n",
|
| 176 |
-
"62181 25 2017-03-18 19:02:40-07:00 68560 5 \n",
|
| 177 |
-
"62182 18 2017-03-18 19:12:47-07:00 69167 5 \n",
|
| 178 |
-
"62183 23 2017-03-18 19:22:51-07:00 69771 5 \n",
|
| 179 |
-
"\n",
|
| 180 |
-
" is_weekend is_holiday temperature is_start_of_semester \\\n",
|
| 181 |
-
"62179 1 0 61.07 0 \n",
|
| 182 |
-
"62180 1 0 61.07 0 \n",
|
| 183 |
-
"62181 1 0 56.71 0 \n",
|
| 184 |
-
"62182 1 0 56.71 0 \n",
|
| 185 |
-
"62183 1 0 56.71 0 \n",
|
| 186 |
-
"\n",
|
| 187 |
-
" is_during_semester month hour \n",
|
| 188 |
-
"62179 1 3 18 \n",
|
| 189 |
-
"62180 1 3 18 \n",
|
| 190 |
-
"62181 1 3 19 \n",
|
| 191 |
-
"62182 1 3 19 \n",
|
| 192 |
-
"62183 1 3 19 "
|
| 193 |
-
]
|
| 194 |
-
},
|
| 195 |
-
"execution_count": 3,
|
| 196 |
-
"metadata": {},
|
| 197 |
-
"output_type": "execute_result"
|
| 198 |
-
}
|
| 199 |
-
],
|
| 200 |
"source": [
|
| 201 |
"df.tail()"
|
| 202 |
]
|
|
@@ -221,7 +84,7 @@
|
|
| 221 |
},
|
| 222 |
{
|
| 223 |
"cell_type": "code",
|
| 224 |
-
"execution_count":
|
| 225 |
"metadata": {
|
| 226 |
"execution": {
|
| 227 |
"iopub.execute_input": "2023-04-07T16:31:30.982101Z",
|
|
@@ -262,7 +125,7 @@
|
|
| 262 |
},
|
| 263 |
{
|
| 264 |
"cell_type": "code",
|
| 265 |
-
"execution_count":
|
| 266 |
"metadata": {
|
| 267 |
"execution": {
|
| 268 |
"iopub.execute_input": "2023-04-07T16:31:31.292669Z",
|
|
@@ -280,7 +143,7 @@
|
|
| 280 |
"traceback": [
|
| 281 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 282 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 283 |
-
"\u001b[0;32m<ipython-input-
|
| 284 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/model_selection/_split.py\u001b[0m in \u001b[0;36mtrain_test_split\u001b[0;34m(test_size, train_size, random_state, shuffle, stratify, *arrays)\u001b[0m\n\u001b[1;32m 2560\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2561\u001b[0m \u001b[0mn_samples\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_num_samples\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marrays\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[0m\n\u001b[0;32m-> 2562\u001b[0;31m n_train, n_test = _validate_shuffle_split(\n\u001b[0m\u001b[1;32m 2563\u001b[0m \u001b[0mn_samples\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtest_size\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtrain_size\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdefault_test_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0.25\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2564\u001b[0m )\n",
|
| 285 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/model_selection/_split.py\u001b[0m in \u001b[0;36m_validate_shuffle_split\u001b[0;34m(n_samples, test_size, train_size, default_test_size)\u001b[0m\n\u001b[1;32m 2234\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2235\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mn_train\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[0m\n\u001b[0;32m-> 2236\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 2237\u001b[0m \u001b[0;34m\"With n_samples={}, test_size={} and train_size={}, the \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2238\u001b[0m \u001b[0;34m\"resulting train set will be empty. Adjust any of the \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 286 |
"\u001b[0;31mValueError\u001b[0m: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters."
|
|
|
|
| 49 |
},
|
| 50 |
{
|
| 51 |
"cell_type": "code",
|
| 52 |
+
"execution_count": null,
|
| 53 |
"metadata": {
|
| 54 |
"execution": {
|
| 55 |
"iopub.execute_input": "2023-04-07T16:31:30.923547Z",
|
|
|
|
| 59 |
"shell.execute_reply.started": "2023-04-07T16:31:30.923493Z"
|
| 60 |
}
|
| 61 |
},
|
| 62 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
"source": [
|
| 64 |
"df.tail()"
|
| 65 |
]
|
|
|
|
| 84 |
},
|
| 85 |
{
|
| 86 |
"cell_type": "code",
|
| 87 |
+
"execution_count": 3,
|
| 88 |
"metadata": {
|
| 89 |
"execution": {
|
| 90 |
"iopub.execute_input": "2023-04-07T16:31:30.982101Z",
|
|
|
|
| 125 |
},
|
| 126 |
{
|
| 127 |
"cell_type": "code",
|
| 128 |
+
"execution_count": 5,
|
| 129 |
"metadata": {
|
| 130 |
"execution": {
|
| 131 |
"iopub.execute_input": "2023-04-07T16:31:31.292669Z",
|
|
|
|
| 143 |
"traceback": [
|
| 144 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 145 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 146 |
+
"\u001b[0;32m<ipython-input-5-582089ae0f7d>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mx_train\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mx_test\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_train\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_test\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtrain_test_split\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtest_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0.2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrandom_state\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\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[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mlr\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mLinearRegression\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 4\u001b[0m \u001b[0mlr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx_train\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[0my_pred\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpredict\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx_test\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 147 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/model_selection/_split.py\u001b[0m in \u001b[0;36mtrain_test_split\u001b[0;34m(test_size, train_size, random_state, shuffle, stratify, *arrays)\u001b[0m\n\u001b[1;32m 2560\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2561\u001b[0m \u001b[0mn_samples\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_num_samples\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marrays\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[0m\n\u001b[0;32m-> 2562\u001b[0;31m n_train, n_test = _validate_shuffle_split(\n\u001b[0m\u001b[1;32m 2563\u001b[0m \u001b[0mn_samples\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtest_size\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtrain_size\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdefault_test_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0.25\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2564\u001b[0m )\n",
|
| 148 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/model_selection/_split.py\u001b[0m in \u001b[0;36m_validate_shuffle_split\u001b[0;34m(n_samples, test_size, train_size, default_test_size)\u001b[0m\n\u001b[1;32m 2234\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2235\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mn_train\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[0m\n\u001b[0;32m-> 2236\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 2237\u001b[0m \u001b[0;34m\"With n_samples={}, test_size={} and train_size={}, the \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2238\u001b[0m \u001b[0;34m\"resulting train set will be empty. Adjust any of the \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 149 |
"\u001b[0;31mValueError\u001b[0m: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters."
|
benchmark/sklearn_12/sklearn_12_fixed.ipynb
CHANGED
|
@@ -315,7 +315,7 @@
|
|
| 315 |
},
|
| 316 |
{
|
| 317 |
"cell_type": "code",
|
| 318 |
-
"execution_count":
|
| 319 |
"metadata": {
|
| 320 |
"execution": {
|
| 321 |
"iopub.execute_input": "2023-05-31T13:48:56.519092Z",
|
|
@@ -325,63 +325,14 @@
|
|
| 325 |
"shell.execute_reply.started": "2023-05-31T13:48:56.519058Z"
|
| 326 |
}
|
| 327 |
},
|
| 328 |
-
"outputs": [
|
| 329 |
-
{
|
| 330 |
-
"data": {
|
| 331 |
-
"text/plain": [
|
| 332 |
-
"( Pclass Age SibSp Parch Fare Sex_female Sex_male \\\n",
|
| 333 |
-
" 839 1 29.699118 0 0 29.7000 False True \n",
|
| 334 |
-
" 100 3 28.000000 0 0 7.8958 True False \n",
|
| 335 |
-
" 806 1 39.000000 0 0 0.0000 False True \n",
|
| 336 |
-
" 145 2 19.000000 1 1 36.7500 False True \n",
|
| 337 |
-
" 701 1 35.000000 0 0 26.2875 False True \n",
|
| 338 |
-
" .. ... ... ... ... ... ... ... \n",
|
| 339 |
-
" 664 3 20.000000 1 0 7.9250 False True \n",
|
| 340 |
-
" 319 1 40.000000 1 1 134.5000 True False \n",
|
| 341 |
-
" 336 1 29.000000 1 0 66.6000 False True \n",
|
| 342 |
-
" 699 3 42.000000 0 0 7.6500 False True \n",
|
| 343 |
-
" 1 1 38.000000 1 0 71.2833 True False \n",
|
| 344 |
-
" \n",
|
| 345 |
-
" Embarked_C Embarked_Q Embarked_S \n",
|
| 346 |
-
" 839 True False False \n",
|
| 347 |
-
" 100 False False True \n",
|
| 348 |
-
" 806 False False True \n",
|
| 349 |
-
" 145 False False True \n",
|
| 350 |
-
" 701 False False True \n",
|
| 351 |
-
" .. ... ... ... \n",
|
| 352 |
-
" 664 False False True \n",
|
| 353 |
-
" 319 True False False \n",
|
| 354 |
-
" 336 False False True \n",
|
| 355 |
-
" 699 False False True \n",
|
| 356 |
-
" 1 True False False \n",
|
| 357 |
-
" \n",
|
| 358 |
-
" [623 rows x 10 columns],\n",
|
| 359 |
-
" 839 1\n",
|
| 360 |
-
" 100 0\n",
|
| 361 |
-
" 806 0\n",
|
| 362 |
-
" 145 0\n",
|
| 363 |
-
" 701 1\n",
|
| 364 |
-
" ..\n",
|
| 365 |
-
" 664 1\n",
|
| 366 |
-
" 319 1\n",
|
| 367 |
-
" 336 0\n",
|
| 368 |
-
" 699 0\n",
|
| 369 |
-
" 1 1\n",
|
| 370 |
-
" Name: Survived, Length: 623, dtype: int64)"
|
| 371 |
-
]
|
| 372 |
-
},
|
| 373 |
-
"execution_count": 6,
|
| 374 |
-
"metadata": {},
|
| 375 |
-
"output_type": "execute_result"
|
| 376 |
-
}
|
| 377 |
-
],
|
| 378 |
"source": [
|
| 379 |
"X_train,y_train"
|
| 380 |
]
|
| 381 |
},
|
| 382 |
{
|
| 383 |
"cell_type": "code",
|
| 384 |
-
"execution_count":
|
| 385 |
"metadata": {
|
| 386 |
"execution": {
|
| 387 |
"iopub.execute_input": "2023-05-31T14:17:50.579386Z",
|
|
@@ -437,7 +388,7 @@
|
|
| 437 |
},
|
| 438 |
{
|
| 439 |
"cell_type": "code",
|
| 440 |
-
"execution_count":
|
| 441 |
"metadata": {
|
| 442 |
"execution": {
|
| 443 |
"iopub.execute_input": "2023-05-31T13:50:36.015117Z",
|
|
@@ -447,15 +398,7 @@
|
|
| 447 |
"shell.execute_reply.started": "2023-05-31T13:50:36.015081Z"
|
| 448 |
}
|
| 449 |
},
|
| 450 |
-
"outputs": [
|
| 451 |
-
{
|
| 452 |
-
"name": "stdout",
|
| 453 |
-
"output_type": "stream",
|
| 454 |
-
"text": [
|
| 455 |
-
"84.328\n"
|
| 456 |
-
]
|
| 457 |
-
}
|
| 458 |
-
],
|
| 459 |
"source": [
|
| 460 |
"model = RandomForestClassifier()\n",
|
| 461 |
"model.fit(X_train,y_train)\n",
|
|
@@ -465,7 +408,7 @@
|
|
| 465 |
},
|
| 466 |
{
|
| 467 |
"cell_type": "code",
|
| 468 |
-
"execution_count":
|
| 469 |
"metadata": {
|
| 470 |
"execution": {
|
| 471 |
"iopub.execute_input": "2023-05-31T14:02:34.017522Z",
|
|
@@ -494,14 +437,14 @@
|
|
| 494 |
"name": "stdout",
|
| 495 |
"output_type": "stream",
|
| 496 |
"text": [
|
| 497 |
-
"LogisticRegression (accuracy):
|
| 498 |
-
"DecisionTreeClassifier with gini (accuracy):
|
| 499 |
-
"DecisionTreeClassifier with entropy (accuracy):
|
| 500 |
-
"KNeighborsClassifier (accuracy):
|
| 501 |
-
"AdaBoostClassifier (accuracy):
|
| 502 |
-
"GradientBoostingClassifier (accuracy):
|
| 503 |
-
"GaussianNB (accuracy):
|
| 504 |
-
"SVC (accuracy):
|
| 505 |
]
|
| 506 |
}
|
| 507 |
],
|
|
@@ -560,7 +503,7 @@
|
|
| 560 |
},
|
| 561 |
{
|
| 562 |
"cell_type": "code",
|
| 563 |
-
"execution_count":
|
| 564 |
"metadata": {
|
| 565 |
"execution": {
|
| 566 |
"iopub.execute_input": "2023-05-31T14:02:02.433477Z",
|
|
@@ -582,20 +525,9 @@
|
|
| 582 |
},
|
| 583 |
{
|
| 584 |
"cell_type": "code",
|
| 585 |
-
"execution_count":
|
| 586 |
"metadata": {},
|
| 587 |
-
"outputs": [
|
| 588 |
-
{
|
| 589 |
-
"data": {
|
| 590 |
-
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAwIAAAKnCAYAAAA1GvpRAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6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ps3b9aZM2eKfN9Hjx5VTk6OOnXqpKpVqxb5/gAAAIDbpViPCJw/f15fffWVpk+frtatWys8PFxNmzZVYmKiHnnkEec2/fv3V6VKlRQUFKSHHnpIe/bskfTzaEJISIimTJni7POf//ynfH19tXnz5pvue+nSpWrQoIEkqUaNGrLZbEpLS5Mkffzxx2rcuLH8/PxUo0YNTZgwQVeuXHG2tdlsWrhwoeLj4+Xv7686depo27ZtOnTokFq1aqWAgAA1b95cqampzjapqal69NFHVaVKFQUGBqpJkyb6/PPPf/P9udGxAwAAADdTrINAYGCgAgMD9dFHHyk7O/u62zz++OM6ffq0NmzYoF27dqlx48Zq06aNzp49q0qVKumdd95RUlKSdu7cqQsXLujpp5/WkCFD1KZNm5vuu0ePHs4v4jt27NCJEycUGhqqr776Sr169dILL7yg/fv3a+HChVq6dKkmT57s0n7SpEnq1auXUlJSVLt2bfXs2VPPPvusEhMTtXPnTlmWpSFDhji3z8jIUMeOHbV582bt3r1bcXFxevjhh3X06NEb1nizY7+e7OxsORwOlwkAAABmslmWZXm6iJtZs2aNBgwYoEuXLqlx48Zq2bKlnnjiCUVHR2vLli3q1KmTTp8+Lbvd7mwTGRmpF1980XlN/3PPPafPP/9cMTEx2rt3r77++muX7W8kJSVFjRo10pEjRxQRESFJatu2rdq0aaPExETndn/+85/14osv6vjx45J+HhEYM2aMJk2aJEnavn27YmNjtXjxYvXt21eStGrVKvXp00eXLl264f7r16+vgQMHOgNDRESEhg0bpmHDhuX72H8pKSlJEyZMuGZ56LDV8rL7/+b7AQAoHtKmdfJ0CQBuE4fDoeDgYKWnpysoKMitfd8R9wh06tRJX331lbZv364NGzZoxowZWrRokS5evKiMjAxVqFDBpc2lS5dcLruZOXOm6tevrw8++EC7du3KVwi4kT179mjr1q0uIwC5ubnKyspSZmam/P1//kIdHR3tXF+lShVJcl5qdHVZVlaWHA6HgoKClJGRoaSkJH366ac6ceKErly5okuXLt1wRGDPnj35OvZfSkxM1PDhw53zDodDoaGhBXwHAAAAUB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//xzBQQEaNy4cTpw4IDWrl2rdu3aFVWtAAAAANykQCMCNWvW1IkTJ1S5cmW1aNFC5cuX1969e1WlSpWiqg8AAABAESjQiMCvf4R4w4YNunjxolsLAgAAAFD0CnWz8FW/DgYAAAAA7gwFCgI2m002m+2aZQAAAADuLAW6R8CyLPXu3Vt2u12SlJWVpYEDByogIMBluw8//NB9FZYANptNf/3rX9W5c2elpaWpevXq2r17txo2bOjp0gAAAGCoAo0IJCQkqHLlygoODlZwcLCeeuopVatWzTl/dTLNf//7Xw0aNEhhYWGy2+0KCQlR+/bttXXrVknSiRMn1KFDhwL1+de//lX33XefgoODVaZMGdWrV0/Dhg0rguoBAABgogKNCCxZsqSo6rijde3aVZcvX9ayZctUo0YNnTp1Sps3b9aZM2ckSSEhIQXqb/PmzerRo4cmT56sRx55RDabTfv379dnn31WFOUDAADAQLd0szCk8+fP66uvvtL06dPVunVrhYeHq2nTpkpMTNQjjzwi6edLgz766COXdt99952aN28uPz8/1a9fX19++aVz3dq1a3X//fdr1KhRioqKUq1atdS5c2e98cYbzm2SkpLUsGFDLVy4UKGhofL391f37t2Vnp5+W44bAAAAdzaCwC0KDAxUYGCgPvroI2VnZ+e73ahRozRixAjt3r1bsbGxevjhh11GEL799lvt27fvpn0cOnRIq1ev1tq1a7Vx40bt3r1bgwcPvqXjAQAAgBkIArfIx8dHS5cu1bJly1S2bFndf//9+tOf/qRvvvnmpu2GDBmirl27qk6dOlqwYIGCg4O1ePFiSdLzzz+vJk2aqEGDBoqIiNATTzyhd95555qgkZWVpeXLl6thw4Z68MEHNW/ePK1atUonT5687j6zs7PlcDhcJgAAAJiJIOAGXbt21fHjx/XJJ58oLi5OycnJaty4sZYuXXrDNrGxsc7XPj4+iomJ0YEDByRJAQEB+vTTT3Xo0CGNGTNGgYGBGjFihJo2barMzExnu7CwMN11110ufebl5engwYPX3efUqVNdbuoODQ29xSMHAADAnYog4CZ+fn5q166dxo4dq3/+85/q3bu3xo8ff0t93n333erfv78WLVqkf/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53rL1y4oISEBG3ZskXbt29XzZo11bFjR124cMGln6SkJD322GPau3ev+vbt67Lu/PnzateunfLy8vTZZ5+pbNmyWrlypcaNG6fJkyfrwIEDmjJlisaOHatly5ZJkjIyMhQfH6+6detq165dSkpK0siRI/P9Xrz33nsKDAzUs88+e826ESNGKCcnR2vWrLlh++zsbDkcDpcJAAAAZvLxdAHr1q1TYGCgy7I//elP+tOf/iRJ6tOnj7p37y5JeumllxQbG6uxY8eqffv2kqQXXnhBffr0cWmflZWl5cuX66677pIkzZs3T506ddKsWbMUEhKihx56yGX7t956S2XLltWXX36p+Ph45/KePXu69H348GFJ0smTJ9WjRw/VrFlT7777rnx9fSVJ48eP16xZs9SlSxdJUvXq1bV//34tXLhQCQkJevfdd5WXl6fFixfLz89P9erV048//qhBgwbl6736/vvvdffddzv390vVqlVTUFCQvv/++xu2nzp1qiZMmJCvfQEAAKBk83gQaN26tRYsWOCyrHz58s7X0dHRztdVqlSRJDVo0MBlWVZWlhwOh4KCgiRJYWFhzhAgSbGxscrLy9PBgwcVEhKiU6dOacyYMUpOTtbp06eVm5urzMxMHT161KWOmJiY69bcrl07NW3aVO+//768vb0lSRcvXlRqaqr69eunAQMGOLe9cuWKgoODJUkHDhxQdHS0/Pz8XGorCMuybrr+eiHhqsTERA0fPtw573A4FBoaWqD9AwAAoGTweBAICAhQZGTkDdeXKlXK+dpms91wWV5eXr73mZCQoDNnzui1115TeHi47Ha7YmNjdfny5Wtqu55OnTppzZo12r9/vzOUZGRkSJLefvttNWvWzGX7q2HhVtWsWVNbtmzR5cuXr/nCf/z4cTkcDtWqVeuG7e12u+x2u1tqAQAAwJ2t2N8jUBhHjx7V8ePHnfPbt2+Xl5eXoqKiJElbt27V0KFD1bFjR9WrV092u10//fRTvvufNm2aEhIS1KZNG+3fv1/SzyMT1apV0+HDhxUZGekyVa9eXZJUp04dffPNN8rKynKpLb/+7//+TxkZGVq4cOE162bOnCk/Pz/16NEj3/0BAADAXB4fEcjOztbJkyddlvn4+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ZVnavHmzDh48qAcffFCS+/5uCAIlwE8//aTc3FxVqVLFZXmVKlV08uTJ67Y5efLkTbe/+r8F6RPXKopzI0lxcXFavny5Nm/erOnTp+vLL79Uhw4dlJub6/6DKKEKc2480aeJiup9bNasmZYuXaqNGzdqwYIFOnLkiFq0aKELFy7casnGcMe5eemll1StWjXnFxg+b9yjKM6NxOeNOxT23KSnpyswMFC+vr7q1KmT5s2bp3bt2kly39+NT763BFBsPPHEE87XDRo0UHR0tO6++24lJyerTZs2HqwMKL46dOjgfB0dHa1mzZopPDxcq1evVr9+/TxYmTmmTZumVatWKTk5WX5+fp4uB79wo3PD543nlClTRikpKcrIyNDmzZs1fPhw1ahRQ61atXLbPhgRKAEqVqwob29vnTp1ymX5qVOnFBISct02ISEhN93+6v8WpE9cqyjOzfXUqFFDFStW1KFDh269aEMU5tx4ok8T3a73sWzZsqpVqxZ/NwVwK+dm5syZmjZtmjZt2qTo6Gjncj5v3KMozs318HlTcIU9N15eXoqMjFTDhg01YsQIdevWTVOnTpXkvr8bgkAJ4Ovrq3vvvVebN292LsvLy9PmzZsVGxt73TaxsbEu20vSZ5995ty+evXqCgkJcdnG4XDo//2//3fDPnGtojg31/Pjjz/qzJkzqlq1qnsKN0Bhzo0n+jTR7XofMzIylJqayt9NART23MyYMUOTJk3Sxo0bFRMT47KOzxv3KIpzcz183hScu/4/LS8vT9nZ2ZLc+HeT79uKUaytWrXKstvt1tKlS639+/dbzzzzjFW2bFnr5MmTlmVZ1tNPP2398Y9/dG6/detWy8fHx5o5c6Z14MABa/z48dd9fGjZsmWtjz/+2Prmm2+sRx99lMe5FYK7z82FCxeskSNHWtu2bbOOHDliff7551bjxo2tmjVrWllZWR45xjtVQc9Ndna2tXv3bmv37t1W1apVrZEjR1q7d++2fvjhh3z3ifwpinMzYsQIKzk52Tpy5Ii1detWq23btlbFihWt06dP3/bju5MV9NxMmzbN8vX1tf7yl7+4PILywoULLtvweXPr3H1u+Lxxn4KemylTplibNm2yUlNTrf3791sz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DAiAAAAABiIIAAAAAAYiEuDAAAAAAMxIgAAAAAYiCAAAAAAGIggAAAAABiIIAAAAAAYiCAAAAAAGIggAAAAABiIIAAAAAAYiCAAAAAAGIggAAAAABjo/wOyofRh/oH2hgAAAABJRU5ErkJggg==\n",
|
| 591 |
-
"text/plain": [
|
| 592 |
-
"<Figure size 800x800 with 1 Axes>"
|
| 593 |
-
]
|
| 594 |
-
},
|
| 595 |
-
"metadata": {},
|
| 596 |
-
"output_type": "display_data"
|
| 597 |
-
}
|
| 598 |
-
],
|
| 599 |
"source": [
|
| 600 |
"import matplotlib.pyplot as plt # fix 3: did not import\n",
|
| 601 |
"\n",
|
|
@@ -608,7 +540,7 @@
|
|
| 608 |
},
|
| 609 |
{
|
| 610 |
"cell_type": "code",
|
| 611 |
-
"execution_count":
|
| 612 |
"metadata": {
|
| 613 |
"execution": {
|
| 614 |
"iopub.execute_input": "2023-05-31T14:22:09.222862Z",
|
|
@@ -618,224 +550,7 @@
|
|
| 618 |
"shell.execute_reply.started": "2023-05-31T14:22:09.222810Z"
|
| 619 |
}
|
| 620 |
},
|
| 621 |
-
"outputs": [
|
| 622 |
-
{
|
| 623 |
-
"data": {
|
| 624 |
-
"text/html": [
|
| 625 |
-
"<div>\n",
|
| 626 |
-
"<style scoped>\n",
|
| 627 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 628 |
-
" vertical-align: middle;\n",
|
| 629 |
-
" }\n",
|
| 630 |
-
"\n",
|
| 631 |
-
" .dataframe tbody tr th {\n",
|
| 632 |
-
" vertical-align: top;\n",
|
| 633 |
-
" }\n",
|
| 634 |
-
"\n",
|
| 635 |
-
" .dataframe thead th {\n",
|
| 636 |
-
" text-align: right;\n",
|
| 637 |
-
" }\n",
|
| 638 |
-
"</style>\n",
|
| 639 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 640 |
-
" <thead>\n",
|
| 641 |
-
" <tr style=\"text-align: right;\">\n",
|
| 642 |
-
" <th></th>\n",
|
| 643 |
-
" <th>Pclass</th>\n",
|
| 644 |
-
" <th>Age</th>\n",
|
| 645 |
-
" <th>SibSp</th>\n",
|
| 646 |
-
" <th>Parch</th>\n",
|
| 647 |
-
" <th>Fare</th>\n",
|
| 648 |
-
" <th>Sex_female</th>\n",
|
| 649 |
-
" <th>Sex_male</th>\n",
|
| 650 |
-
" <th>Embarked_C</th>\n",
|
| 651 |
-
" <th>Embarked_Q</th>\n",
|
| 652 |
-
" <th>Embarked_S</th>\n",
|
| 653 |
-
" </tr>\n",
|
| 654 |
-
" </thead>\n",
|
| 655 |
-
" <tbody>\n",
|
| 656 |
-
" <tr>\n",
|
| 657 |
-
" <th>0</th>\n",
|
| 658 |
-
" <td>3</td>\n",
|
| 659 |
-
" <td>34.50000</td>\n",
|
| 660 |
-
" <td>0</td>\n",
|
| 661 |
-
" <td>0</td>\n",
|
| 662 |
-
" <td>7.8292</td>\n",
|
| 663 |
-
" <td>False</td>\n",
|
| 664 |
-
" <td>True</td>\n",
|
| 665 |
-
" <td>False</td>\n",
|
| 666 |
-
" <td>True</td>\n",
|
| 667 |
-
" <td>False</td>\n",
|
| 668 |
-
" </tr>\n",
|
| 669 |
-
" <tr>\n",
|
| 670 |
-
" <th>1</th>\n",
|
| 671 |
-
" <td>3</td>\n",
|
| 672 |
-
" <td>47.00000</td>\n",
|
| 673 |
-
" <td>1</td>\n",
|
| 674 |
-
" <td>0</td>\n",
|
| 675 |
-
" <td>7.0000</td>\n",
|
| 676 |
-
" <td>True</td>\n",
|
| 677 |
-
" <td>False</td>\n",
|
| 678 |
-
" <td>False</td>\n",
|
| 679 |
-
" <td>False</td>\n",
|
| 680 |
-
" <td>True</td>\n",
|
| 681 |
-
" </tr>\n",
|
| 682 |
-
" <tr>\n",
|
| 683 |
-
" <th>2</th>\n",
|
| 684 |
-
" <td>2</td>\n",
|
| 685 |
-
" <td>62.00000</td>\n",
|
| 686 |
-
" <td>0</td>\n",
|
| 687 |
-
" <td>0</td>\n",
|
| 688 |
-
" <td>9.6875</td>\n",
|
| 689 |
-
" <td>False</td>\n",
|
| 690 |
-
" <td>True</td>\n",
|
| 691 |
-
" <td>False</td>\n",
|
| 692 |
-
" <td>True</td>\n",
|
| 693 |
-
" <td>False</td>\n",
|
| 694 |
-
" </tr>\n",
|
| 695 |
-
" <tr>\n",
|
| 696 |
-
" <th>3</th>\n",
|
| 697 |
-
" <td>3</td>\n",
|
| 698 |
-
" <td>27.00000</td>\n",
|
| 699 |
-
" <td>0</td>\n",
|
| 700 |
-
" <td>0</td>\n",
|
| 701 |
-
" <td>8.6625</td>\n",
|
| 702 |
-
" <td>False</td>\n",
|
| 703 |
-
" <td>True</td>\n",
|
| 704 |
-
" <td>False</td>\n",
|
| 705 |
-
" <td>False</td>\n",
|
| 706 |
-
" <td>True</td>\n",
|
| 707 |
-
" </tr>\n",
|
| 708 |
-
" <tr>\n",
|
| 709 |
-
" <th>4</th>\n",
|
| 710 |
-
" <td>3</td>\n",
|
| 711 |
-
" <td>22.00000</td>\n",
|
| 712 |
-
" <td>1</td>\n",
|
| 713 |
-
" <td>1</td>\n",
|
| 714 |
-
" <td>12.2875</td>\n",
|
| 715 |
-
" <td>True</td>\n",
|
| 716 |
-
" <td>False</td>\n",
|
| 717 |
-
" <td>False</td>\n",
|
| 718 |
-
" <td>False</td>\n",
|
| 719 |
-
" <td>True</td>\n",
|
| 720 |
-
" </tr>\n",
|
| 721 |
-
" <tr>\n",
|
| 722 |
-
" <th>...</th>\n",
|
| 723 |
-
" <td>...</td>\n",
|
| 724 |
-
" <td>...</td>\n",
|
| 725 |
-
" <td>...</td>\n",
|
| 726 |
-
" <td>...</td>\n",
|
| 727 |
-
" <td>...</td>\n",
|
| 728 |
-
" <td>...</td>\n",
|
| 729 |
-
" <td>...</td>\n",
|
| 730 |
-
" <td>...</td>\n",
|
| 731 |
-
" <td>...</td>\n",
|
| 732 |
-
" <td>...</td>\n",
|
| 733 |
-
" </tr>\n",
|
| 734 |
-
" <tr>\n",
|
| 735 |
-
" <th>413</th>\n",
|
| 736 |
-
" <td>3</td>\n",
|
| 737 |
-
" <td>30.27259</td>\n",
|
| 738 |
-
" <td>0</td>\n",
|
| 739 |
-
" <td>0</td>\n",
|
| 740 |
-
" <td>8.0500</td>\n",
|
| 741 |
-
" <td>False</td>\n",
|
| 742 |
-
" <td>True</td>\n",
|
| 743 |
-
" <td>False</td>\n",
|
| 744 |
-
" <td>False</td>\n",
|
| 745 |
-
" <td>True</td>\n",
|
| 746 |
-
" </tr>\n",
|
| 747 |
-
" <tr>\n",
|
| 748 |
-
" <th>414</th>\n",
|
| 749 |
-
" <td>1</td>\n",
|
| 750 |
-
" <td>39.00000</td>\n",
|
| 751 |
-
" <td>0</td>\n",
|
| 752 |
-
" <td>0</td>\n",
|
| 753 |
-
" <td>108.9000</td>\n",
|
| 754 |
-
" <td>True</td>\n",
|
| 755 |
-
" <td>False</td>\n",
|
| 756 |
-
" <td>True</td>\n",
|
| 757 |
-
" <td>False</td>\n",
|
| 758 |
-
" <td>False</td>\n",
|
| 759 |
-
" </tr>\n",
|
| 760 |
-
" <tr>\n",
|
| 761 |
-
" <th>415</th>\n",
|
| 762 |
-
" <td>3</td>\n",
|
| 763 |
-
" <td>38.50000</td>\n",
|
| 764 |
-
" <td>0</td>\n",
|
| 765 |
-
" <td>0</td>\n",
|
| 766 |
-
" <td>7.2500</td>\n",
|
| 767 |
-
" <td>False</td>\n",
|
| 768 |
-
" <td>True</td>\n",
|
| 769 |
-
" <td>False</td>\n",
|
| 770 |
-
" <td>False</td>\n",
|
| 771 |
-
" <td>True</td>\n",
|
| 772 |
-
" </tr>\n",
|
| 773 |
-
" <tr>\n",
|
| 774 |
-
" <th>416</th>\n",
|
| 775 |
-
" <td>3</td>\n",
|
| 776 |
-
" <td>30.27259</td>\n",
|
| 777 |
-
" <td>0</td>\n",
|
| 778 |
-
" <td>0</td>\n",
|
| 779 |
-
" <td>8.0500</td>\n",
|
| 780 |
-
" <td>False</td>\n",
|
| 781 |
-
" <td>True</td>\n",
|
| 782 |
-
" <td>False</td>\n",
|
| 783 |
-
" <td>False</td>\n",
|
| 784 |
-
" <td>True</td>\n",
|
| 785 |
-
" </tr>\n",
|
| 786 |
-
" <tr>\n",
|
| 787 |
-
" <th>417</th>\n",
|
| 788 |
-
" <td>3</td>\n",
|
| 789 |
-
" <td>30.27259</td>\n",
|
| 790 |
-
" <td>1</td>\n",
|
| 791 |
-
" <td>1</td>\n",
|
| 792 |
-
" <td>22.3583</td>\n",
|
| 793 |
-
" <td>False</td>\n",
|
| 794 |
-
" <td>True</td>\n",
|
| 795 |
-
" <td>True</td>\n",
|
| 796 |
-
" <td>False</td>\n",
|
| 797 |
-
" <td>False</td>\n",
|
| 798 |
-
" </tr>\n",
|
| 799 |
-
" </tbody>\n",
|
| 800 |
-
"</table>\n",
|
| 801 |
-
"<p>418 rows × 10 columns</p>\n",
|
| 802 |
-
"</div>"
|
| 803 |
-
],
|
| 804 |
-
"text/plain": [
|
| 805 |
-
" Pclass Age SibSp Parch Fare Sex_female Sex_male \\\n",
|
| 806 |
-
"0 3 34.50000 0 0 7.8292 False True \n",
|
| 807 |
-
"1 3 47.00000 1 0 7.0000 True False \n",
|
| 808 |
-
"2 2 62.00000 0 0 9.6875 False True \n",
|
| 809 |
-
"3 3 27.00000 0 0 8.6625 False True \n",
|
| 810 |
-
"4 3 22.00000 1 1 12.2875 True False \n",
|
| 811 |
-
".. ... ... ... ... ... ... ... \n",
|
| 812 |
-
"413 3 30.27259 0 0 8.0500 False True \n",
|
| 813 |
-
"414 1 39.00000 0 0 108.9000 True False \n",
|
| 814 |
-
"415 3 38.50000 0 0 7.2500 False True \n",
|
| 815 |
-
"416 3 30.27259 0 0 8.0500 False True \n",
|
| 816 |
-
"417 3 30.27259 1 1 22.3583 False True \n",
|
| 817 |
-
"\n",
|
| 818 |
-
" Embarked_C Embarked_Q Embarked_S \n",
|
| 819 |
-
"0 False True False \n",
|
| 820 |
-
"1 False False True \n",
|
| 821 |
-
"2 False True False \n",
|
| 822 |
-
"3 False False True \n",
|
| 823 |
-
"4 False False True \n",
|
| 824 |
-
".. ... ... ... \n",
|
| 825 |
-
"413 False False True \n",
|
| 826 |
-
"414 True False False \n",
|
| 827 |
-
"415 False False True \n",
|
| 828 |
-
"416 False False True \n",
|
| 829 |
-
"417 True False False \n",
|
| 830 |
-
"\n",
|
| 831 |
-
"[418 rows x 10 columns]"
|
| 832 |
-
]
|
| 833 |
-
},
|
| 834 |
-
"execution_count": 20,
|
| 835 |
-
"metadata": {},
|
| 836 |
-
"output_type": "execute_result"
|
| 837 |
-
}
|
| 838 |
-
],
|
| 839 |
"source": [
|
| 840 |
"test = pd.read_csv('data/test.csv')\n",
|
| 841 |
"submission = pd.read_csv('data/gender_submission.csv')\n",
|
|
@@ -854,7 +569,7 @@
|
|
| 854 |
},
|
| 855 |
{
|
| 856 |
"cell_type": "code",
|
| 857 |
-
"execution_count":
|
| 858 |
"metadata": {
|
| 859 |
"execution": {
|
| 860 |
"iopub.execute_input": "2023-05-31T14:22:12.070964Z",
|
|
@@ -864,15 +579,7 @@
|
|
| 864 |
"shell.execute_reply.started": "2023-05-31T14:22:12.070910Z"
|
| 865 |
}
|
| 866 |
},
|
| 867 |
-
"outputs": [
|
| 868 |
-
{
|
| 869 |
-
"name": "stdout",
|
| 870 |
-
"output_type": "stream",
|
| 871 |
-
"text": [
|
| 872 |
-
"GradientBoostingClassifier (accuracy): 93.284%\n"
|
| 873 |
-
]
|
| 874 |
-
}
|
| 875 |
-
],
|
| 876 |
"source": [
|
| 877 |
"model = GradientBoostingClassifier(n_estimators=200)\n",
|
| 878 |
"model.fit(features,labels)\n",
|
|
|
|
| 315 |
},
|
| 316 |
{
|
| 317 |
"cell_type": "code",
|
| 318 |
+
"execution_count": null,
|
| 319 |
"metadata": {
|
| 320 |
"execution": {
|
| 321 |
"iopub.execute_input": "2023-05-31T13:48:56.519092Z",
|
|
|
|
| 325 |
"shell.execute_reply.started": "2023-05-31T13:48:56.519058Z"
|
| 326 |
}
|
| 327 |
},
|
| 328 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 329 |
"source": [
|
| 330 |
"X_train,y_train"
|
| 331 |
]
|
| 332 |
},
|
| 333 |
{
|
| 334 |
"cell_type": "code",
|
| 335 |
+
"execution_count": 6,
|
| 336 |
"metadata": {
|
| 337 |
"execution": {
|
| 338 |
"iopub.execute_input": "2023-05-31T14:17:50.579386Z",
|
|
|
|
| 388 |
},
|
| 389 |
{
|
| 390 |
"cell_type": "code",
|
| 391 |
+
"execution_count": null,
|
| 392 |
"metadata": {
|
| 393 |
"execution": {
|
| 394 |
"iopub.execute_input": "2023-05-31T13:50:36.015117Z",
|
|
|
|
| 398 |
"shell.execute_reply.started": "2023-05-31T13:50:36.015081Z"
|
| 399 |
}
|
| 400 |
},
|
| 401 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
"source": [
|
| 403 |
"model = RandomForestClassifier()\n",
|
| 404 |
"model.fit(X_train,y_train)\n",
|
|
|
|
| 408 |
},
|
| 409 |
{
|
| 410 |
"cell_type": "code",
|
| 411 |
+
"execution_count": 7,
|
| 412 |
"metadata": {
|
| 413 |
"execution": {
|
| 414 |
"iopub.execute_input": "2023-05-31T14:02:34.017522Z",
|
|
|
|
| 437 |
"name": "stdout",
|
| 438 |
"output_type": "stream",
|
| 439 |
"text": [
|
| 440 |
+
"LogisticRegression (accuracy): 83.955%\n",
|
| 441 |
+
"DecisionTreeClassifier with gini (accuracy): 83.955%\n",
|
| 442 |
+
"DecisionTreeClassifier with entropy (accuracy): 86.194%\n",
|
| 443 |
+
"KNeighborsClassifier (accuracy): 74.627%\n",
|
| 444 |
+
"AdaBoostClassifier (accuracy): 84.328%\n",
|
| 445 |
+
"GradientBoostingClassifier (accuracy): 86.94%\n",
|
| 446 |
+
"GaussianNB (accuracy): 82.836%\n",
|
| 447 |
+
"SVC (accuracy): 70.896%\n"
|
| 448 |
]
|
| 449 |
}
|
| 450 |
],
|
|
|
|
| 503 |
},
|
| 504 |
{
|
| 505 |
"cell_type": "code",
|
| 506 |
+
"execution_count": 8,
|
| 507 |
"metadata": {
|
| 508 |
"execution": {
|
| 509 |
"iopub.execute_input": "2023-05-31T14:02:02.433477Z",
|
|
|
|
| 525 |
},
|
| 526 |
{
|
| 527 |
"cell_type": "code",
|
| 528 |
+
"execution_count": null,
|
| 529 |
"metadata": {},
|
| 530 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 531 |
"source": [
|
| 532 |
"import matplotlib.pyplot as plt # fix 3: did not import\n",
|
| 533 |
"\n",
|
|
|
|
| 540 |
},
|
| 541 |
{
|
| 542 |
"cell_type": "code",
|
| 543 |
+
"execution_count": null,
|
| 544 |
"metadata": {
|
| 545 |
"execution": {
|
| 546 |
"iopub.execute_input": "2023-05-31T14:22:09.222862Z",
|
|
|
|
| 550 |
"shell.execute_reply.started": "2023-05-31T14:22:09.222810Z"
|
| 551 |
}
|
| 552 |
},
|
| 553 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 554 |
"source": [
|
| 555 |
"test = pd.read_csv('data/test.csv')\n",
|
| 556 |
"submission = pd.read_csv('data/gender_submission.csv')\n",
|
|
|
|
| 569 |
},
|
| 570 |
{
|
| 571 |
"cell_type": "code",
|
| 572 |
+
"execution_count": null,
|
| 573 |
"metadata": {
|
| 574 |
"execution": {
|
| 575 |
"iopub.execute_input": "2023-05-31T14:22:12.070964Z",
|
|
|
|
| 579 |
"shell.execute_reply.started": "2023-05-31T14:22:12.070910Z"
|
| 580 |
}
|
| 581 |
},
|
| 582 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 583 |
"source": [
|
| 584 |
"model = GradientBoostingClassifier(n_estimators=200)\n",
|
| 585 |
"model.fit(features,labels)\n",
|
benchmark/sklearn_12/sklearn_12_reproduced.ipynb
CHANGED
|
@@ -315,7 +315,7 @@
|
|
| 315 |
},
|
| 316 |
{
|
| 317 |
"cell_type": "code",
|
| 318 |
-
"execution_count":
|
| 319 |
"metadata": {
|
| 320 |
"execution": {
|
| 321 |
"iopub.execute_input": "2023-05-31T13:48:56.519092Z",
|
|
@@ -325,63 +325,14 @@
|
|
| 325 |
"shell.execute_reply.started": "2023-05-31T13:48:56.519058Z"
|
| 326 |
}
|
| 327 |
},
|
| 328 |
-
"outputs": [
|
| 329 |
-
{
|
| 330 |
-
"data": {
|
| 331 |
-
"text/plain": [
|
| 332 |
-
"( Pclass Age SibSp Parch Fare Sex_female Sex_male \\\n",
|
| 333 |
-
" 598 3 29.699118 0 0 7.2250 False True \n",
|
| 334 |
-
" 395 3 22.000000 0 0 7.7958 False True \n",
|
| 335 |
-
" 582 2 54.000000 0 0 26.0000 False True \n",
|
| 336 |
-
" 353 3 25.000000 1 0 17.8000 False True \n",
|
| 337 |
-
" 625 1 61.000000 0 0 32.3208 False True \n",
|
| 338 |
-
" .. ... ... ... ... ... ... ... \n",
|
| 339 |
-
" 777 3 5.000000 0 0 12.4750 True False \n",
|
| 340 |
-
" 710 1 24.000000 0 0 49.5042 True False \n",
|
| 341 |
-
" 325 1 36.000000 0 0 135.6333 True False \n",
|
| 342 |
-
" 685 2 25.000000 1 2 41.5792 False True \n",
|
| 343 |
-
" 488 3 30.000000 0 0 8.0500 False True \n",
|
| 344 |
-
" \n",
|
| 345 |
-
" Embarked_C Embarked_Q Embarked_S \n",
|
| 346 |
-
" 598 True False False \n",
|
| 347 |
-
" 395 False False True \n",
|
| 348 |
-
" 582 False False True \n",
|
| 349 |
-
" 353 False False True \n",
|
| 350 |
-
" 625 False False True \n",
|
| 351 |
-
" .. ... ... ... \n",
|
| 352 |
-
" 777 False False True \n",
|
| 353 |
-
" 710 True False False \n",
|
| 354 |
-
" 325 True False False \n",
|
| 355 |
-
" 685 True False False \n",
|
| 356 |
-
" 488 False False True \n",
|
| 357 |
-
" \n",
|
| 358 |
-
" [623 rows x 10 columns],\n",
|
| 359 |
-
" 598 0\n",
|
| 360 |
-
" 395 0\n",
|
| 361 |
-
" 582 0\n",
|
| 362 |
-
" 353 0\n",
|
| 363 |
-
" 625 0\n",
|
| 364 |
-
" ..\n",
|
| 365 |
-
" 777 1\n",
|
| 366 |
-
" 710 1\n",
|
| 367 |
-
" 325 1\n",
|
| 368 |
-
" 685 0\n",
|
| 369 |
-
" 488 0\n",
|
| 370 |
-
" Name: Survived, Length: 623, dtype: int64)"
|
| 371 |
-
]
|
| 372 |
-
},
|
| 373 |
-
"execution_count": 6,
|
| 374 |
-
"metadata": {},
|
| 375 |
-
"output_type": "execute_result"
|
| 376 |
-
}
|
| 377 |
-
],
|
| 378 |
"source": [
|
| 379 |
"X_train,y_train"
|
| 380 |
]
|
| 381 |
},
|
| 382 |
{
|
| 383 |
"cell_type": "code",
|
| 384 |
-
"execution_count":
|
| 385 |
"metadata": {
|
| 386 |
"execution": {
|
| 387 |
"iopub.execute_input": "2023-05-31T14:17:50.579386Z",
|
|
@@ -437,7 +388,7 @@
|
|
| 437 |
},
|
| 438 |
{
|
| 439 |
"cell_type": "code",
|
| 440 |
-
"execution_count":
|
| 441 |
"metadata": {
|
| 442 |
"execution": {
|
| 443 |
"iopub.execute_input": "2023-05-31T13:50:36.015117Z",
|
|
@@ -447,15 +398,7 @@
|
|
| 447 |
"shell.execute_reply.started": "2023-05-31T13:50:36.015081Z"
|
| 448 |
}
|
| 449 |
},
|
| 450 |
-
"outputs": [
|
| 451 |
-
{
|
| 452 |
-
"name": "stdout",
|
| 453 |
-
"output_type": "stream",
|
| 454 |
-
"text": [
|
| 455 |
-
"80.597\n"
|
| 456 |
-
]
|
| 457 |
-
}
|
| 458 |
-
],
|
| 459 |
"source": [
|
| 460 |
"model = RandomForestClassifier()\n",
|
| 461 |
"model.fit(X_train,y_train)\n",
|
|
@@ -465,7 +408,7 @@
|
|
| 465 |
},
|
| 466 |
{
|
| 467 |
"cell_type": "code",
|
| 468 |
-
"execution_count":
|
| 469 |
"metadata": {
|
| 470 |
"execution": {
|
| 471 |
"iopub.execute_input": "2023-05-31T14:02:34.017522Z",
|
|
@@ -494,14 +437,14 @@
|
|
| 494 |
"name": "stdout",
|
| 495 |
"output_type": "stream",
|
| 496 |
"text": [
|
| 497 |
-
"LogisticRegression (accuracy):
|
| 498 |
-
"DecisionTreeClassifier with gini (accuracy): 80.
|
| 499 |
-
"DecisionTreeClassifier with entropy (accuracy):
|
| 500 |
-
"KNeighborsClassifier (accuracy):
|
| 501 |
-
"AdaBoostClassifier (accuracy):
|
| 502 |
-
"GradientBoostingClassifier (accuracy): 82.
|
| 503 |
-
"GaussianNB (accuracy):
|
| 504 |
-
"SVC (accuracy):
|
| 505 |
]
|
| 506 |
}
|
| 507 |
],
|
|
@@ -556,7 +499,7 @@
|
|
| 556 |
},
|
| 557 |
{
|
| 558 |
"cell_type": "code",
|
| 559 |
-
"execution_count":
|
| 560 |
"metadata": {
|
| 561 |
"execution": {
|
| 562 |
"iopub.execute_input": "2023-05-31T14:02:02.433477Z",
|
|
@@ -574,7 +517,7 @@
|
|
| 574 |
"traceback": [
|
| 575 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 576 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 577 |
-
"\u001b[0;32m<ipython-input-
|
| 578 |
"\u001b[0;31mAttributeError\u001b[0m: 'SVC' object has no attribute 'feature_importances_'"
|
| 579 |
]
|
| 580 |
}
|
|
|
|
| 315 |
},
|
| 316 |
{
|
| 317 |
"cell_type": "code",
|
| 318 |
+
"execution_count": null,
|
| 319 |
"metadata": {
|
| 320 |
"execution": {
|
| 321 |
"iopub.execute_input": "2023-05-31T13:48:56.519092Z",
|
|
|
|
| 325 |
"shell.execute_reply.started": "2023-05-31T13:48:56.519058Z"
|
| 326 |
}
|
| 327 |
},
|
| 328 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 329 |
"source": [
|
| 330 |
"X_train,y_train"
|
| 331 |
]
|
| 332 |
},
|
| 333 |
{
|
| 334 |
"cell_type": "code",
|
| 335 |
+
"execution_count": 6,
|
| 336 |
"metadata": {
|
| 337 |
"execution": {
|
| 338 |
"iopub.execute_input": "2023-05-31T14:17:50.579386Z",
|
|
|
|
| 388 |
},
|
| 389 |
{
|
| 390 |
"cell_type": "code",
|
| 391 |
+
"execution_count": null,
|
| 392 |
"metadata": {
|
| 393 |
"execution": {
|
| 394 |
"iopub.execute_input": "2023-05-31T13:50:36.015117Z",
|
|
|
|
| 398 |
"shell.execute_reply.started": "2023-05-31T13:50:36.015081Z"
|
| 399 |
}
|
| 400 |
},
|
| 401 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
"source": [
|
| 403 |
"model = RandomForestClassifier()\n",
|
| 404 |
"model.fit(X_train,y_train)\n",
|
|
|
|
| 408 |
},
|
| 409 |
{
|
| 410 |
"cell_type": "code",
|
| 411 |
+
"execution_count": 7,
|
| 412 |
"metadata": {
|
| 413 |
"execution": {
|
| 414 |
"iopub.execute_input": "2023-05-31T14:02:34.017522Z",
|
|
|
|
| 437 |
"name": "stdout",
|
| 438 |
"output_type": "stream",
|
| 439 |
"text": [
|
| 440 |
+
"LogisticRegression (accuracy): 80.97%\n",
|
| 441 |
+
"DecisionTreeClassifier with gini (accuracy): 80.224%\n",
|
| 442 |
+
"DecisionTreeClassifier with entropy (accuracy): 77.985%\n",
|
| 443 |
+
"KNeighborsClassifier (accuracy): 72.388%\n",
|
| 444 |
+
"AdaBoostClassifier (accuracy): 82.836%\n",
|
| 445 |
+
"GradientBoostingClassifier (accuracy): 82.836%\n",
|
| 446 |
+
"GaussianNB (accuracy): 79.104%\n",
|
| 447 |
+
"SVC (accuracy): 67.164%\n"
|
| 448 |
]
|
| 449 |
}
|
| 450 |
],
|
|
|
|
| 499 |
},
|
| 500 |
{
|
| 501 |
"cell_type": "code",
|
| 502 |
+
"execution_count": 8,
|
| 503 |
"metadata": {
|
| 504 |
"execution": {
|
| 505 |
"iopub.execute_input": "2023-05-31T14:02:02.433477Z",
|
|
|
|
| 517 |
"traceback": [
|
| 518 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 519 |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
|
| 520 |
+
"\u001b[0;32m<ipython-input-8-e740cec345cb>\u001b[0m in \u001b[0;36m<cell line: 3>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mpandas\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSeries\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mfeature_importance\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfeature_importances_\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 4\u001b[0m \u001b[0mSeries_feat_imp\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mSeries\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfeature_importance\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindex\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mdata\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcolumns\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 521 |
"\u001b[0;31mAttributeError\u001b[0m: 'SVC' object has no attribute 'feature_importances_'"
|
| 522 |
]
|
| 523 |
}
|
benchmark/sklearn_13/sklearn_13_fixed.ipynb
CHANGED
|
@@ -126,7 +126,7 @@
|
|
| 126 |
},
|
| 127 |
{
|
| 128 |
"cell_type": "code",
|
| 129 |
-
"execution_count":
|
| 130 |
"metadata": {
|
| 131 |
"execution": {
|
| 132 |
"iopub.execute_input": "2023-04-07T16:21:09.616280Z",
|
|
@@ -167,7 +167,7 @@
|
|
| 167 |
},
|
| 168 |
{
|
| 169 |
"cell_type": "code",
|
| 170 |
-
"execution_count":
|
| 171 |
"metadata": {
|
| 172 |
"execution": {
|
| 173 |
"iopub.execute_input": "2023-04-07T16:21:09.643982Z",
|
|
@@ -186,7 +186,7 @@
|
|
| 186 |
},
|
| 187 |
{
|
| 188 |
"cell_type": "code",
|
| 189 |
-
"execution_count":
|
| 190 |
"metadata": {
|
| 191 |
"colab": {
|
| 192 |
"base_uri": "https://localhost:8080/",
|
|
@@ -206,13 +206,13 @@
|
|
| 206 |
{
|
| 207 |
"data": {
|
| 208 |
"text/html": [
|
| 209 |
-
"<style>#sk-container-id-
|
| 210 |
],
|
| 211 |
"text/plain": [
|
| 212 |
"LinearRegression()"
|
| 213 |
]
|
| 214 |
},
|
| 215 |
-
"execution_count":
|
| 216 |
"metadata": {},
|
| 217 |
"output_type": "execute_result"
|
| 218 |
}
|
|
@@ -224,9 +224,9 @@
|
|
| 224 |
"from sklearn.preprocessing import OneHotEncoder, LabelEncoder\n",
|
| 225 |
"\n",
|
| 226 |
"label_encoder = LabelEncoder()\n",
|
| 227 |
-
"
|
| 228 |
"x = x_encoded.reshape(-1,1)\n",
|
| 229 |
-
"
|
| 230 |
"y = y_encoded.reshape(-1,1)\n",
|
| 231 |
"# fix ends\n",
|
| 232 |
"\n",
|
|
@@ -236,7 +236,7 @@
|
|
| 236 |
},
|
| 237 |
{
|
| 238 |
"cell_type": "code",
|
| 239 |
-
"execution_count":
|
| 240 |
"metadata": {
|
| 241 |
"colab": {
|
| 242 |
"base_uri": "https://localhost:8080/"
|
|
@@ -250,15 +250,7 @@
|
|
| 250 |
"id": "ZJb9zcNak0mC",
|
| 251 |
"outputId": "484a903d-9c7b-409c-9f73-09b12781034c"
|
| 252 |
},
|
| 253 |
-
"outputs": [
|
| 254 |
-
{
|
| 255 |
-
"name": "stdout",
|
| 256 |
-
"output_type": "stream",
|
| 257 |
-
"text": [
|
| 258 |
-
"b0: [[0.23482319]]\n"
|
| 259 |
-
]
|
| 260 |
-
}
|
| 261 |
-
],
|
| 262 |
"source": [
|
| 263 |
"#prediction\n",
|
| 264 |
"import numpy as np\n",
|
|
@@ -269,7 +261,7 @@
|
|
| 269 |
},
|
| 270 |
{
|
| 271 |
"cell_type": "code",
|
| 272 |
-
"execution_count":
|
| 273 |
"metadata": {
|
| 274 |
"colab": {
|
| 275 |
"base_uri": "https://localhost:8080/"
|
|
@@ -283,15 +275,7 @@
|
|
| 283 |
"id": "ceMWHkbqk0mD",
|
| 284 |
"outputId": "32461418-182e-4f45-a672-b611c26c7779"
|
| 285 |
},
|
| 286 |
-
"outputs": [
|
| 287 |
-
{
|
| 288 |
-
"name": "stdout",
|
| 289 |
-
"output_type": "stream",
|
| 290 |
-
"text": [
|
| 291 |
-
"b0: [0.23482319]\n"
|
| 292 |
-
]
|
| 293 |
-
}
|
| 294 |
-
],
|
| 295 |
"source": [
|
| 296 |
"b0_ = linear_reg.intercept_ \n",
|
| 297 |
"print(\"b0: \",b0_) "
|
|
@@ -299,7 +283,7 @@
|
|
| 299 |
},
|
| 300 |
{
|
| 301 |
"cell_type": "code",
|
| 302 |
-
"execution_count":
|
| 303 |
"metadata": {
|
| 304 |
"colab": {
|
| 305 |
"base_uri": "https://localhost:8080/"
|
|
@@ -313,15 +297,7 @@
|
|
| 313 |
"id": "6Nf-oqqVk0mD",
|
| 314 |
"outputId": "cc8dd271-a9ab-4136-81a3-524e08bf606f"
|
| 315 |
},
|
| 316 |
-
"outputs": [
|
| 317 |
-
{
|
| 318 |
-
"name": "stdout",
|
| 319 |
-
"output_type": "stream",
|
| 320 |
-
"text": [
|
| 321 |
-
"b1: [[0.00490355]]\n"
|
| 322 |
-
]
|
| 323 |
-
}
|
| 324 |
-
],
|
| 325 |
"source": [
|
| 326 |
"b1 = linear_reg.coef_ \n",
|
| 327 |
"print(\"b1: \",b1) "
|
|
@@ -329,7 +305,7 @@
|
|
| 329 |
},
|
| 330 |
{
|
| 331 |
"cell_type": "code",
|
| 332 |
-
"execution_count":
|
| 333 |
"metadata": {
|
| 334 |
"colab": {
|
| 335 |
"base_uri": "https://localhost:8080/"
|
|
@@ -343,15 +319,7 @@
|
|
| 343 |
"id": "RkBNDPoDk0mF",
|
| 344 |
"outputId": "40321ad9-e08e-4b92-e03a-d16089520152"
|
| 345 |
},
|
| 346 |
-
"outputs": [
|
| 347 |
-
{
|
| 348 |
-
"name": "stdout",
|
| 349 |
-
"output_type": "stream",
|
| 350 |
-
"text": [
|
| 351 |
-
"14181\n"
|
| 352 |
-
]
|
| 353 |
-
}
|
| 354 |
-
],
|
| 355 |
"source": [
|
| 356 |
"new_salary = 1663 + 1138*11 \n",
|
| 357 |
"print(new_salary)"
|
|
@@ -359,7 +327,7 @@
|
|
| 359 |
},
|
| 360 |
{
|
| 361 |
"cell_type": "code",
|
| 362 |
-
"execution_count":
|
| 363 |
"metadata": {
|
| 364 |
"colab": {
|
| 365 |
"base_uri": "https://localhost:8080/"
|
|
@@ -373,15 +341,7 @@
|
|
| 373 |
"id": "QKQEaBSvk0mF",
|
| 374 |
"outputId": "560c3896-d449-4213-96d0-740b9a53ae30"
|
| 375 |
},
|
| 376 |
-
"outputs": [
|
| 377 |
-
{
|
| 378 |
-
"name": "stdout",
|
| 379 |
-
"output_type": "stream",
|
| 380 |
-
"text": [
|
| 381 |
-
"b11: [[0.28876223]]\n"
|
| 382 |
-
]
|
| 383 |
-
}
|
| 384 |
-
],
|
| 385 |
"source": [
|
| 386 |
"b11 = linear_reg.predict([[11]]) \n",
|
| 387 |
"print(\"b11: \",b11)"
|
|
@@ -389,7 +349,7 @@
|
|
| 389 |
},
|
| 390 |
{
|
| 391 |
"cell_type": "code",
|
| 392 |
-
"execution_count":
|
| 393 |
"metadata": {
|
| 394 |
"execution": {
|
| 395 |
"iopub.status.busy": "2023-04-07T16:21:10.405070Z",
|
|
@@ -406,7 +366,7 @@
|
|
| 406 |
},
|
| 407 |
{
|
| 408 |
"cell_type": "code",
|
| 409 |
-
"execution_count":
|
| 410 |
"metadata": {
|
| 411 |
"colab": {
|
| 412 |
"base_uri": "https://localhost:8080/",
|
|
@@ -421,18 +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x1q5V7H5Hf32tf2KOu23Rx3pt6/t7/cg8TmO43S/WxcH+3zauHGjZs+e3eU+Cxcu1KZNm7Rr167Yth/84Af66KOPVFVV5epxwuGwUlNTFQqFTuvfpvHygzjYn9Jjrbxhvdxjrdxjrdxjrdxr+zSqiYtf6hAiX5Tgk/Y8dN1pv2Tj9vzd5y8M1dTUKD8/v922goIC1dTUdHlMa2urwuFwuxsAADh9f6g5cMoQkU48Q/KHmgP9Mo/UDzHS0NCgQCDQblsgEFA4HNbHH3/c6TEVFRVKTU2N3YLBYF+PCQDAoPDBv4716n69IS7f2ltWVqZQKBS71dfXW48EAMAZYcLo4b26X2/o8xhJT09XY2Nju22NjY1KSUnRsGHDOj3G7/crJSWl3Q0AAJy+m/MyleA79T4JvhP79Zc+j5G8vDxVV1e327Z161bl5eX19UN34PaipcF+cZPEWnnFernHWrnHWrnHWrmXNCRBt88875T73D7zvH79vBHPj3T06FHV1dWprq5O0om37tbV1engwYOSTrzEMnfu3Nj+d9xxh/bt26ef/exn2rNnj5544gk988wzWrBgQe98Bx5194PID+pJrJU3rJd7rJV7rJV7rJV7ZddP0n/+x3kdniFJ8En/+R/nqez6Sf06j+e39m7btk1XX311h+1FRUVau3atbrnlFh04cEDbtm1rd8yCBQv0zjvvaPz48Vq8eLFuueUW14/ZW2/t/SI+oc891sob1ss91so91so91sq9vv4EVrfn79P6nJH+0hcxAgAA+lbcfM4IAADAqRAjAADAFDECAABMESMAAMAUMQIAAEwRIwAAwBQxAgAATBEjAADAFDECAABMESMAAMAUMQIAAEwRIwAAwBQxAgAATBEjAADAFDECAABMESMAAMAUMQIAAEwRIwAAwBQxAgAATBEjAADAFDECAABMESMAAMAUMQIAAEwRIwAAwBQxAgAATBEjAADAFDECAABMESMAAMAUMQIAAEwRIwAAwBQxAgAATBEjAADAFDECAABMESMAAMAUMQIAAEwRIwAAwBQxAgAATBEjAADAFDECAABMESMAAMAUMQIAAEwRIwAAwBQxAgAATBEjAADAFDECAABMESMAAMAUMQI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ajxSXXn31VUdSh1tRUZH1aHGlszWS5Pz+97+3Hi3u/OhHP3ImTJjgJCUlOeecc45zzTXXOC+//LL1WAMGb+3tWmFhoTN27FgnKSnJGTdunFNYWOjs3bvXeqy49ec//9mZPHmy4/f7nYkTJzqrV682mcPnOI7T/wkEAABwwqC8ZgQAAMQPYgQAAJgiRgAAgCliBAAAmCJGAACAKWIEAACYIkYAAIApYgQAAJgiRgAAgCliBAAAmCJGAACAKWIEAACY+v96G00Hzz6rMAAAAABJRU5ErkJggg==\n",
|
| 428 |
-
"text/plain": [
|
| 429 |
-
"<Figure size 640x480 with 1 Axes>"
|
| 430 |
-
]
|
| 431 |
-
},
|
| 432 |
-
"metadata": {},
|
| 433 |
-
"output_type": "display_data"
|
| 434 |
-
}
|
| 435 |
-
],
|
| 436 |
"source": [
|
| 437 |
"plt.plot(x, y_head, color=\"orange\")\n",
|
| 438 |
"plt.scatter(x,y)\n",
|
|
@@ -441,7 +390,7 @@
|
|
| 441 |
},
|
| 442 |
{
|
| 443 |
"cell_type": "code",
|
| 444 |
-
"execution_count":
|
| 445 |
"metadata": {
|
| 446 |
"colab": {
|
| 447 |
"base_uri": "https://localhost:8080/"
|
|
@@ -455,15 +404,7 @@
|
|
| 455 |
"id": "yB4IY_JOPHIp",
|
| 456 |
"outputId": "8463e20f-abaa-4b65-9958-829f36428fbe"
|
| 457 |
},
|
| 458 |
-
"outputs": [
|
| 459 |
-
{
|
| 460 |
-
"name": "stdout",
|
| 461 |
-
"output_type": "stream",
|
| 462 |
-
"text": [
|
| 463 |
-
"R Square Score: 0.00012117012832713048\n"
|
| 464 |
-
]
|
| 465 |
-
}
|
| 466 |
-
],
|
| 467 |
"source": [
|
| 468 |
"from sklearn.metrics import r2_score\n",
|
| 469 |
"print(\"R Square Score: \",r2_score(y,y_head))"
|
|
@@ -471,7 +412,7 @@
|
|
| 471 |
},
|
| 472 |
{
|
| 473 |
"cell_type": "code",
|
| 474 |
-
"execution_count":
|
| 475 |
"metadata": {
|
| 476 |
"colab": {
|
| 477 |
"base_uri": "https://localhost:8080/"
|
|
@@ -485,15 +426,7 @@
|
|
| 485 |
"id": "B2c6hULSPax7",
|
| 486 |
"outputId": "ebdc9f0a-6dc3-420c-ee7b-7caf57fcf0ec"
|
| 487 |
},
|
| 488 |
-
"outputs": [
|
| 489 |
-
{
|
| 490 |
-
"name": "stdout",
|
| 491 |
-
"output_type": "stream",
|
| 492 |
-
"text": [
|
| 493 |
-
"Mean Squared Error: 0.18530088136681314\n"
|
| 494 |
-
]
|
| 495 |
-
}
|
| 496 |
-
],
|
| 497 |
"source": [
|
| 498 |
"from sklearn.metrics import mean_squared_error\n",
|
| 499 |
"print(\"Mean Squared Error: \",mean_squared_error(y,y_head))"
|
|
@@ -501,7 +434,7 @@
|
|
| 501 |
},
|
| 502 |
{
|
| 503 |
"cell_type": "code",
|
| 504 |
-
"execution_count":
|
| 505 |
"metadata": {
|
| 506 |
"colab": {
|
| 507 |
"base_uri": "https://localhost:8080/"
|
|
@@ -515,15 +448,7 @@
|
|
| 515 |
"id": "E5B5Mb8aQInk",
|
| 516 |
"outputId": "c2c6d524-9fa9-4f30-e680-e83435348901"
|
| 517 |
},
|
| 518 |
-
"outputs": [
|
| 519 |
-
{
|
| 520 |
-
"name": "stdout",
|
| 521 |
-
"output_type": "stream",
|
| 522 |
-
"text": [
|
| 523 |
-
"Mean Squared Error: 0.18530088136681314\n"
|
| 524 |
-
]
|
| 525 |
-
}
|
| 526 |
-
],
|
| 527 |
"source": [
|
| 528 |
"MSE = np.square(np.subtract(y,y_head)).mean()\n",
|
| 529 |
"print(\"Mean Squared Error: \",MSE)"
|
|
|
|
| 126 |
},
|
| 127 |
{
|
| 128 |
"cell_type": "code",
|
| 129 |
+
"execution_count": null,
|
| 130 |
"metadata": {
|
| 131 |
"execution": {
|
| 132 |
"iopub.execute_input": "2023-04-07T16:21:09.616280Z",
|
|
|
|
| 167 |
},
|
| 168 |
{
|
| 169 |
"cell_type": "code",
|
| 170 |
+
"execution_count": 3,
|
| 171 |
"metadata": {
|
| 172 |
"execution": {
|
| 173 |
"iopub.execute_input": "2023-04-07T16:21:09.643982Z",
|
|
|
|
| 186 |
},
|
| 187 |
{
|
| 188 |
"cell_type": "code",
|
| 189 |
+
"execution_count": 5,
|
| 190 |
"metadata": {
|
| 191 |
"colab": {
|
| 192 |
"base_uri": "https://localhost:8080/",
|
|
|
|
| 206 |
{
|
| 207 |
"data": {
|
| 208 |
"text/html": [
|
| 209 |
+
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>LinearRegression()</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">LinearRegression</label><div class=\"sk-toggleable__content\"><pre>LinearRegression()</pre></div></div></div></div></div>"
|
| 210 |
],
|
| 211 |
"text/plain": [
|
| 212 |
"LinearRegression()"
|
| 213 |
]
|
| 214 |
},
|
| 215 |
+
"execution_count": 5,
|
| 216 |
"metadata": {},
|
| 217 |
"output_type": "execute_result"
|
| 218 |
}
|
|
|
|
| 224 |
"from sklearn.preprocessing import OneHotEncoder, LabelEncoder\n",
|
| 225 |
"\n",
|
| 226 |
"label_encoder = LabelEncoder()\n",
|
| 227 |
+
"x_encoded = label_encoder.fit_transform(df.workclass.values)\n",
|
| 228 |
"x = x_encoded.reshape(-1,1)\n",
|
| 229 |
+
"y_encoded = label_encoder.fit_transform(df.Salary.values)\n",
|
| 230 |
"y = y_encoded.reshape(-1,1)\n",
|
| 231 |
"# fix ends\n",
|
| 232 |
"\n",
|
|
|
|
| 236 |
},
|
| 237 |
{
|
| 238 |
"cell_type": "code",
|
| 239 |
+
"execution_count": null,
|
| 240 |
"metadata": {
|
| 241 |
"colab": {
|
| 242 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 250 |
"id": "ZJb9zcNak0mC",
|
| 251 |
"outputId": "484a903d-9c7b-409c-9f73-09b12781034c"
|
| 252 |
},
|
| 253 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
"source": [
|
| 255 |
"#prediction\n",
|
| 256 |
"import numpy as np\n",
|
|
|
|
| 261 |
},
|
| 262 |
{
|
| 263 |
"cell_type": "code",
|
| 264 |
+
"execution_count": null,
|
| 265 |
"metadata": {
|
| 266 |
"colab": {
|
| 267 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 275 |
"id": "ceMWHkbqk0mD",
|
| 276 |
"outputId": "32461418-182e-4f45-a672-b611c26c7779"
|
| 277 |
},
|
| 278 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
"source": [
|
| 280 |
"b0_ = linear_reg.intercept_ \n",
|
| 281 |
"print(\"b0: \",b0_) "
|
|
|
|
| 283 |
},
|
| 284 |
{
|
| 285 |
"cell_type": "code",
|
| 286 |
+
"execution_count": null,
|
| 287 |
"metadata": {
|
| 288 |
"colab": {
|
| 289 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 297 |
"id": "6Nf-oqqVk0mD",
|
| 298 |
"outputId": "cc8dd271-a9ab-4136-81a3-524e08bf606f"
|
| 299 |
},
|
| 300 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
"source": [
|
| 302 |
"b1 = linear_reg.coef_ \n",
|
| 303 |
"print(\"b1: \",b1) "
|
|
|
|
| 305 |
},
|
| 306 |
{
|
| 307 |
"cell_type": "code",
|
| 308 |
+
"execution_count": null,
|
| 309 |
"metadata": {
|
| 310 |
"colab": {
|
| 311 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 319 |
"id": "RkBNDPoDk0mF",
|
| 320 |
"outputId": "40321ad9-e08e-4b92-e03a-d16089520152"
|
| 321 |
},
|
| 322 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
"source": [
|
| 324 |
"new_salary = 1663 + 1138*11 \n",
|
| 325 |
"print(new_salary)"
|
|
|
|
| 327 |
},
|
| 328 |
{
|
| 329 |
"cell_type": "code",
|
| 330 |
+
"execution_count": null,
|
| 331 |
"metadata": {
|
| 332 |
"colab": {
|
| 333 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 341 |
"id": "QKQEaBSvk0mF",
|
| 342 |
"outputId": "560c3896-d449-4213-96d0-740b9a53ae30"
|
| 343 |
},
|
| 344 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
"source": [
|
| 346 |
"b11 = linear_reg.predict([[11]]) \n",
|
| 347 |
"print(\"b11: \",b11)"
|
|
|
|
| 349 |
},
|
| 350 |
{
|
| 351 |
"cell_type": "code",
|
| 352 |
+
"execution_count": null,
|
| 353 |
"metadata": {
|
| 354 |
"execution": {
|
| 355 |
"iopub.status.busy": "2023-04-07T16:21:10.405070Z",
|
|
|
|
| 366 |
},
|
| 367 |
{
|
| 368 |
"cell_type": "code",
|
| 369 |
+
"execution_count": null,
|
| 370 |
"metadata": {
|
| 371 |
"colab": {
|
| 372 |
"base_uri": "https://localhost:8080/",
|
|
|
|
| 381 |
"id": "kt89yyBQO_6Z",
|
| 382 |
"outputId": "3aca9e7d-04c1-4fd1-8e41-6ff835d25099"
|
| 383 |
},
|
| 384 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
"source": [
|
| 386 |
"plt.plot(x, y_head, color=\"orange\")\n",
|
| 387 |
"plt.scatter(x,y)\n",
|
|
|
|
| 390 |
},
|
| 391 |
{
|
| 392 |
"cell_type": "code",
|
| 393 |
+
"execution_count": null,
|
| 394 |
"metadata": {
|
| 395 |
"colab": {
|
| 396 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 404 |
"id": "yB4IY_JOPHIp",
|
| 405 |
"outputId": "8463e20f-abaa-4b65-9958-829f36428fbe"
|
| 406 |
},
|
| 407 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 408 |
"source": [
|
| 409 |
"from sklearn.metrics import r2_score\n",
|
| 410 |
"print(\"R Square Score: \",r2_score(y,y_head))"
|
|
|
|
| 412 |
},
|
| 413 |
{
|
| 414 |
"cell_type": "code",
|
| 415 |
+
"execution_count": null,
|
| 416 |
"metadata": {
|
| 417 |
"colab": {
|
| 418 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 426 |
"id": "B2c6hULSPax7",
|
| 427 |
"outputId": "ebdc9f0a-6dc3-420c-ee7b-7caf57fcf0ec"
|
| 428 |
},
|
| 429 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 430 |
"source": [
|
| 431 |
"from sklearn.metrics import mean_squared_error\n",
|
| 432 |
"print(\"Mean Squared Error: \",mean_squared_error(y,y_head))"
|
|
|
|
| 434 |
},
|
| 435 |
{
|
| 436 |
"cell_type": "code",
|
| 437 |
+
"execution_count": null,
|
| 438 |
"metadata": {
|
| 439 |
"colab": {
|
| 440 |
"base_uri": "https://localhost:8080/"
|
|
|
|
| 448 |
"id": "E5B5Mb8aQInk",
|
| 449 |
"outputId": "c2c6d524-9fa9-4f30-e680-e83435348901"
|
| 450 |
},
|
| 451 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
"source": [
|
| 453 |
"MSE = np.square(np.subtract(y,y_head)).mean()\n",
|
| 454 |
"print(\"Mean Squared Error: \",MSE)"
|
benchmark/sklearn_13/sklearn_13_reproduced.ipynb
CHANGED
|
@@ -126,7 +126,7 @@
|
|
| 126 |
},
|
| 127 |
{
|
| 128 |
"cell_type": "code",
|
| 129 |
-
"execution_count":
|
| 130 |
"metadata": {
|
| 131 |
"execution": {
|
| 132 |
"iopub.execute_input": "2023-04-07T16:21:09.616280Z",
|
|
|
|
| 126 |
},
|
| 127 |
{
|
| 128 |
"cell_type": "code",
|
| 129 |
+
"execution_count": null,
|
| 130 |
"metadata": {
|
| 131 |
"execution": {
|
| 132 |
"iopub.execute_input": "2023-04-07T16:21:09.616280Z",
|
benchmark/sklearn_14/sklearn_14_fixed.ipynb
CHANGED
|
@@ -50,7 +50,7 @@
|
|
| 50 |
},
|
| 51 |
{
|
| 52 |
"cell_type": "code",
|
| 53 |
-
"execution_count":
|
| 54 |
"metadata": {
|
| 55 |
"execution": {
|
| 56 |
"iopub.execute_input": "2023-10-01T12:08:18.443812Z",
|
|
@@ -69,7 +69,7 @@
|
|
| 69 |
},
|
| 70 |
{
|
| 71 |
"cell_type": "code",
|
| 72 |
-
"execution_count":
|
| 73 |
"metadata": {
|
| 74 |
"execution": {
|
| 75 |
"iopub.execute_input": "2023-10-01T12:08:21.397453Z",
|
|
@@ -79,186 +79,7 @@
|
|
| 79 |
"shell.execute_reply.started": "2023-10-01T12:08:21.397388Z"
|
| 80 |
}
|
| 81 |
},
|
| 82 |
-
"outputs": [
|
| 83 |
-
{
|
| 84 |
-
"data": {
|
| 85 |
-
"text/html": [
|
| 86 |
-
"<div>\n",
|
| 87 |
-
"<style scoped>\n",
|
| 88 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 89 |
-
" vertical-align: middle;\n",
|
| 90 |
-
" }\n",
|
| 91 |
-
"\n",
|
| 92 |
-
" .dataframe tbody tr th {\n",
|
| 93 |
-
" vertical-align: top;\n",
|
| 94 |
-
" }\n",
|
| 95 |
-
"\n",
|
| 96 |
-
" .dataframe thead th {\n",
|
| 97 |
-
" text-align: right;\n",
|
| 98 |
-
" }\n",
|
| 99 |
-
"</style>\n",
|
| 100 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 101 |
-
" <thead>\n",
|
| 102 |
-
" <tr style=\"text-align: right;\">\n",
|
| 103 |
-
" <th></th>\n",
|
| 104 |
-
" <th>date</th>\n",
|
| 105 |
-
" <th>price</th>\n",
|
| 106 |
-
" <th>bedrooms</th>\n",
|
| 107 |
-
" <th>bathrooms</th>\n",
|
| 108 |
-
" <th>sqft_living</th>\n",
|
| 109 |
-
" <th>sqft_lot</th>\n",
|
| 110 |
-
" <th>floors</th>\n",
|
| 111 |
-
" <th>waterfront</th>\n",
|
| 112 |
-
" <th>view</th>\n",
|
| 113 |
-
" <th>condition</th>\n",
|
| 114 |
-
" <th>sqft_above</th>\n",
|
| 115 |
-
" <th>sqft_basement</th>\n",
|
| 116 |
-
" <th>yr_built</th>\n",
|
| 117 |
-
" <th>yr_renovated</th>\n",
|
| 118 |
-
" <th>street</th>\n",
|
| 119 |
-
" <th>city</th>\n",
|
| 120 |
-
" <th>statezip</th>\n",
|
| 121 |
-
" <th>country</th>\n",
|
| 122 |
-
" </tr>\n",
|
| 123 |
-
" </thead>\n",
|
| 124 |
-
" <tbody>\n",
|
| 125 |
-
" <tr>\n",
|
| 126 |
-
" <th>0</th>\n",
|
| 127 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 128 |
-
" <td>313000.0</td>\n",
|
| 129 |
-
" <td>3.0</td>\n",
|
| 130 |
-
" <td>1.50</td>\n",
|
| 131 |
-
" <td>1340</td>\n",
|
| 132 |
-
" <td>7912</td>\n",
|
| 133 |
-
" <td>1.5</td>\n",
|
| 134 |
-
" <td>0</td>\n",
|
| 135 |
-
" <td>0</td>\n",
|
| 136 |
-
" <td>3</td>\n",
|
| 137 |
-
" <td>1340</td>\n",
|
| 138 |
-
" <td>0</td>\n",
|
| 139 |
-
" <td>1955</td>\n",
|
| 140 |
-
" <td>2005</td>\n",
|
| 141 |
-
" <td>18810 Densmore Ave N</td>\n",
|
| 142 |
-
" <td>Shoreline</td>\n",
|
| 143 |
-
" <td>WA 98133</td>\n",
|
| 144 |
-
" <td>USA</td>\n",
|
| 145 |
-
" </tr>\n",
|
| 146 |
-
" <tr>\n",
|
| 147 |
-
" <th>1</th>\n",
|
| 148 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 149 |
-
" <td>2384000.0</td>\n",
|
| 150 |
-
" <td>5.0</td>\n",
|
| 151 |
-
" <td>2.50</td>\n",
|
| 152 |
-
" <td>3650</td>\n",
|
| 153 |
-
" <td>9050</td>\n",
|
| 154 |
-
" <td>2.0</td>\n",
|
| 155 |
-
" <td>0</td>\n",
|
| 156 |
-
" <td>4</td>\n",
|
| 157 |
-
" <td>5</td>\n",
|
| 158 |
-
" <td>3370</td>\n",
|
| 159 |
-
" <td>280</td>\n",
|
| 160 |
-
" <td>1921</td>\n",
|
| 161 |
-
" <td>0</td>\n",
|
| 162 |
-
" <td>709 W Blaine St</td>\n",
|
| 163 |
-
" <td>Seattle</td>\n",
|
| 164 |
-
" <td>WA 98119</td>\n",
|
| 165 |
-
" <td>USA</td>\n",
|
| 166 |
-
" </tr>\n",
|
| 167 |
-
" <tr>\n",
|
| 168 |
-
" <th>2</th>\n",
|
| 169 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 170 |
-
" <td>342000.0</td>\n",
|
| 171 |
-
" <td>3.0</td>\n",
|
| 172 |
-
" <td>2.00</td>\n",
|
| 173 |
-
" <td>1930</td>\n",
|
| 174 |
-
" <td>11947</td>\n",
|
| 175 |
-
" <td>1.0</td>\n",
|
| 176 |
-
" <td>0</td>\n",
|
| 177 |
-
" <td>0</td>\n",
|
| 178 |
-
" <td>4</td>\n",
|
| 179 |
-
" <td>1930</td>\n",
|
| 180 |
-
" <td>0</td>\n",
|
| 181 |
-
" <td>1966</td>\n",
|
| 182 |
-
" <td>0</td>\n",
|
| 183 |
-
" <td>26206-26214 143rd Ave SE</td>\n",
|
| 184 |
-
" <td>Kent</td>\n",
|
| 185 |
-
" <td>WA 98042</td>\n",
|
| 186 |
-
" <td>USA</td>\n",
|
| 187 |
-
" </tr>\n",
|
| 188 |
-
" <tr>\n",
|
| 189 |
-
" <th>3</th>\n",
|
| 190 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 191 |
-
" <td>420000.0</td>\n",
|
| 192 |
-
" <td>3.0</td>\n",
|
| 193 |
-
" <td>2.25</td>\n",
|
| 194 |
-
" <td>2000</td>\n",
|
| 195 |
-
" <td>8030</td>\n",
|
| 196 |
-
" <td>1.0</td>\n",
|
| 197 |
-
" <td>0</td>\n",
|
| 198 |
-
" <td>0</td>\n",
|
| 199 |
-
" <td>4</td>\n",
|
| 200 |
-
" <td>1000</td>\n",
|
| 201 |
-
" <td>1000</td>\n",
|
| 202 |
-
" <td>1963</td>\n",
|
| 203 |
-
" <td>0</td>\n",
|
| 204 |
-
" <td>857 170th Pl NE</td>\n",
|
| 205 |
-
" <td>Bellevue</td>\n",
|
| 206 |
-
" <td>WA 98008</td>\n",
|
| 207 |
-
" <td>USA</td>\n",
|
| 208 |
-
" </tr>\n",
|
| 209 |
-
" <tr>\n",
|
| 210 |
-
" <th>4</th>\n",
|
| 211 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 212 |
-
" <td>550000.0</td>\n",
|
| 213 |
-
" <td>4.0</td>\n",
|
| 214 |
-
" <td>2.50</td>\n",
|
| 215 |
-
" <td>1940</td>\n",
|
| 216 |
-
" <td>10500</td>\n",
|
| 217 |
-
" <td>1.0</td>\n",
|
| 218 |
-
" <td>0</td>\n",
|
| 219 |
-
" <td>0</td>\n",
|
| 220 |
-
" <td>4</td>\n",
|
| 221 |
-
" <td>1140</td>\n",
|
| 222 |
-
" <td>800</td>\n",
|
| 223 |
-
" <td>1976</td>\n",
|
| 224 |
-
" <td>1992</td>\n",
|
| 225 |
-
" <td>9105 170th Ave NE</td>\n",
|
| 226 |
-
" <td>Redmond</td>\n",
|
| 227 |
-
" <td>WA 98052</td>\n",
|
| 228 |
-
" <td>USA</td>\n",
|
| 229 |
-
" </tr>\n",
|
| 230 |
-
" </tbody>\n",
|
| 231 |
-
"</table>\n",
|
| 232 |
-
"</div>"
|
| 233 |
-
],
|
| 234 |
-
"text/plain": [
|
| 235 |
-
" date price bedrooms bathrooms sqft_living sqft_lot \\\n",
|
| 236 |
-
"0 2014-05-02 00:00:00 313000.0 3.0 1.50 1340 7912 \n",
|
| 237 |
-
"1 2014-05-02 00:00:00 2384000.0 5.0 2.50 3650 9050 \n",
|
| 238 |
-
"2 2014-05-02 00:00:00 342000.0 3.0 2.00 1930 11947 \n",
|
| 239 |
-
"3 2014-05-02 00:00:00 420000.0 3.0 2.25 2000 8030 \n",
|
| 240 |
-
"4 2014-05-02 00:00:00 550000.0 4.0 2.50 1940 10500 \n",
|
| 241 |
-
"\n",
|
| 242 |
-
" floors waterfront view condition sqft_above sqft_basement yr_built \\\n",
|
| 243 |
-
"0 1.5 0 0 3 1340 0 1955 \n",
|
| 244 |
-
"1 2.0 0 4 5 3370 280 1921 \n",
|
| 245 |
-
"2 1.0 0 0 4 1930 0 1966 \n",
|
| 246 |
-
"3 1.0 0 0 4 1000 1000 1963 \n",
|
| 247 |
-
"4 1.0 0 0 4 1140 800 1976 \n",
|
| 248 |
-
"\n",
|
| 249 |
-
" yr_renovated street city statezip country \n",
|
| 250 |
-
"0 2005 18810 Densmore Ave N Shoreline WA 98133 USA \n",
|
| 251 |
-
"1 0 709 W Blaine St Seattle WA 98119 USA \n",
|
| 252 |
-
"2 0 26206-26214 143rd Ave SE Kent WA 98042 USA \n",
|
| 253 |
-
"3 0 857 170th Pl NE Bellevue WA 98008 USA \n",
|
| 254 |
-
"4 1992 9105 170th Ave NE Redmond WA 98052 USA "
|
| 255 |
-
]
|
| 256 |
-
},
|
| 257 |
-
"execution_count": 10,
|
| 258 |
-
"metadata": {},
|
| 259 |
-
"output_type": "execute_result"
|
| 260 |
-
}
|
| 261 |
-
],
|
| 262 |
"source": [
|
| 263 |
"# Preprocessing\n",
|
| 264 |
"df.head()"
|
|
@@ -266,7 +87,7 @@
|
|
| 266 |
},
|
| 267 |
{
|
| 268 |
"cell_type": "code",
|
| 269 |
-
"execution_count":
|
| 270 |
"metadata": {
|
| 271 |
"execution": {
|
| 272 |
"iopub.execute_input": "2023-10-01T12:08:24.387978Z",
|
|
@@ -276,39 +97,7 @@
|
|
| 276 |
"shell.execute_reply.started": "2023-10-01T12:08:24.387936Z"
|
| 277 |
}
|
| 278 |
},
|
| 279 |
-
"outputs": [
|
| 280 |
-
{
|
| 281 |
-
"name": "stdout",
|
| 282 |
-
"output_type": "stream",
|
| 283 |
-
"text": [
|
| 284 |
-
"<class 'pandas.core.frame.DataFrame'>\n",
|
| 285 |
-
"RangeIndex: 4600 entries, 0 to 4599\n",
|
| 286 |
-
"Data columns (total 18 columns):\n",
|
| 287 |
-
" # Column Non-Null Count Dtype \n",
|
| 288 |
-
"--- ------ -------------- ----- \n",
|
| 289 |
-
" 0 date 4600 non-null object \n",
|
| 290 |
-
" 1 price 4600 non-null float64\n",
|
| 291 |
-
" 2 bedrooms 4600 non-null float64\n",
|
| 292 |
-
" 3 bathrooms 4600 non-null float64\n",
|
| 293 |
-
" 4 sqft_living 4600 non-null int64 \n",
|
| 294 |
-
" 5 sqft_lot 4600 non-null int64 \n",
|
| 295 |
-
" 6 floors 4600 non-null float64\n",
|
| 296 |
-
" 7 waterfront 4600 non-null int64 \n",
|
| 297 |
-
" 8 view 4600 non-null int64 \n",
|
| 298 |
-
" 9 condition 4600 non-null int64 \n",
|
| 299 |
-
" 10 sqft_above 4600 non-null int64 \n",
|
| 300 |
-
" 11 sqft_basement 4600 non-null int64 \n",
|
| 301 |
-
" 12 yr_built 4600 non-null int64 \n",
|
| 302 |
-
" 13 yr_renovated 4600 non-null int64 \n",
|
| 303 |
-
" 14 street 4600 non-null object \n",
|
| 304 |
-
" 15 city 4600 non-null object \n",
|
| 305 |
-
" 16 statezip 4600 non-null object \n",
|
| 306 |
-
" 17 country 4600 non-null object \n",
|
| 307 |
-
"dtypes: float64(4), int64(9), object(5)\n",
|
| 308 |
-
"memory usage: 647.0+ KB\n"
|
| 309 |
-
]
|
| 310 |
-
}
|
| 311 |
-
],
|
| 312 |
"source": [
|
| 313 |
"df.info()"
|
| 314 |
]
|
|
@@ -332,7 +121,7 @@
|
|
| 332 |
},
|
| 333 |
{
|
| 334 |
"cell_type": "code",
|
| 335 |
-
"execution_count":
|
| 336 |
"metadata": {
|
| 337 |
"execution": {
|
| 338 |
"iopub.execute_input": "2023-10-01T12:08:29.794467Z",
|
|
@@ -440,21 +229,7 @@
|
|
| 440 |
},
|
| 441 |
{
|
| 442 |
"cell_type": "code",
|
| 443 |
-
"execution_count":
|
| 444 |
-
"metadata": {},
|
| 445 |
-
"outputs": [],
|
| 446 |
-
"source": [
|
| 447 |
-
"# fix ---------\n",
|
| 448 |
-
"# When using LinearRegression from sklearn.linear_model, all features must be numeric.\n",
|
| 449 |
-
"\n",
|
| 450 |
-
"# Convert categorical columns to numeric using one-hot encoding\n",
|
| 451 |
-
"categorical_columns = ['street', 'city', 'statezip', 'country']\n",
|
| 452 |
-
"df = pd.get_dummies(df, columns=categorical_columns, drop_first=True)"
|
| 453 |
-
]
|
| 454 |
-
},
|
| 455 |
-
{
|
| 456 |
-
"cell_type": "code",
|
| 457 |
-
"execution_count": null,
|
| 458 |
"metadata": {
|
| 459 |
"execution": {
|
| 460 |
"iopub.execute_input": "2023-10-01T12:08:41.179495Z",
|
|
@@ -466,446 +241,65 @@
|
|
| 466 |
},
|
| 467 |
"outputs": [],
|
| 468 |
"source": [
|
| 469 |
-
"df['city'].replace({\n",
|
| 470 |
-
"'Seattle' : 0,\n",
|
| 471 |
-
"'Renton' : 1,\n",
|
| 472 |
-
"'Bellevue' : 2,\n",
|
| 473 |
-
"'Redmond' : 3,\n",
|
| 474 |
-
"'Issaquah' : 4,\n",
|
| 475 |
-
"'Kirkland' : 5,\n",
|
| 476 |
-
"'Kent' : 6,\n",
|
| 477 |
-
"'Auburn' : 7,\n",
|
| 478 |
-
"'Sammamish' : 8,\n",
|
| 479 |
-
"'Federal Way' : 9,\n",
|
| 480 |
-
"'Shoreline' : 10,\n",
|
| 481 |
-
"'Woodinville' : 11,\n",
|
| 482 |
-
"'Maple Valley' : 12,\n",
|
| 483 |
-
"'Mercer Island' : 13,\n",
|
| 484 |
-
"'Burien' : 14,\n",
|
| 485 |
-
"'Snoqualmie' : 15,\n",
|
| 486 |
-
"'Kenmore' : 16,\n",
|
| 487 |
-
"'Des Moines' : 17,\n",
|
| 488 |
-
"'North Bend' : 18,\n",
|
| 489 |
-
"'Covington' : 19,\n",
|
| 490 |
-
"'Duvall' : 20,\n",
|
| 491 |
-
"'Lake Forest Park' : 21,\n",
|
| 492 |
-
"'Bothell' : 22,\n",
|
| 493 |
-
"'Newcastle' : 23,\n",
|
| 494 |
-
"'SeaTac' : 24,\n",
|
| 495 |
-
"'Tukwila' : 25,\n",
|
| 496 |
-
"'Vashon' : 26,\n",
|
| 497 |
-
"'Enumclaw' : 27,\n",
|
| 498 |
-
"'Carnation' : 28,\n",
|
| 499 |
-
"'Normandy Park' : 29,\n",
|
| 500 |
-
"'Clyde Hill' : 30,\n",
|
| 501 |
-
"'Medina' : 31,\n",
|
| 502 |
-
"'Fall City' : 32,\n",
|
| 503 |
-
"'Black Diamond' : 33,\n",
|
| 504 |
-
"'Ravensdale' : 34,\n",
|
| 505 |
-
"'Pacific' : 35,\n",
|
| 506 |
-
"'Algona' : 36,\n",
|
| 507 |
-
"'Yarrow Point' : 37, \n",
|
| 508 |
-
"'Skykomish' : 38,\n",
|
| 509 |
-
"'Preston' : 39,\n",
|
| 510 |
-
"'Milton' : 40,\n",
|
| 511 |
-
"'Inglewood-Finn Hill': 41,\n",
|
| 512 |
-
"'Snoqualmie Pass' : 42,\n",
|
| 513 |
-
"'Beaux Arts Village' : 43},inplace=True)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 514 |
]
|
| 515 |
},
|
| 516 |
{
|
| 517 |
"cell_type": "code",
|
| 518 |
-
"execution_count":
|
| 519 |
"metadata": {},
|
| 520 |
-
"outputs": [
|
| 521 |
-
{
|
| 522 |
-
"data": {
|
| 523 |
-
"text/html": [
|
| 524 |
-
"<div>\n",
|
| 525 |
-
"<style scoped>\n",
|
| 526 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 527 |
-
" vertical-align: middle;\n",
|
| 528 |
-
" }\n",
|
| 529 |
-
"\n",
|
| 530 |
-
" .dataframe tbody tr th {\n",
|
| 531 |
-
" vertical-align: top;\n",
|
| 532 |
-
" }\n",
|
| 533 |
-
"\n",
|
| 534 |
-
" .dataframe thead th {\n",
|
| 535 |
-
" text-align: right;\n",
|
| 536 |
-
" }\n",
|
| 537 |
-
"</style>\n",
|
| 538 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 539 |
-
" <thead>\n",
|
| 540 |
-
" <tr style=\"text-align: right;\">\n",
|
| 541 |
-
" <th></th>\n",
|
| 542 |
-
" <th>date</th>\n",
|
| 543 |
-
" <th>price</th>\n",
|
| 544 |
-
" <th>bedrooms</th>\n",
|
| 545 |
-
" <th>bathrooms</th>\n",
|
| 546 |
-
" <th>sqft_living</th>\n",
|
| 547 |
-
" <th>sqft_lot</th>\n",
|
| 548 |
-
" <th>floors</th>\n",
|
| 549 |
-
" <th>waterfront</th>\n",
|
| 550 |
-
" <th>view</th>\n",
|
| 551 |
-
" <th>condition</th>\n",
|
| 552 |
-
" <th>...</th>\n",
|
| 553 |
-
" <th>statezip_WA 98155</th>\n",
|
| 554 |
-
" <th>statezip_WA 98166</th>\n",
|
| 555 |
-
" <th>statezip_WA 98168</th>\n",
|
| 556 |
-
" <th>statezip_WA 98177</th>\n",
|
| 557 |
-
" <th>statezip_WA 98178</th>\n",
|
| 558 |
-
" <th>statezip_WA 98188</th>\n",
|
| 559 |
-
" <th>statezip_WA 98198</th>\n",
|
| 560 |
-
" <th>statezip_WA 98199</th>\n",
|
| 561 |
-
" <th>statezip_WA 98288</th>\n",
|
| 562 |
-
" <th>statezip_WA 98354</th>\n",
|
| 563 |
-
" </tr>\n",
|
| 564 |
-
" </thead>\n",
|
| 565 |
-
" <tbody>\n",
|
| 566 |
-
" <tr>\n",
|
| 567 |
-
" <th>0</th>\n",
|
| 568 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 569 |
-
" <td>3.130000e+05</td>\n",
|
| 570 |
-
" <td>3.0</td>\n",
|
| 571 |
-
" <td>1.50</td>\n",
|
| 572 |
-
" <td>1340</td>\n",
|
| 573 |
-
" <td>7912</td>\n",
|
| 574 |
-
" <td>1.5</td>\n",
|
| 575 |
-
" <td>0</td>\n",
|
| 576 |
-
" <td>0</td>\n",
|
| 577 |
-
" <td>3</td>\n",
|
| 578 |
-
" <td>...</td>\n",
|
| 579 |
-
" <td>False</td>\n",
|
| 580 |
-
" <td>False</td>\n",
|
| 581 |
-
" <td>False</td>\n",
|
| 582 |
-
" <td>False</td>\n",
|
| 583 |
-
" <td>False</td>\n",
|
| 584 |
-
" <td>False</td>\n",
|
| 585 |
-
" <td>False</td>\n",
|
| 586 |
-
" <td>False</td>\n",
|
| 587 |
-
" <td>False</td>\n",
|
| 588 |
-
" <td>False</td>\n",
|
| 589 |
-
" </tr>\n",
|
| 590 |
-
" <tr>\n",
|
| 591 |
-
" <th>1</th>\n",
|
| 592 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 593 |
-
" <td>2.384000e+06</td>\n",
|
| 594 |
-
" <td>5.0</td>\n",
|
| 595 |
-
" <td>2.50</td>\n",
|
| 596 |
-
" <td>3650</td>\n",
|
| 597 |
-
" <td>9050</td>\n",
|
| 598 |
-
" <td>2.0</td>\n",
|
| 599 |
-
" <td>0</td>\n",
|
| 600 |
-
" <td>4</td>\n",
|
| 601 |
-
" <td>5</td>\n",
|
| 602 |
-
" <td>...</td>\n",
|
| 603 |
-
" <td>False</td>\n",
|
| 604 |
-
" <td>False</td>\n",
|
| 605 |
-
" <td>False</td>\n",
|
| 606 |
-
" <td>False</td>\n",
|
| 607 |
-
" <td>False</td>\n",
|
| 608 |
-
" <td>False</td>\n",
|
| 609 |
-
" <td>False</td>\n",
|
| 610 |
-
" <td>False</td>\n",
|
| 611 |
-
" <td>False</td>\n",
|
| 612 |
-
" <td>False</td>\n",
|
| 613 |
-
" </tr>\n",
|
| 614 |
-
" <tr>\n",
|
| 615 |
-
" <th>2</th>\n",
|
| 616 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 617 |
-
" <td>3.420000e+05</td>\n",
|
| 618 |
-
" <td>3.0</td>\n",
|
| 619 |
-
" <td>2.00</td>\n",
|
| 620 |
-
" <td>1930</td>\n",
|
| 621 |
-
" <td>11947</td>\n",
|
| 622 |
-
" <td>1.0</td>\n",
|
| 623 |
-
" <td>0</td>\n",
|
| 624 |
-
" <td>0</td>\n",
|
| 625 |
-
" <td>4</td>\n",
|
| 626 |
-
" <td>...</td>\n",
|
| 627 |
-
" <td>False</td>\n",
|
| 628 |
-
" <td>False</td>\n",
|
| 629 |
-
" <td>False</td>\n",
|
| 630 |
-
" <td>False</td>\n",
|
| 631 |
-
" <td>False</td>\n",
|
| 632 |
-
" <td>False</td>\n",
|
| 633 |
-
" <td>False</td>\n",
|
| 634 |
-
" <td>False</td>\n",
|
| 635 |
-
" <td>False</td>\n",
|
| 636 |
-
" <td>False</td>\n",
|
| 637 |
-
" </tr>\n",
|
| 638 |
-
" <tr>\n",
|
| 639 |
-
" <th>3</th>\n",
|
| 640 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 641 |
-
" <td>4.200000e+05</td>\n",
|
| 642 |
-
" <td>3.0</td>\n",
|
| 643 |
-
" <td>2.25</td>\n",
|
| 644 |
-
" <td>2000</td>\n",
|
| 645 |
-
" <td>8030</td>\n",
|
| 646 |
-
" <td>1.0</td>\n",
|
| 647 |
-
" <td>0</td>\n",
|
| 648 |
-
" <td>0</td>\n",
|
| 649 |
-
" <td>4</td>\n",
|
| 650 |
-
" <td>...</td>\n",
|
| 651 |
-
" <td>False</td>\n",
|
| 652 |
-
" <td>False</td>\n",
|
| 653 |
-
" <td>False</td>\n",
|
| 654 |
-
" <td>False</td>\n",
|
| 655 |
-
" <td>False</td>\n",
|
| 656 |
-
" <td>False</td>\n",
|
| 657 |
-
" <td>False</td>\n",
|
| 658 |
-
" <td>False</td>\n",
|
| 659 |
-
" <td>False</td>\n",
|
| 660 |
-
" <td>False</td>\n",
|
| 661 |
-
" </tr>\n",
|
| 662 |
-
" <tr>\n",
|
| 663 |
-
" <th>4</th>\n",
|
| 664 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 665 |
-
" <td>5.500000e+05</td>\n",
|
| 666 |
-
" <td>4.0</td>\n",
|
| 667 |
-
" <td>2.50</td>\n",
|
| 668 |
-
" <td>1940</td>\n",
|
| 669 |
-
" <td>10500</td>\n",
|
| 670 |
-
" <td>1.0</td>\n",
|
| 671 |
-
" <td>0</td>\n",
|
| 672 |
-
" <td>0</td>\n",
|
| 673 |
-
" <td>4</td>\n",
|
| 674 |
-
" <td>...</td>\n",
|
| 675 |
-
" <td>False</td>\n",
|
| 676 |
-
" <td>False</td>\n",
|
| 677 |
-
" <td>False</td>\n",
|
| 678 |
-
" <td>False</td>\n",
|
| 679 |
-
" <td>False</td>\n",
|
| 680 |
-
" <td>False</td>\n",
|
| 681 |
-
" <td>False</td>\n",
|
| 682 |
-
" <td>False</td>\n",
|
| 683 |
-
" <td>False</td>\n",
|
| 684 |
-
" <td>False</td>\n",
|
| 685 |
-
" </tr>\n",
|
| 686 |
-
" <tr>\n",
|
| 687 |
-
" <th>...</th>\n",
|
| 688 |
-
" <td>...</td>\n",
|
| 689 |
-
" <td>...</td>\n",
|
| 690 |
-
" <td>...</td>\n",
|
| 691 |
-
" <td>...</td>\n",
|
| 692 |
-
" <td>...</td>\n",
|
| 693 |
-
" <td>...</td>\n",
|
| 694 |
-
" <td>...</td>\n",
|
| 695 |
-
" <td>...</td>\n",
|
| 696 |
-
" <td>...</td>\n",
|
| 697 |
-
" <td>...</td>\n",
|
| 698 |
-
" <td>...</td>\n",
|
| 699 |
-
" <td>...</td>\n",
|
| 700 |
-
" <td>...</td>\n",
|
| 701 |
-
" <td>...</td>\n",
|
| 702 |
-
" <td>...</td>\n",
|
| 703 |
-
" <td>...</td>\n",
|
| 704 |
-
" <td>...</td>\n",
|
| 705 |
-
" <td>...</td>\n",
|
| 706 |
-
" <td>...</td>\n",
|
| 707 |
-
" <td>...</td>\n",
|
| 708 |
-
" <td>...</td>\n",
|
| 709 |
-
" </tr>\n",
|
| 710 |
-
" <tr>\n",
|
| 711 |
-
" <th>4595</th>\n",
|
| 712 |
-
" <td>2014-07-09 00:00:00</td>\n",
|
| 713 |
-
" <td>3.081667e+05</td>\n",
|
| 714 |
-
" <td>3.0</td>\n",
|
| 715 |
-
" <td>1.75</td>\n",
|
| 716 |
-
" <td>1510</td>\n",
|
| 717 |
-
" <td>6360</td>\n",
|
| 718 |
-
" <td>1.0</td>\n",
|
| 719 |
-
" <td>0</td>\n",
|
| 720 |
-
" <td>0</td>\n",
|
| 721 |
-
" <td>4</td>\n",
|
| 722 |
-
" <td>...</td>\n",
|
| 723 |
-
" <td>False</td>\n",
|
| 724 |
-
" <td>False</td>\n",
|
| 725 |
-
" <td>False</td>\n",
|
| 726 |
-
" <td>False</td>\n",
|
| 727 |
-
" <td>False</td>\n",
|
| 728 |
-
" <td>False</td>\n",
|
| 729 |
-
" <td>False</td>\n",
|
| 730 |
-
" <td>False</td>\n",
|
| 731 |
-
" <td>False</td>\n",
|
| 732 |
-
" <td>False</td>\n",
|
| 733 |
-
" </tr>\n",
|
| 734 |
-
" <tr>\n",
|
| 735 |
-
" <th>4596</th>\n",
|
| 736 |
-
" <td>2014-07-09 00:00:00</td>\n",
|
| 737 |
-
" <td>5.343333e+05</td>\n",
|
| 738 |
-
" <td>3.0</td>\n",
|
| 739 |
-
" <td>2.50</td>\n",
|
| 740 |
-
" <td>1460</td>\n",
|
| 741 |
-
" <td>7573</td>\n",
|
| 742 |
-
" <td>2.0</td>\n",
|
| 743 |
-
" <td>0</td>\n",
|
| 744 |
-
" <td>0</td>\n",
|
| 745 |
-
" <td>3</td>\n",
|
| 746 |
-
" <td>...</td>\n",
|
| 747 |
-
" <td>False</td>\n",
|
| 748 |
-
" <td>False</td>\n",
|
| 749 |
-
" <td>False</td>\n",
|
| 750 |
-
" <td>False</td>\n",
|
| 751 |
-
" <td>False</td>\n",
|
| 752 |
-
" <td>False</td>\n",
|
| 753 |
-
" <td>False</td>\n",
|
| 754 |
-
" <td>False</td>\n",
|
| 755 |
-
" <td>False</td>\n",
|
| 756 |
-
" <td>False</td>\n",
|
| 757 |
-
" </tr>\n",
|
| 758 |
-
" <tr>\n",
|
| 759 |
-
" <th>4597</th>\n",
|
| 760 |
-
" <td>2014-07-09 00:00:00</td>\n",
|
| 761 |
-
" <td>4.169042e+05</td>\n",
|
| 762 |
-
" <td>3.0</td>\n",
|
| 763 |
-
" <td>2.50</td>\n",
|
| 764 |
-
" <td>3010</td>\n",
|
| 765 |
-
" <td>7014</td>\n",
|
| 766 |
-
" <td>2.0</td>\n",
|
| 767 |
-
" <td>0</td>\n",
|
| 768 |
-
" <td>0</td>\n",
|
| 769 |
-
" <td>3</td>\n",
|
| 770 |
-
" <td>...</td>\n",
|
| 771 |
-
" <td>False</td>\n",
|
| 772 |
-
" <td>False</td>\n",
|
| 773 |
-
" <td>False</td>\n",
|
| 774 |
-
" <td>False</td>\n",
|
| 775 |
-
" <td>False</td>\n",
|
| 776 |
-
" <td>False</td>\n",
|
| 777 |
-
" <td>False</td>\n",
|
| 778 |
-
" <td>False</td>\n",
|
| 779 |
-
" <td>False</td>\n",
|
| 780 |
-
" <td>False</td>\n",
|
| 781 |
-
" </tr>\n",
|
| 782 |
-
" <tr>\n",
|
| 783 |
-
" <th>4598</th>\n",
|
| 784 |
-
" <td>2014-07-10 00:00:00</td>\n",
|
| 785 |
-
" <td>2.034000e+05</td>\n",
|
| 786 |
-
" <td>4.0</td>\n",
|
| 787 |
-
" <td>2.00</td>\n",
|
| 788 |
-
" <td>2090</td>\n",
|
| 789 |
-
" <td>6630</td>\n",
|
| 790 |
-
" <td>1.0</td>\n",
|
| 791 |
-
" <td>0</td>\n",
|
| 792 |
-
" <td>0</td>\n",
|
| 793 |
-
" <td>3</td>\n",
|
| 794 |
-
" <td>...</td>\n",
|
| 795 |
-
" <td>False</td>\n",
|
| 796 |
-
" <td>False</td>\n",
|
| 797 |
-
" <td>False</td>\n",
|
| 798 |
-
" <td>False</td>\n",
|
| 799 |
-
" <td>True</td>\n",
|
| 800 |
-
" <td>False</td>\n",
|
| 801 |
-
" <td>False</td>\n",
|
| 802 |
-
" <td>False</td>\n",
|
| 803 |
-
" <td>False</td>\n",
|
| 804 |
-
" <td>False</td>\n",
|
| 805 |
-
" </tr>\n",
|
| 806 |
-
" <tr>\n",
|
| 807 |
-
" <th>4599</th>\n",
|
| 808 |
-
" <td>2014-07-10 00:00:00</td>\n",
|
| 809 |
-
" <td>2.206000e+05</td>\n",
|
| 810 |
-
" <td>3.0</td>\n",
|
| 811 |
-
" <td>2.50</td>\n",
|
| 812 |
-
" <td>1490</td>\n",
|
| 813 |
-
" <td>8102</td>\n",
|
| 814 |
-
" <td>2.0</td>\n",
|
| 815 |
-
" <td>0</td>\n",
|
| 816 |
-
" <td>0</td>\n",
|
| 817 |
-
" <td>4</td>\n",
|
| 818 |
-
" <td>...</td>\n",
|
| 819 |
-
" <td>False</td>\n",
|
| 820 |
-
" <td>False</td>\n",
|
| 821 |
-
" <td>False</td>\n",
|
| 822 |
-
" <td>False</td>\n",
|
| 823 |
-
" <td>False</td>\n",
|
| 824 |
-
" <td>False</td>\n",
|
| 825 |
-
" <td>False</td>\n",
|
| 826 |
-
" <td>False</td>\n",
|
| 827 |
-
" <td>False</td>\n",
|
| 828 |
-
" <td>False</td>\n",
|
| 829 |
-
" </tr>\n",
|
| 830 |
-
" </tbody>\n",
|
| 831 |
-
"</table>\n",
|
| 832 |
-
"<p>4600 rows × 4657 columns</p>\n",
|
| 833 |
-
"</div>"
|
| 834 |
-
],
|
| 835 |
-
"text/plain": [
|
| 836 |
-
" date price bedrooms bathrooms sqft_living \\\n",
|
| 837 |
-
"0 2014-05-02 00:00:00 3.130000e+05 3.0 1.50 1340 \n",
|
| 838 |
-
"1 2014-05-02 00:00:00 2.384000e+06 5.0 2.50 3650 \n",
|
| 839 |
-
"2 2014-05-02 00:00:00 3.420000e+05 3.0 2.00 1930 \n",
|
| 840 |
-
"3 2014-05-02 00:00:00 4.200000e+05 3.0 2.25 2000 \n",
|
| 841 |
-
"4 2014-05-02 00:00:00 5.500000e+05 4.0 2.50 1940 \n",
|
| 842 |
-
"... ... ... ... ... ... \n",
|
| 843 |
-
"4595 2014-07-09 00:00:00 3.081667e+05 3.0 1.75 1510 \n",
|
| 844 |
-
"4596 2014-07-09 00:00:00 5.343333e+05 3.0 2.50 1460 \n",
|
| 845 |
-
"4597 2014-07-09 00:00:00 4.169042e+05 3.0 2.50 3010 \n",
|
| 846 |
-
"4598 2014-07-10 00:00:00 2.034000e+05 4.0 2.00 2090 \n",
|
| 847 |
-
"4599 2014-07-10 00:00:00 2.206000e+05 3.0 2.50 1490 \n",
|
| 848 |
-
"\n",
|
| 849 |
-
" sqft_lot floors waterfront view condition ... statezip_WA 98155 \\\n",
|
| 850 |
-
"0 7912 1.5 0 0 3 ... False \n",
|
| 851 |
-
"1 9050 2.0 0 4 5 ... False \n",
|
| 852 |
-
"2 11947 1.0 0 0 4 ... False \n",
|
| 853 |
-
"3 8030 1.0 0 0 4 ... False \n",
|
| 854 |
-
"4 10500 1.0 0 0 4 ... False \n",
|
| 855 |
-
"... ... ... ... ... ... ... ... \n",
|
| 856 |
-
"4595 6360 1.0 0 0 4 ... False \n",
|
| 857 |
-
"4596 7573 2.0 0 0 3 ... False \n",
|
| 858 |
-
"4597 7014 2.0 0 0 3 ... False \n",
|
| 859 |
-
"4598 6630 1.0 0 0 3 ... False \n",
|
| 860 |
-
"4599 8102 2.0 0 0 4 ... False \n",
|
| 861 |
-
"\n",
|
| 862 |
-
" statezip_WA 98166 statezip_WA 98168 statezip_WA 98177 \\\n",
|
| 863 |
-
"0 False False False \n",
|
| 864 |
-
"1 False False False \n",
|
| 865 |
-
"2 False False False \n",
|
| 866 |
-
"3 False False False \n",
|
| 867 |
-
"4 False False False \n",
|
| 868 |
-
"... ... ... ... \n",
|
| 869 |
-
"4595 False False False \n",
|
| 870 |
-
"4596 False False False \n",
|
| 871 |
-
"4597 False False False \n",
|
| 872 |
-
"4598 False False False \n",
|
| 873 |
-
"4599 False False False \n",
|
| 874 |
-
"\n",
|
| 875 |
-
" statezip_WA 98178 statezip_WA 98188 statezip_WA 98198 \\\n",
|
| 876 |
-
"0 False False False \n",
|
| 877 |
-
"1 False False False \n",
|
| 878 |
-
"2 False False False \n",
|
| 879 |
-
"3 False False False \n",
|
| 880 |
-
"4 False False False \n",
|
| 881 |
-
"... ... ... ... \n",
|
| 882 |
-
"4595 False False False \n",
|
| 883 |
-
"4596 False False False \n",
|
| 884 |
-
"4597 False False False \n",
|
| 885 |
-
"4598 True False False \n",
|
| 886 |
-
"4599 False False False \n",
|
| 887 |
-
"\n",
|
| 888 |
-
" statezip_WA 98199 statezip_WA 98288 statezip_WA 98354 \n",
|
| 889 |
-
"0 False False False \n",
|
| 890 |
-
"1 False False False \n",
|
| 891 |
-
"2 False False False \n",
|
| 892 |
-
"3 False False False \n",
|
| 893 |
-
"4 False False False \n",
|
| 894 |
-
"... ... ... ... \n",
|
| 895 |
-
"4595 False False False \n",
|
| 896 |
-
"4596 False False False \n",
|
| 897 |
-
"4597 False False False \n",
|
| 898 |
-
"4598 False False False \n",
|
| 899 |
-
"4599 False False False \n",
|
| 900 |
-
"\n",
|
| 901 |
-
"[4600 rows x 4657 columns]"
|
| 902 |
-
]
|
| 903 |
-
},
|
| 904 |
-
"execution_count": 15,
|
| 905 |
-
"metadata": {},
|
| 906 |
-
"output_type": "execute_result"
|
| 907 |
-
}
|
| 908 |
-
],
|
| 909 |
"source": [
|
| 910 |
"df"
|
| 911 |
]
|
|
@@ -929,7 +323,7 @@
|
|
| 929 |
},
|
| 930 |
{
|
| 931 |
"cell_type": "code",
|
| 932 |
-
"execution_count":
|
| 933 |
"metadata": {
|
| 934 |
"execution": {
|
| 935 |
"iopub.execute_input": "2023-10-01T12:09:16.082488Z",
|
|
@@ -943,20 +337,13 @@
|
|
| 943 |
"source": [
|
| 944 |
"# Define X and y\n",
|
| 945 |
"\n",
|
| 946 |
-
"#df.columns\n",
|
| 947 |
-
"y=df['price']\n",
|
| 948 |
-
"X=df[['bedrooms', 'bathrooms', 'sqft_living', 'sqft_lot',\n",
|
| 949 |
-
"
|
| 950 |
-
"
|
| 951 |
-
"
|
| 952 |
-
|
| 953 |
-
},
|
| 954 |
-
{
|
| 955 |
-
"cell_type": "code",
|
| 956 |
-
"execution_count": 19,
|
| 957 |
-
"metadata": {},
|
| 958 |
-
"outputs": [],
|
| 959 |
-
"source": [
|
| 960 |
"# fix--------------\n",
|
| 961 |
"X = df.drop(columns=['date','price']) # Features\n",
|
| 962 |
"y = df['price'] # Target variable"
|
|
@@ -964,7 +351,7 @@
|
|
| 964 |
},
|
| 965 |
{
|
| 966 |
"cell_type": "code",
|
| 967 |
-
"execution_count":
|
| 968 |
"metadata": {
|
| 969 |
"execution": {
|
| 970 |
"iopub.execute_input": "2023-10-01T12:09:20.447436Z",
|
|
@@ -984,7 +371,7 @@
|
|
| 984 |
},
|
| 985 |
{
|
| 986 |
"cell_type": "code",
|
| 987 |
-
"execution_count":
|
| 988 |
"metadata": {
|
| 989 |
"execution": {
|
| 990 |
"iopub.execute_input": "2023-10-01T12:09:23.615894Z",
|
|
@@ -1004,7 +391,7 @@
|
|
| 1004 |
"LinearRegression()"
|
| 1005 |
]
|
| 1006 |
},
|
| 1007 |
-
"execution_count":
|
| 1008 |
"metadata": {},
|
| 1009 |
"output_type": "execute_result"
|
| 1010 |
}
|
|
@@ -1016,7 +403,7 @@
|
|
| 1016 |
},
|
| 1017 |
{
|
| 1018 |
"cell_type": "code",
|
| 1019 |
-
"execution_count":
|
| 1020 |
"metadata": {},
|
| 1021 |
"outputs": [
|
| 1022 |
{
|
|
@@ -1050,6 +437,13 @@
|
|
| 1050 |
"print(f\"Training R² Score: {train_r2:.4f}\")\n",
|
| 1051 |
"print(f\"Testing R² Score: {test_r2:.4f}\")"
|
| 1052 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1053 |
}
|
| 1054 |
],
|
| 1055 |
"metadata": {
|
|
|
|
| 50 |
},
|
| 51 |
{
|
| 52 |
"cell_type": "code",
|
| 53 |
+
"execution_count": 2,
|
| 54 |
"metadata": {
|
| 55 |
"execution": {
|
| 56 |
"iopub.execute_input": "2023-10-01T12:08:18.443812Z",
|
|
|
|
| 69 |
},
|
| 70 |
{
|
| 71 |
"cell_type": "code",
|
| 72 |
+
"execution_count": null,
|
| 73 |
"metadata": {
|
| 74 |
"execution": {
|
| 75 |
"iopub.execute_input": "2023-10-01T12:08:21.397453Z",
|
|
|
|
| 79 |
"shell.execute_reply.started": "2023-10-01T12:08:21.397388Z"
|
| 80 |
}
|
| 81 |
},
|
| 82 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
"source": [
|
| 84 |
"# Preprocessing\n",
|
| 85 |
"df.head()"
|
|
|
|
| 87 |
},
|
| 88 |
{
|
| 89 |
"cell_type": "code",
|
| 90 |
+
"execution_count": null,
|
| 91 |
"metadata": {
|
| 92 |
"execution": {
|
| 93 |
"iopub.execute_input": "2023-10-01T12:08:24.387978Z",
|
|
|
|
| 97 |
"shell.execute_reply.started": "2023-10-01T12:08:24.387936Z"
|
| 98 |
}
|
| 99 |
},
|
| 100 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
"source": [
|
| 102 |
"df.info()"
|
| 103 |
]
|
|
|
|
| 121 |
},
|
| 122 |
{
|
| 123 |
"cell_type": "code",
|
| 124 |
+
"execution_count": 3,
|
| 125 |
"metadata": {
|
| 126 |
"execution": {
|
| 127 |
"iopub.execute_input": "2023-10-01T12:08:29.794467Z",
|
|
|
|
| 229 |
},
|
| 230 |
{
|
| 231 |
"cell_type": "code",
|
| 232 |
+
"execution_count": 4,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
"metadata": {
|
| 234 |
"execution": {
|
| 235 |
"iopub.execute_input": "2023-10-01T12:08:41.179495Z",
|
|
|
|
| 241 |
},
|
| 242 |
"outputs": [],
|
| 243 |
"source": [
|
| 244 |
+
"# df['city'].replace({\n",
|
| 245 |
+
"# 'Seattle' : 0,\n",
|
| 246 |
+
"# 'Renton' : 1,\n",
|
| 247 |
+
"# 'Bellevue' : 2,\n",
|
| 248 |
+
"# 'Redmond' : 3,\n",
|
| 249 |
+
"# 'Issaquah' : 4,\n",
|
| 250 |
+
"# 'Kirkland' : 5,\n",
|
| 251 |
+
"# 'Kent' : 6,\n",
|
| 252 |
+
"# 'Auburn' : 7,\n",
|
| 253 |
+
"# 'Sammamish' : 8,\n",
|
| 254 |
+
"# 'Federal Way' : 9,\n",
|
| 255 |
+
"# 'Shoreline' : 10,\n",
|
| 256 |
+
"# 'Woodinville' : 11,\n",
|
| 257 |
+
"# 'Maple Valley' : 12,\n",
|
| 258 |
+
"# 'Mercer Island' : 13,\n",
|
| 259 |
+
"# 'Burien' : 14,\n",
|
| 260 |
+
"# 'Snoqualmie' : 15,\n",
|
| 261 |
+
"# 'Kenmore' : 16,\n",
|
| 262 |
+
"# 'Des Moines' : 17,\n",
|
| 263 |
+
"# 'North Bend' : 18,\n",
|
| 264 |
+
"# 'Covington' : 19,\n",
|
| 265 |
+
"# 'Duvall' : 20,\n",
|
| 266 |
+
"# 'Lake Forest Park' : 21,\n",
|
| 267 |
+
"# 'Bothell' : 22,\n",
|
| 268 |
+
"# 'Newcastle' : 23,\n",
|
| 269 |
+
"# 'SeaTac' : 24,\n",
|
| 270 |
+
"# 'Tukwila' : 25,\n",
|
| 271 |
+
"# 'Vashon' : 26,\n",
|
| 272 |
+
"# 'Enumclaw' : 27,\n",
|
| 273 |
+
"# 'Carnation' : 28,\n",
|
| 274 |
+
"# 'Normandy Park' : 29,\n",
|
| 275 |
+
"# 'Clyde Hill' : 30,\n",
|
| 276 |
+
"# 'Medina' : 31,\n",
|
| 277 |
+
"# 'Fall City' : 32,\n",
|
| 278 |
+
"# 'Black Diamond' : 33,\n",
|
| 279 |
+
"# 'Ravensdale' : 34,\n",
|
| 280 |
+
"# 'Pacific' : 35,\n",
|
| 281 |
+
"# 'Algona' : 36,\n",
|
| 282 |
+
"# 'Yarrow Point' : 37, \n",
|
| 283 |
+
"# 'Skykomish' : 38,\n",
|
| 284 |
+
"# 'Preston' : 39,\n",
|
| 285 |
+
"# 'Milton' : 40,\n",
|
| 286 |
+
"# 'Inglewood-Finn Hill': 41,\n",
|
| 287 |
+
"# 'Snoqualmie Pass' : 42,\n",
|
| 288 |
+
"# 'Beaux Arts Village' : 43},inplace=True)\n",
|
| 289 |
+
"\n",
|
| 290 |
+
"# fix ---------\n",
|
| 291 |
+
"# When using LinearRegression from sklearn.linear_model, all features must be numeric.\n",
|
| 292 |
+
"\n",
|
| 293 |
+
"# Convert categorical columns to numeric using one-hot encoding\n",
|
| 294 |
+
"categorical_columns = ['street', 'city', 'statezip', 'country']\n",
|
| 295 |
+
"df = pd.get_dummies(df, columns=categorical_columns, drop_first=True)"
|
| 296 |
]
|
| 297 |
},
|
| 298 |
{
|
| 299 |
"cell_type": "code",
|
| 300 |
+
"execution_count": null,
|
| 301 |
"metadata": {},
|
| 302 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 303 |
"source": [
|
| 304 |
"df"
|
| 305 |
]
|
|
|
|
| 323 |
},
|
| 324 |
{
|
| 325 |
"cell_type": "code",
|
| 326 |
+
"execution_count": 6,
|
| 327 |
"metadata": {
|
| 328 |
"execution": {
|
| 329 |
"iopub.execute_input": "2023-10-01T12:09:16.082488Z",
|
|
|
|
| 337 |
"source": [
|
| 338 |
"# Define X and y\n",
|
| 339 |
"\n",
|
| 340 |
+
"# #df.columns\n",
|
| 341 |
+
"# y=df['price']\n",
|
| 342 |
+
"# X=df[['bedrooms', 'bathrooms', 'sqft_living', 'sqft_lot',\n",
|
| 343 |
+
"# 'floors', 'waterfront', 'view', 'condition', 'sqft_above',\n",
|
| 344 |
+
"# 'sqft_basement', 'yr_built', 'yr_renovated', 'street', 'city',\n",
|
| 345 |
+
"# 'statezip', 'country']]\n",
|
| 346 |
+
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 347 |
"# fix--------------\n",
|
| 348 |
"X = df.drop(columns=['date','price']) # Features\n",
|
| 349 |
"y = df['price'] # Target variable"
|
|
|
|
| 351 |
},
|
| 352 |
{
|
| 353 |
"cell_type": "code",
|
| 354 |
+
"execution_count": 7,
|
| 355 |
"metadata": {
|
| 356 |
"execution": {
|
| 357 |
"iopub.execute_input": "2023-10-01T12:09:20.447436Z",
|
|
|
|
| 371 |
},
|
| 372 |
{
|
| 373 |
"cell_type": "code",
|
| 374 |
+
"execution_count": 8,
|
| 375 |
"metadata": {
|
| 376 |
"execution": {
|
| 377 |
"iopub.execute_input": "2023-10-01T12:09:23.615894Z",
|
|
|
|
| 391 |
"LinearRegression()"
|
| 392 |
]
|
| 393 |
},
|
| 394 |
+
"execution_count": 8,
|
| 395 |
"metadata": {},
|
| 396 |
"output_type": "execute_result"
|
| 397 |
}
|
|
|
|
| 403 |
},
|
| 404 |
{
|
| 405 |
"cell_type": "code",
|
| 406 |
+
"execution_count": 9,
|
| 407 |
"metadata": {},
|
| 408 |
"outputs": [
|
| 409 |
{
|
|
|
|
| 437 |
"print(f\"Training R² Score: {train_r2:.4f}\")\n",
|
| 438 |
"print(f\"Testing R² Score: {test_r2:.4f}\")"
|
| 439 |
]
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"cell_type": "code",
|
| 443 |
+
"execution_count": null,
|
| 444 |
+
"metadata": {},
|
| 445 |
+
"outputs": [],
|
| 446 |
+
"source": []
|
| 447 |
}
|
| 448 |
],
|
| 449 |
"metadata": {
|
benchmark/sklearn_14/sklearn_14_reproduced.ipynb
CHANGED
|
@@ -69,7 +69,7 @@
|
|
| 69 |
},
|
| 70 |
{
|
| 71 |
"cell_type": "code",
|
| 72 |
-
"execution_count":
|
| 73 |
"metadata": {
|
| 74 |
"execution": {
|
| 75 |
"iopub.execute_input": "2023-10-01T12:08:21.397453Z",
|
|
@@ -79,186 +79,7 @@
|
|
| 79 |
"shell.execute_reply.started": "2023-10-01T12:08:21.397388Z"
|
| 80 |
}
|
| 81 |
},
|
| 82 |
-
"outputs": [
|
| 83 |
-
{
|
| 84 |
-
"data": {
|
| 85 |
-
"text/html": [
|
| 86 |
-
"<div>\n",
|
| 87 |
-
"<style scoped>\n",
|
| 88 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 89 |
-
" vertical-align: middle;\n",
|
| 90 |
-
" }\n",
|
| 91 |
-
"\n",
|
| 92 |
-
" .dataframe tbody tr th {\n",
|
| 93 |
-
" vertical-align: top;\n",
|
| 94 |
-
" }\n",
|
| 95 |
-
"\n",
|
| 96 |
-
" .dataframe thead th {\n",
|
| 97 |
-
" text-align: right;\n",
|
| 98 |
-
" }\n",
|
| 99 |
-
"</style>\n",
|
| 100 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 101 |
-
" <thead>\n",
|
| 102 |
-
" <tr style=\"text-align: right;\">\n",
|
| 103 |
-
" <th></th>\n",
|
| 104 |
-
" <th>date</th>\n",
|
| 105 |
-
" <th>price</th>\n",
|
| 106 |
-
" <th>bedrooms</th>\n",
|
| 107 |
-
" <th>bathrooms</th>\n",
|
| 108 |
-
" <th>sqft_living</th>\n",
|
| 109 |
-
" <th>sqft_lot</th>\n",
|
| 110 |
-
" <th>floors</th>\n",
|
| 111 |
-
" <th>waterfront</th>\n",
|
| 112 |
-
" <th>view</th>\n",
|
| 113 |
-
" <th>condition</th>\n",
|
| 114 |
-
" <th>sqft_above</th>\n",
|
| 115 |
-
" <th>sqft_basement</th>\n",
|
| 116 |
-
" <th>yr_built</th>\n",
|
| 117 |
-
" <th>yr_renovated</th>\n",
|
| 118 |
-
" <th>street</th>\n",
|
| 119 |
-
" <th>city</th>\n",
|
| 120 |
-
" <th>statezip</th>\n",
|
| 121 |
-
" <th>country</th>\n",
|
| 122 |
-
" </tr>\n",
|
| 123 |
-
" </thead>\n",
|
| 124 |
-
" <tbody>\n",
|
| 125 |
-
" <tr>\n",
|
| 126 |
-
" <th>0</th>\n",
|
| 127 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 128 |
-
" <td>313000.0</td>\n",
|
| 129 |
-
" <td>3.0</td>\n",
|
| 130 |
-
" <td>1.50</td>\n",
|
| 131 |
-
" <td>1340</td>\n",
|
| 132 |
-
" <td>7912</td>\n",
|
| 133 |
-
" <td>1.5</td>\n",
|
| 134 |
-
" <td>0</td>\n",
|
| 135 |
-
" <td>0</td>\n",
|
| 136 |
-
" <td>3</td>\n",
|
| 137 |
-
" <td>1340</td>\n",
|
| 138 |
-
" <td>0</td>\n",
|
| 139 |
-
" <td>1955</td>\n",
|
| 140 |
-
" <td>2005</td>\n",
|
| 141 |
-
" <td>18810 Densmore Ave N</td>\n",
|
| 142 |
-
" <td>Shoreline</td>\n",
|
| 143 |
-
" <td>WA 98133</td>\n",
|
| 144 |
-
" <td>USA</td>\n",
|
| 145 |
-
" </tr>\n",
|
| 146 |
-
" <tr>\n",
|
| 147 |
-
" <th>1</th>\n",
|
| 148 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 149 |
-
" <td>2384000.0</td>\n",
|
| 150 |
-
" <td>5.0</td>\n",
|
| 151 |
-
" <td>2.50</td>\n",
|
| 152 |
-
" <td>3650</td>\n",
|
| 153 |
-
" <td>9050</td>\n",
|
| 154 |
-
" <td>2.0</td>\n",
|
| 155 |
-
" <td>0</td>\n",
|
| 156 |
-
" <td>4</td>\n",
|
| 157 |
-
" <td>5</td>\n",
|
| 158 |
-
" <td>3370</td>\n",
|
| 159 |
-
" <td>280</td>\n",
|
| 160 |
-
" <td>1921</td>\n",
|
| 161 |
-
" <td>0</td>\n",
|
| 162 |
-
" <td>709 W Blaine St</td>\n",
|
| 163 |
-
" <td>Seattle</td>\n",
|
| 164 |
-
" <td>WA 98119</td>\n",
|
| 165 |
-
" <td>USA</td>\n",
|
| 166 |
-
" </tr>\n",
|
| 167 |
-
" <tr>\n",
|
| 168 |
-
" <th>2</th>\n",
|
| 169 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 170 |
-
" <td>342000.0</td>\n",
|
| 171 |
-
" <td>3.0</td>\n",
|
| 172 |
-
" <td>2.00</td>\n",
|
| 173 |
-
" <td>1930</td>\n",
|
| 174 |
-
" <td>11947</td>\n",
|
| 175 |
-
" <td>1.0</td>\n",
|
| 176 |
-
" <td>0</td>\n",
|
| 177 |
-
" <td>0</td>\n",
|
| 178 |
-
" <td>4</td>\n",
|
| 179 |
-
" <td>1930</td>\n",
|
| 180 |
-
" <td>0</td>\n",
|
| 181 |
-
" <td>1966</td>\n",
|
| 182 |
-
" <td>0</td>\n",
|
| 183 |
-
" <td>26206-26214 143rd Ave SE</td>\n",
|
| 184 |
-
" <td>Kent</td>\n",
|
| 185 |
-
" <td>WA 98042</td>\n",
|
| 186 |
-
" <td>USA</td>\n",
|
| 187 |
-
" </tr>\n",
|
| 188 |
-
" <tr>\n",
|
| 189 |
-
" <th>3</th>\n",
|
| 190 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 191 |
-
" <td>420000.0</td>\n",
|
| 192 |
-
" <td>3.0</td>\n",
|
| 193 |
-
" <td>2.25</td>\n",
|
| 194 |
-
" <td>2000</td>\n",
|
| 195 |
-
" <td>8030</td>\n",
|
| 196 |
-
" <td>1.0</td>\n",
|
| 197 |
-
" <td>0</td>\n",
|
| 198 |
-
" <td>0</td>\n",
|
| 199 |
-
" <td>4</td>\n",
|
| 200 |
-
" <td>1000</td>\n",
|
| 201 |
-
" <td>1000</td>\n",
|
| 202 |
-
" <td>1963</td>\n",
|
| 203 |
-
" <td>0</td>\n",
|
| 204 |
-
" <td>857 170th Pl NE</td>\n",
|
| 205 |
-
" <td>Bellevue</td>\n",
|
| 206 |
-
" <td>WA 98008</td>\n",
|
| 207 |
-
" <td>USA</td>\n",
|
| 208 |
-
" </tr>\n",
|
| 209 |
-
" <tr>\n",
|
| 210 |
-
" <th>4</th>\n",
|
| 211 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 212 |
-
" <td>550000.0</td>\n",
|
| 213 |
-
" <td>4.0</td>\n",
|
| 214 |
-
" <td>2.50</td>\n",
|
| 215 |
-
" <td>1940</td>\n",
|
| 216 |
-
" <td>10500</td>\n",
|
| 217 |
-
" <td>1.0</td>\n",
|
| 218 |
-
" <td>0</td>\n",
|
| 219 |
-
" <td>0</td>\n",
|
| 220 |
-
" <td>4</td>\n",
|
| 221 |
-
" <td>1140</td>\n",
|
| 222 |
-
" <td>800</td>\n",
|
| 223 |
-
" <td>1976</td>\n",
|
| 224 |
-
" <td>1992</td>\n",
|
| 225 |
-
" <td>9105 170th Ave NE</td>\n",
|
| 226 |
-
" <td>Redmond</td>\n",
|
| 227 |
-
" <td>WA 98052</td>\n",
|
| 228 |
-
" <td>USA</td>\n",
|
| 229 |
-
" </tr>\n",
|
| 230 |
-
" </tbody>\n",
|
| 231 |
-
"</table>\n",
|
| 232 |
-
"</div>"
|
| 233 |
-
],
|
| 234 |
-
"text/plain": [
|
| 235 |
-
" date price bedrooms bathrooms sqft_living sqft_lot \\\n",
|
| 236 |
-
"0 2014-05-02 00:00:00 313000.0 3.0 1.50 1340 7912 \n",
|
| 237 |
-
"1 2014-05-02 00:00:00 2384000.0 5.0 2.50 3650 9050 \n",
|
| 238 |
-
"2 2014-05-02 00:00:00 342000.0 3.0 2.00 1930 11947 \n",
|
| 239 |
-
"3 2014-05-02 00:00:00 420000.0 3.0 2.25 2000 8030 \n",
|
| 240 |
-
"4 2014-05-02 00:00:00 550000.0 4.0 2.50 1940 10500 \n",
|
| 241 |
-
"\n",
|
| 242 |
-
" floors waterfront view condition sqft_above sqft_basement yr_built \\\n",
|
| 243 |
-
"0 1.5 0 0 3 1340 0 1955 \n",
|
| 244 |
-
"1 2.0 0 4 5 3370 280 1921 \n",
|
| 245 |
-
"2 1.0 0 0 4 1930 0 1966 \n",
|
| 246 |
-
"3 1.0 0 0 4 1000 1000 1963 \n",
|
| 247 |
-
"4 1.0 0 0 4 1140 800 1976 \n",
|
| 248 |
-
"\n",
|
| 249 |
-
" yr_renovated street city statezip country \n",
|
| 250 |
-
"0 2005 18810 Densmore Ave N Shoreline WA 98133 USA \n",
|
| 251 |
-
"1 0 709 W Blaine St Seattle WA 98119 USA \n",
|
| 252 |
-
"2 0 26206-26214 143rd Ave SE Kent WA 98042 USA \n",
|
| 253 |
-
"3 0 857 170th Pl NE Bellevue WA 98008 USA \n",
|
| 254 |
-
"4 1992 9105 170th Ave NE Redmond WA 98052 USA "
|
| 255 |
-
]
|
| 256 |
-
},
|
| 257 |
-
"execution_count": 3,
|
| 258 |
-
"metadata": {},
|
| 259 |
-
"output_type": "execute_result"
|
| 260 |
-
}
|
| 261 |
-
],
|
| 262 |
"source": [
|
| 263 |
"# Preprocessing\n",
|
| 264 |
"df.head()"
|
|
@@ -266,7 +87,7 @@
|
|
| 266 |
},
|
| 267 |
{
|
| 268 |
"cell_type": "code",
|
| 269 |
-
"execution_count":
|
| 270 |
"metadata": {
|
| 271 |
"execution": {
|
| 272 |
"iopub.execute_input": "2023-10-01T12:08:24.387978Z",
|
|
@@ -276,39 +97,7 @@
|
|
| 276 |
"shell.execute_reply.started": "2023-10-01T12:08:24.387936Z"
|
| 277 |
}
|
| 278 |
},
|
| 279 |
-
"outputs": [
|
| 280 |
-
{
|
| 281 |
-
"name": "stdout",
|
| 282 |
-
"output_type": "stream",
|
| 283 |
-
"text": [
|
| 284 |
-
"<class 'pandas.core.frame.DataFrame'>\n",
|
| 285 |
-
"RangeIndex: 4600 entries, 0 to 4599\n",
|
| 286 |
-
"Data columns (total 18 columns):\n",
|
| 287 |
-
" # Column Non-Null Count Dtype \n",
|
| 288 |
-
"--- ------ -------------- ----- \n",
|
| 289 |
-
" 0 date 4600 non-null object \n",
|
| 290 |
-
" 1 price 4600 non-null float64\n",
|
| 291 |
-
" 2 bedrooms 4600 non-null float64\n",
|
| 292 |
-
" 3 bathrooms 4600 non-null float64\n",
|
| 293 |
-
" 4 sqft_living 4600 non-null int64 \n",
|
| 294 |
-
" 5 sqft_lot 4600 non-null int64 \n",
|
| 295 |
-
" 6 floors 4600 non-null float64\n",
|
| 296 |
-
" 7 waterfront 4600 non-null int64 \n",
|
| 297 |
-
" 8 view 4600 non-null int64 \n",
|
| 298 |
-
" 9 condition 4600 non-null int64 \n",
|
| 299 |
-
" 10 sqft_above 4600 non-null int64 \n",
|
| 300 |
-
" 11 sqft_basement 4600 non-null int64 \n",
|
| 301 |
-
" 12 yr_built 4600 non-null int64 \n",
|
| 302 |
-
" 13 yr_renovated 4600 non-null int64 \n",
|
| 303 |
-
" 14 street 4600 non-null object \n",
|
| 304 |
-
" 15 city 4600 non-null object \n",
|
| 305 |
-
" 16 statezip 4600 non-null object \n",
|
| 306 |
-
" 17 country 4600 non-null object \n",
|
| 307 |
-
"dtypes: float64(4), int64(9), object(5)\n",
|
| 308 |
-
"memory usage: 647.0+ KB\n"
|
| 309 |
-
]
|
| 310 |
-
}
|
| 311 |
-
],
|
| 312 |
"source": [
|
| 313 |
"df.info()"
|
| 314 |
]
|
|
@@ -332,7 +121,7 @@
|
|
| 332 |
},
|
| 333 |
{
|
| 334 |
"cell_type": "code",
|
| 335 |
-
"execution_count":
|
| 336 |
"metadata": {
|
| 337 |
"execution": {
|
| 338 |
"iopub.execute_input": "2023-10-01T12:08:29.794467Z",
|
|
@@ -388,7 +177,7 @@
|
|
| 388 |
},
|
| 389 |
{
|
| 390 |
"cell_type": "code",
|
| 391 |
-
"execution_count":
|
| 392 |
"metadata": {
|
| 393 |
"execution": {
|
| 394 |
"iopub.execute_input": "2023-10-01T12:08:34.205598Z",
|
|
@@ -398,23 +187,7 @@
|
|
| 398 |
"shell.execute_reply.started": "2023-10-01T12:08:34.205565Z"
|
| 399 |
}
|
| 400 |
},
|
| 401 |
-
"outputs": [
|
| 402 |
-
{
|
| 403 |
-
"name": "stdout",
|
| 404 |
-
"output_type": "stream",
|
| 405 |
-
"text": [
|
| 406 |
-
"['Shoreline' 'Seattle' 'Kent' 'Bellevue' 'Redmond' 'Maple Valley'\n",
|
| 407 |
-
" 'North Bend' 'Lake Forest Park' 'Sammamish' 'Auburn' 'Des Moines'\n",
|
| 408 |
-
" 'Bothell' 'Federal Way' 'Kirkland' 'Issaquah' 'Woodinville'\n",
|
| 409 |
-
" 'Normandy Park' 'Fall City' 'Renton' 'Carnation' 'Snoqualmie' 'Duvall'\n",
|
| 410 |
-
" 'Burien' 'Covington' 'Inglewood-Finn Hill' 'Kenmore' 'Newcastle'\n",
|
| 411 |
-
" 'Mercer Island' 'Black Diamond' 'Ravensdale' 'Clyde Hill' 'Algona'\n",
|
| 412 |
-
" 'Skykomish' 'Tukwila' 'Vashon' 'Yarrow Point' 'SeaTac' 'Medina'\n",
|
| 413 |
-
" 'Enumclaw' 'Snoqualmie Pass' 'Pacific' 'Beaux Arts Village' 'Preston'\n",
|
| 414 |
-
" 'Milton']\n"
|
| 415 |
-
]
|
| 416 |
-
}
|
| 417 |
-
],
|
| 418 |
"source": [
|
| 419 |
"valueofcity = (df['city'].unique())\n",
|
| 420 |
"print(valueofcity)"
|
|
@@ -422,7 +195,7 @@
|
|
| 422 |
},
|
| 423 |
{
|
| 424 |
"cell_type": "code",
|
| 425 |
-
"execution_count":
|
| 426 |
"metadata": {
|
| 427 |
"execution": {
|
| 428 |
"iopub.execute_input": "2023-10-01T12:08:36.362418Z",
|
|
@@ -432,18 +205,7 @@
|
|
| 432 |
"shell.execute_reply.started": "2023-10-01T12:08:36.362373Z"
|
| 433 |
}
|
| 434 |
},
|
| 435 |
-
"outputs": [
|
| 436 |
-
{
|
| 437 |
-
"data": {
|
| 438 |
-
"text/plain": [
|
| 439 |
-
"(44,)"
|
| 440 |
-
]
|
| 441 |
-
},
|
| 442 |
-
"execution_count": 7,
|
| 443 |
-
"metadata": {},
|
| 444 |
-
"output_type": "execute_result"
|
| 445 |
-
}
|
| 446 |
-
],
|
| 447 |
"source": [
|
| 448 |
"valueofcity.shape"
|
| 449 |
]
|
|
@@ -467,7 +229,7 @@
|
|
| 467 |
},
|
| 468 |
{
|
| 469 |
"cell_type": "code",
|
| 470 |
-
"execution_count":
|
| 471 |
"metadata": {
|
| 472 |
"execution": {
|
| 473 |
"iopub.execute_input": "2023-10-01T12:08:41.179495Z",
|
|
@@ -528,355 +290,16 @@
|
|
| 528 |
},
|
| 529 |
{
|
| 530 |
"cell_type": "code",
|
| 531 |
-
"execution_count":
|
| 532 |
"metadata": {},
|
| 533 |
-
"outputs": [
|
| 534 |
-
{
|
| 535 |
-
"data": {
|
| 536 |
-
"text/html": [
|
| 537 |
-
"<div>\n",
|
| 538 |
-
"<style scoped>\n",
|
| 539 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 540 |
-
" vertical-align: middle;\n",
|
| 541 |
-
" }\n",
|
| 542 |
-
"\n",
|
| 543 |
-
" .dataframe tbody tr th {\n",
|
| 544 |
-
" vertical-align: top;\n",
|
| 545 |
-
" }\n",
|
| 546 |
-
"\n",
|
| 547 |
-
" .dataframe thead th {\n",
|
| 548 |
-
" text-align: right;\n",
|
| 549 |
-
" }\n",
|
| 550 |
-
"</style>\n",
|
| 551 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 552 |
-
" <thead>\n",
|
| 553 |
-
" <tr style=\"text-align: right;\">\n",
|
| 554 |
-
" <th></th>\n",
|
| 555 |
-
" <th>date</th>\n",
|
| 556 |
-
" <th>price</th>\n",
|
| 557 |
-
" <th>bedrooms</th>\n",
|
| 558 |
-
" <th>bathrooms</th>\n",
|
| 559 |
-
" <th>sqft_living</th>\n",
|
| 560 |
-
" <th>sqft_lot</th>\n",
|
| 561 |
-
" <th>floors</th>\n",
|
| 562 |
-
" <th>waterfront</th>\n",
|
| 563 |
-
" <th>view</th>\n",
|
| 564 |
-
" <th>condition</th>\n",
|
| 565 |
-
" <th>sqft_above</th>\n",
|
| 566 |
-
" <th>sqft_basement</th>\n",
|
| 567 |
-
" <th>yr_built</th>\n",
|
| 568 |
-
" <th>yr_renovated</th>\n",
|
| 569 |
-
" <th>street</th>\n",
|
| 570 |
-
" <th>city</th>\n",
|
| 571 |
-
" <th>statezip</th>\n",
|
| 572 |
-
" <th>country</th>\n",
|
| 573 |
-
" </tr>\n",
|
| 574 |
-
" </thead>\n",
|
| 575 |
-
" <tbody>\n",
|
| 576 |
-
" <tr>\n",
|
| 577 |
-
" <th>0</th>\n",
|
| 578 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 579 |
-
" <td>3.130000e+05</td>\n",
|
| 580 |
-
" <td>3.0</td>\n",
|
| 581 |
-
" <td>1.50</td>\n",
|
| 582 |
-
" <td>1340</td>\n",
|
| 583 |
-
" <td>7912</td>\n",
|
| 584 |
-
" <td>1.5</td>\n",
|
| 585 |
-
" <td>0</td>\n",
|
| 586 |
-
" <td>0</td>\n",
|
| 587 |
-
" <td>3</td>\n",
|
| 588 |
-
" <td>1340</td>\n",
|
| 589 |
-
" <td>0</td>\n",
|
| 590 |
-
" <td>1955</td>\n",
|
| 591 |
-
" <td>2005</td>\n",
|
| 592 |
-
" <td>18810 Densmore Ave N</td>\n",
|
| 593 |
-
" <td>10</td>\n",
|
| 594 |
-
" <td>WA 98133</td>\n",
|
| 595 |
-
" <td>USA</td>\n",
|
| 596 |
-
" </tr>\n",
|
| 597 |
-
" <tr>\n",
|
| 598 |
-
" <th>1</th>\n",
|
| 599 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 600 |
-
" <td>2.384000e+06</td>\n",
|
| 601 |
-
" <td>5.0</td>\n",
|
| 602 |
-
" <td>2.50</td>\n",
|
| 603 |
-
" <td>3650</td>\n",
|
| 604 |
-
" <td>9050</td>\n",
|
| 605 |
-
" <td>2.0</td>\n",
|
| 606 |
-
" <td>0</td>\n",
|
| 607 |
-
" <td>4</td>\n",
|
| 608 |
-
" <td>5</td>\n",
|
| 609 |
-
" <td>3370</td>\n",
|
| 610 |
-
" <td>280</td>\n",
|
| 611 |
-
" <td>1921</td>\n",
|
| 612 |
-
" <td>0</td>\n",
|
| 613 |
-
" <td>709 W Blaine St</td>\n",
|
| 614 |
-
" <td>0</td>\n",
|
| 615 |
-
" <td>WA 98119</td>\n",
|
| 616 |
-
" <td>USA</td>\n",
|
| 617 |
-
" </tr>\n",
|
| 618 |
-
" <tr>\n",
|
| 619 |
-
" <th>2</th>\n",
|
| 620 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 621 |
-
" <td>3.420000e+05</td>\n",
|
| 622 |
-
" <td>3.0</td>\n",
|
| 623 |
-
" <td>2.00</td>\n",
|
| 624 |
-
" <td>1930</td>\n",
|
| 625 |
-
" <td>11947</td>\n",
|
| 626 |
-
" <td>1.0</td>\n",
|
| 627 |
-
" <td>0</td>\n",
|
| 628 |
-
" <td>0</td>\n",
|
| 629 |
-
" <td>4</td>\n",
|
| 630 |
-
" <td>1930</td>\n",
|
| 631 |
-
" <td>0</td>\n",
|
| 632 |
-
" <td>1966</td>\n",
|
| 633 |
-
" <td>0</td>\n",
|
| 634 |
-
" <td>26206-26214 143rd Ave SE</td>\n",
|
| 635 |
-
" <td>6</td>\n",
|
| 636 |
-
" <td>WA 98042</td>\n",
|
| 637 |
-
" <td>USA</td>\n",
|
| 638 |
-
" </tr>\n",
|
| 639 |
-
" <tr>\n",
|
| 640 |
-
" <th>3</th>\n",
|
| 641 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 642 |
-
" <td>4.200000e+05</td>\n",
|
| 643 |
-
" <td>3.0</td>\n",
|
| 644 |
-
" <td>2.25</td>\n",
|
| 645 |
-
" <td>2000</td>\n",
|
| 646 |
-
" <td>8030</td>\n",
|
| 647 |
-
" <td>1.0</td>\n",
|
| 648 |
-
" <td>0</td>\n",
|
| 649 |
-
" <td>0</td>\n",
|
| 650 |
-
" <td>4</td>\n",
|
| 651 |
-
" <td>1000</td>\n",
|
| 652 |
-
" <td>1000</td>\n",
|
| 653 |
-
" <td>1963</td>\n",
|
| 654 |
-
" <td>0</td>\n",
|
| 655 |
-
" <td>857 170th Pl NE</td>\n",
|
| 656 |
-
" <td>2</td>\n",
|
| 657 |
-
" <td>WA 98008</td>\n",
|
| 658 |
-
" <td>USA</td>\n",
|
| 659 |
-
" </tr>\n",
|
| 660 |
-
" <tr>\n",
|
| 661 |
-
" <th>4</th>\n",
|
| 662 |
-
" <td>2014-05-02 00:00:00</td>\n",
|
| 663 |
-
" <td>5.500000e+05</td>\n",
|
| 664 |
-
" <td>4.0</td>\n",
|
| 665 |
-
" <td>2.50</td>\n",
|
| 666 |
-
" <td>1940</td>\n",
|
| 667 |
-
" <td>10500</td>\n",
|
| 668 |
-
" <td>1.0</td>\n",
|
| 669 |
-
" <td>0</td>\n",
|
| 670 |
-
" <td>0</td>\n",
|
| 671 |
-
" <td>4</td>\n",
|
| 672 |
-
" <td>1140</td>\n",
|
| 673 |
-
" <td>800</td>\n",
|
| 674 |
-
" <td>1976</td>\n",
|
| 675 |
-
" <td>1992</td>\n",
|
| 676 |
-
" <td>9105 170th Ave NE</td>\n",
|
| 677 |
-
" <td>3</td>\n",
|
| 678 |
-
" <td>WA 98052</td>\n",
|
| 679 |
-
" <td>USA</td>\n",
|
| 680 |
-
" </tr>\n",
|
| 681 |
-
" <tr>\n",
|
| 682 |
-
" <th>...</th>\n",
|
| 683 |
-
" <td>...</td>\n",
|
| 684 |
-
" <td>...</td>\n",
|
| 685 |
-
" <td>...</td>\n",
|
| 686 |
-
" <td>...</td>\n",
|
| 687 |
-
" <td>...</td>\n",
|
| 688 |
-
" <td>...</td>\n",
|
| 689 |
-
" <td>...</td>\n",
|
| 690 |
-
" <td>...</td>\n",
|
| 691 |
-
" <td>...</td>\n",
|
| 692 |
-
" <td>...</td>\n",
|
| 693 |
-
" <td>...</td>\n",
|
| 694 |
-
" <td>...</td>\n",
|
| 695 |
-
" <td>...</td>\n",
|
| 696 |
-
" <td>...</td>\n",
|
| 697 |
-
" <td>...</td>\n",
|
| 698 |
-
" <td>...</td>\n",
|
| 699 |
-
" <td>...</td>\n",
|
| 700 |
-
" <td>...</td>\n",
|
| 701 |
-
" </tr>\n",
|
| 702 |
-
" <tr>\n",
|
| 703 |
-
" <th>4595</th>\n",
|
| 704 |
-
" <td>2014-07-09 00:00:00</td>\n",
|
| 705 |
-
" <td>3.081667e+05</td>\n",
|
| 706 |
-
" <td>3.0</td>\n",
|
| 707 |
-
" <td>1.75</td>\n",
|
| 708 |
-
" <td>1510</td>\n",
|
| 709 |
-
" <td>6360</td>\n",
|
| 710 |
-
" <td>1.0</td>\n",
|
| 711 |
-
" <td>0</td>\n",
|
| 712 |
-
" <td>0</td>\n",
|
| 713 |
-
" <td>4</td>\n",
|
| 714 |
-
" <td>1510</td>\n",
|
| 715 |
-
" <td>0</td>\n",
|
| 716 |
-
" <td>1954</td>\n",
|
| 717 |
-
" <td>1979</td>\n",
|
| 718 |
-
" <td>501 N 143rd St</td>\n",
|
| 719 |
-
" <td>0</td>\n",
|
| 720 |
-
" <td>WA 98133</td>\n",
|
| 721 |
-
" <td>USA</td>\n",
|
| 722 |
-
" </tr>\n",
|
| 723 |
-
" <tr>\n",
|
| 724 |
-
" <th>4596</th>\n",
|
| 725 |
-
" <td>2014-07-09 00:00:00</td>\n",
|
| 726 |
-
" <td>5.343333e+05</td>\n",
|
| 727 |
-
" <td>3.0</td>\n",
|
| 728 |
-
" <td>2.50</td>\n",
|
| 729 |
-
" <td>1460</td>\n",
|
| 730 |
-
" <td>7573</td>\n",
|
| 731 |
-
" <td>2.0</td>\n",
|
| 732 |
-
" <td>0</td>\n",
|
| 733 |
-
" <td>0</td>\n",
|
| 734 |
-
" <td>3</td>\n",
|
| 735 |
-
" <td>1460</td>\n",
|
| 736 |
-
" <td>0</td>\n",
|
| 737 |
-
" <td>1983</td>\n",
|
| 738 |
-
" <td>2009</td>\n",
|
| 739 |
-
" <td>14855 SE 10th Pl</td>\n",
|
| 740 |
-
" <td>2</td>\n",
|
| 741 |
-
" <td>WA 98007</td>\n",
|
| 742 |
-
" <td>USA</td>\n",
|
| 743 |
-
" </tr>\n",
|
| 744 |
-
" <tr>\n",
|
| 745 |
-
" <th>4597</th>\n",
|
| 746 |
-
" <td>2014-07-09 00:00:00</td>\n",
|
| 747 |
-
" <td>4.169042e+05</td>\n",
|
| 748 |
-
" <td>3.0</td>\n",
|
| 749 |
-
" <td>2.50</td>\n",
|
| 750 |
-
" <td>3010</td>\n",
|
| 751 |
-
" <td>7014</td>\n",
|
| 752 |
-
" <td>2.0</td>\n",
|
| 753 |
-
" <td>0</td>\n",
|
| 754 |
-
" <td>0</td>\n",
|
| 755 |
-
" <td>3</td>\n",
|
| 756 |
-
" <td>3010</td>\n",
|
| 757 |
-
" <td>0</td>\n",
|
| 758 |
-
" <td>2009</td>\n",
|
| 759 |
-
" <td>0</td>\n",
|
| 760 |
-
" <td>759 Ilwaco Pl NE</td>\n",
|
| 761 |
-
" <td>1</td>\n",
|
| 762 |
-
" <td>WA 98059</td>\n",
|
| 763 |
-
" <td>USA</td>\n",
|
| 764 |
-
" </tr>\n",
|
| 765 |
-
" <tr>\n",
|
| 766 |
-
" <th>4598</th>\n",
|
| 767 |
-
" <td>2014-07-10 00:00:00</td>\n",
|
| 768 |
-
" <td>2.034000e+05</td>\n",
|
| 769 |
-
" <td>4.0</td>\n",
|
| 770 |
-
" <td>2.00</td>\n",
|
| 771 |
-
" <td>2090</td>\n",
|
| 772 |
-
" <td>6630</td>\n",
|
| 773 |
-
" <td>1.0</td>\n",
|
| 774 |
-
" <td>0</td>\n",
|
| 775 |
-
" <td>0</td>\n",
|
| 776 |
-
" <td>3</td>\n",
|
| 777 |
-
" <td>1070</td>\n",
|
| 778 |
-
" <td>1020</td>\n",
|
| 779 |
-
" <td>1974</td>\n",
|
| 780 |
-
" <td>0</td>\n",
|
| 781 |
-
" <td>5148 S Creston St</td>\n",
|
| 782 |
-
" <td>0</td>\n",
|
| 783 |
-
" <td>WA 98178</td>\n",
|
| 784 |
-
" <td>USA</td>\n",
|
| 785 |
-
" </tr>\n",
|
| 786 |
-
" <tr>\n",
|
| 787 |
-
" <th>4599</th>\n",
|
| 788 |
-
" <td>2014-07-10 00:00:00</td>\n",
|
| 789 |
-
" <td>2.206000e+05</td>\n",
|
| 790 |
-
" <td>3.0</td>\n",
|
| 791 |
-
" <td>2.50</td>\n",
|
| 792 |
-
" <td>1490</td>\n",
|
| 793 |
-
" <td>8102</td>\n",
|
| 794 |
-
" <td>2.0</td>\n",
|
| 795 |
-
" <td>0</td>\n",
|
| 796 |
-
" <td>0</td>\n",
|
| 797 |
-
" <td>4</td>\n",
|
| 798 |
-
" <td>1490</td>\n",
|
| 799 |
-
" <td>0</td>\n",
|
| 800 |
-
" <td>1990</td>\n",
|
| 801 |
-
" <td>0</td>\n",
|
| 802 |
-
" <td>18717 SE 258th St</td>\n",
|
| 803 |
-
" <td>19</td>\n",
|
| 804 |
-
" <td>WA 98042</td>\n",
|
| 805 |
-
" <td>USA</td>\n",
|
| 806 |
-
" </tr>\n",
|
| 807 |
-
" </tbody>\n",
|
| 808 |
-
"</table>\n",
|
| 809 |
-
"<p>4600 rows × 18 columns</p>\n",
|
| 810 |
-
"</div>"
|
| 811 |
-
],
|
| 812 |
-
"text/plain": [
|
| 813 |
-
" date price bedrooms bathrooms sqft_living \\\n",
|
| 814 |
-
"0 2014-05-02 00:00:00 3.130000e+05 3.0 1.50 1340 \n",
|
| 815 |
-
"1 2014-05-02 00:00:00 2.384000e+06 5.0 2.50 3650 \n",
|
| 816 |
-
"2 2014-05-02 00:00:00 3.420000e+05 3.0 2.00 1930 \n",
|
| 817 |
-
"3 2014-05-02 00:00:00 4.200000e+05 3.0 2.25 2000 \n",
|
| 818 |
-
"4 2014-05-02 00:00:00 5.500000e+05 4.0 2.50 1940 \n",
|
| 819 |
-
"... ... ... ... ... ... \n",
|
| 820 |
-
"4595 2014-07-09 00:00:00 3.081667e+05 3.0 1.75 1510 \n",
|
| 821 |
-
"4596 2014-07-09 00:00:00 5.343333e+05 3.0 2.50 1460 \n",
|
| 822 |
-
"4597 2014-07-09 00:00:00 4.169042e+05 3.0 2.50 3010 \n",
|
| 823 |
-
"4598 2014-07-10 00:00:00 2.034000e+05 4.0 2.00 2090 \n",
|
| 824 |
-
"4599 2014-07-10 00:00:00 2.206000e+05 3.0 2.50 1490 \n",
|
| 825 |
-
"\n",
|
| 826 |
-
" sqft_lot floors waterfront view condition sqft_above \\\n",
|
| 827 |
-
"0 7912 1.5 0 0 3 1340 \n",
|
| 828 |
-
"1 9050 2.0 0 4 5 3370 \n",
|
| 829 |
-
"2 11947 1.0 0 0 4 1930 \n",
|
| 830 |
-
"3 8030 1.0 0 0 4 1000 \n",
|
| 831 |
-
"4 10500 1.0 0 0 4 1140 \n",
|
| 832 |
-
"... ... ... ... ... ... ... \n",
|
| 833 |
-
"4595 6360 1.0 0 0 4 1510 \n",
|
| 834 |
-
"4596 7573 2.0 0 0 3 1460 \n",
|
| 835 |
-
"4597 7014 2.0 0 0 3 3010 \n",
|
| 836 |
-
"4598 6630 1.0 0 0 3 1070 \n",
|
| 837 |
-
"4599 8102 2.0 0 0 4 1490 \n",
|
| 838 |
-
"\n",
|
| 839 |
-
" sqft_basement yr_built yr_renovated street city \\\n",
|
| 840 |
-
"0 0 1955 2005 18810 Densmore Ave N 10 \n",
|
| 841 |
-
"1 280 1921 0 709 W Blaine St 0 \n",
|
| 842 |
-
"2 0 1966 0 26206-26214 143rd Ave SE 6 \n",
|
| 843 |
-
"3 1000 1963 0 857 170th Pl NE 2 \n",
|
| 844 |
-
"4 800 1976 1992 9105 170th Ave NE 3 \n",
|
| 845 |
-
"... ... ... ... ... ... \n",
|
| 846 |
-
"4595 0 1954 1979 501 N 143rd St 0 \n",
|
| 847 |
-
"4596 0 1983 2009 14855 SE 10th Pl 2 \n",
|
| 848 |
-
"4597 0 2009 0 759 Ilwaco Pl NE 1 \n",
|
| 849 |
-
"4598 1020 1974 0 5148 S Creston St 0 \n",
|
| 850 |
-
"4599 0 1990 0 18717 SE 258th St 19 \n",
|
| 851 |
-
"\n",
|
| 852 |
-
" statezip country \n",
|
| 853 |
-
"0 WA 98133 USA \n",
|
| 854 |
-
"1 WA 98119 USA \n",
|
| 855 |
-
"2 WA 98042 USA \n",
|
| 856 |
-
"3 WA 98008 USA \n",
|
| 857 |
-
"4 WA 98052 USA \n",
|
| 858 |
-
"... ... ... \n",
|
| 859 |
-
"4595 WA 98133 USA \n",
|
| 860 |
-
"4596 WA 98007 USA \n",
|
| 861 |
-
"4597 WA 98059 USA \n",
|
| 862 |
-
"4598 WA 98178 USA \n",
|
| 863 |
-
"4599 WA 98042 USA \n",
|
| 864 |
-
"\n",
|
| 865 |
-
"[4600 rows x 18 columns]"
|
| 866 |
-
]
|
| 867 |
-
},
|
| 868 |
-
"execution_count": 9,
|
| 869 |
-
"metadata": {},
|
| 870 |
-
"output_type": "execute_result"
|
| 871 |
-
}
|
| 872 |
-
],
|
| 873 |
"source": [
|
| 874 |
"df"
|
| 875 |
]
|
| 876 |
},
|
| 877 |
{
|
| 878 |
"cell_type": "code",
|
| 879 |
-
"execution_count":
|
| 880 |
"metadata": {
|
| 881 |
"execution": {
|
| 882 |
"iopub.execute_input": "2023-10-01T12:09:08.527614Z",
|
|
@@ -886,23 +309,14 @@
|
|
| 886 |
"shell.execute_reply.started": "2023-10-01T12:09:08.527547Z"
|
| 887 |
}
|
| 888 |
},
|
| 889 |
-
"outputs": [
|
| 890 |
-
{
|
| 891 |
-
"name": "stdout",
|
| 892 |
-
"output_type": "stream",
|
| 893 |
-
"text": [
|
| 894 |
-
"[10 0 6 2 3 12 18 21 8 7 17 22 9 5 4 11 29 32 1 28 15 20 14 19\n",
|
| 895 |
-
" 41 16 23 13 33 34 30 36 38 25 26 37 24 31 27 42 35 43 39 40]\n"
|
| 896 |
-
]
|
| 897 |
-
}
|
| 898 |
-
],
|
| 899 |
"source": [
|
| 900 |
"print(df['city'].unique())"
|
| 901 |
]
|
| 902 |
},
|
| 903 |
{
|
| 904 |
"cell_type": "code",
|
| 905 |
-
"execution_count":
|
| 906 |
"metadata": {
|
| 907 |
"execution": {
|
| 908 |
"iopub.execute_input": "2023-10-01T12:09:16.082488Z",
|
|
@@ -926,7 +340,7 @@
|
|
| 926 |
},
|
| 927 |
{
|
| 928 |
"cell_type": "code",
|
| 929 |
-
"execution_count":
|
| 930 |
"metadata": {
|
| 931 |
"execution": {
|
| 932 |
"iopub.execute_input": "2023-10-01T12:09:20.447436Z",
|
|
@@ -946,7 +360,7 @@
|
|
| 946 |
},
|
| 947 |
{
|
| 948 |
"cell_type": "code",
|
| 949 |
-
"execution_count":
|
| 950 |
"metadata": {
|
| 951 |
"execution": {
|
| 952 |
"iopub.execute_input": "2023-10-01T12:09:23.615894Z",
|
|
@@ -964,7 +378,7 @@
|
|
| 964 |
"traceback": [
|
| 965 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 966 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 967 |
-
"\u001b[0;32m<ipython-input-
|
| 968 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/linear_model/_base.py\u001b[0m in \u001b[0;36mfit\u001b[0;34m(self, X, y, sample_weight)\u001b[0m\n\u001b[1;32m 646\u001b[0m \u001b[0maccept_sparse\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpositive\u001b[0m \u001b[0;32melse\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m\"csr\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"csc\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"coo\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 647\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 648\u001b[0;31m X, y = self._validate_data(\n\u001b[0m\u001b[1;32m 649\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0maccept_sparse\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_numeric\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmulti_output\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[1;32m 650\u001b[0m )\n",
|
| 969 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 582\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_array\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minput_name\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"y\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_y_params\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 583\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 584\u001b[0;31m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_X_y\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_params\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 585\u001b[0m \u001b[0mout\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 586\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 970 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/validation.py\u001b[0m in \u001b[0;36mcheck_X_y\u001b[0;34m(X, y, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, estimator)\u001b[0m\n\u001b[1;32m 1104\u001b[0m )\n\u001b[1;32m 1105\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1106\u001b[0;31m X = check_array(\n\u001b[0m\u001b[1;32m 1107\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1108\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0maccept_sparse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
|
|
|
| 69 |
},
|
| 70 |
{
|
| 71 |
"cell_type": "code",
|
| 72 |
+
"execution_count": null,
|
| 73 |
"metadata": {
|
| 74 |
"execution": {
|
| 75 |
"iopub.execute_input": "2023-10-01T12:08:21.397453Z",
|
|
|
|
| 79 |
"shell.execute_reply.started": "2023-10-01T12:08:21.397388Z"
|
| 80 |
}
|
| 81 |
},
|
| 82 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
"source": [
|
| 84 |
"# Preprocessing\n",
|
| 85 |
"df.head()"
|
|
|
|
| 87 |
},
|
| 88 |
{
|
| 89 |
"cell_type": "code",
|
| 90 |
+
"execution_count": null,
|
| 91 |
"metadata": {
|
| 92 |
"execution": {
|
| 93 |
"iopub.execute_input": "2023-10-01T12:08:24.387978Z",
|
|
|
|
| 97 |
"shell.execute_reply.started": "2023-10-01T12:08:24.387936Z"
|
| 98 |
}
|
| 99 |
},
|
| 100 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
"source": [
|
| 102 |
"df.info()"
|
| 103 |
]
|
|
|
|
| 121 |
},
|
| 122 |
{
|
| 123 |
"cell_type": "code",
|
| 124 |
+
"execution_count": 3,
|
| 125 |
"metadata": {
|
| 126 |
"execution": {
|
| 127 |
"iopub.execute_input": "2023-10-01T12:08:29.794467Z",
|
|
|
|
| 177 |
},
|
| 178 |
{
|
| 179 |
"cell_type": "code",
|
| 180 |
+
"execution_count": null,
|
| 181 |
"metadata": {
|
| 182 |
"execution": {
|
| 183 |
"iopub.execute_input": "2023-10-01T12:08:34.205598Z",
|
|
|
|
| 187 |
"shell.execute_reply.started": "2023-10-01T12:08:34.205565Z"
|
| 188 |
}
|
| 189 |
},
|
| 190 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
"source": [
|
| 192 |
"valueofcity = (df['city'].unique())\n",
|
| 193 |
"print(valueofcity)"
|
|
|
|
| 195 |
},
|
| 196 |
{
|
| 197 |
"cell_type": "code",
|
| 198 |
+
"execution_count": null,
|
| 199 |
"metadata": {
|
| 200 |
"execution": {
|
| 201 |
"iopub.execute_input": "2023-10-01T12:08:36.362418Z",
|
|
|
|
| 205 |
"shell.execute_reply.started": "2023-10-01T12:08:36.362373Z"
|
| 206 |
}
|
| 207 |
},
|
| 208 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
"source": [
|
| 210 |
"valueofcity.shape"
|
| 211 |
]
|
|
|
|
| 229 |
},
|
| 230 |
{
|
| 231 |
"cell_type": "code",
|
| 232 |
+
"execution_count": 4,
|
| 233 |
"metadata": {
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 296 |
"source": [
|
| 297 |
"df"
|
| 298 |
]
|
| 299 |
},
|
| 300 |
{
|
| 301 |
"cell_type": "code",
|
| 302 |
+
"execution_count": null,
|
| 303 |
"metadata": {
|
| 304 |
"execution": {
|
| 305 |
"iopub.execute_input": "2023-10-01T12:09:08.527614Z",
|
|
|
|
| 309 |
"shell.execute_reply.started": "2023-10-01T12:09:08.527547Z"
|
| 310 |
}
|
| 311 |
},
|
| 312 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
"source": [
|
| 314 |
"print(df['city'].unique())"
|
| 315 |
]
|
| 316 |
},
|
| 317 |
{
|
| 318 |
"cell_type": "code",
|
| 319 |
+
"execution_count": 5,
|
| 320 |
"metadata": {
|
| 321 |
"execution": {
|
| 322 |
"iopub.execute_input": "2023-10-01T12:09:16.082488Z",
|
|
|
|
| 340 |
},
|
| 341 |
{
|
| 342 |
"cell_type": "code",
|
| 343 |
+
"execution_count": 6,
|
| 344 |
"metadata": {
|
| 345 |
"execution": {
|
| 346 |
"iopub.execute_input": "2023-10-01T12:09:20.447436Z",
|
|
|
|
| 360 |
},
|
| 361 |
{
|
| 362 |
"cell_type": "code",
|
| 363 |
+
"execution_count": 7,
|
| 364 |
"metadata": {
|
| 365 |
"execution": {
|
| 366 |
"iopub.execute_input": "2023-10-01T12:09:23.615894Z",
|
|
|
|
| 378 |
"traceback": [
|
| 379 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 380 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 381 |
+
"\u001b[0;32m<ipython-input-7-613c4fe7e2a6>\u001b[0m in \u001b[0;36m<cell line: 2>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m# Fitting the model\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX_train\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[0m",
|
| 382 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/linear_model/_base.py\u001b[0m in \u001b[0;36mfit\u001b[0;34m(self, X, y, sample_weight)\u001b[0m\n\u001b[1;32m 646\u001b[0m \u001b[0maccept_sparse\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpositive\u001b[0m \u001b[0;32melse\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m\"csr\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"csc\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"coo\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 647\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 648\u001b[0;31m X, y = self._validate_data(\n\u001b[0m\u001b[1;32m 649\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0maccept_sparse\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_numeric\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmulti_output\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[1;32m 650\u001b[0m )\n",
|
| 383 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 582\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_array\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minput_name\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"y\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_y_params\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 583\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 584\u001b[0;31m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_X_y\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_params\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 585\u001b[0m \u001b[0mout\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 586\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 384 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/validation.py\u001b[0m in \u001b[0;36mcheck_X_y\u001b[0;34m(X, y, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, estimator)\u001b[0m\n\u001b[1;32m 1104\u001b[0m )\n\u001b[1;32m 1105\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1106\u001b[0;31m X = check_array(\n\u001b[0m\u001b[1;32m 1107\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1108\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0maccept_sparse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
benchmark/sklearn_15/sklearn_15_fixed.ipynb
CHANGED
|
@@ -147,7 +147,7 @@
|
|
| 147 |
},
|
| 148 |
{
|
| 149 |
"cell_type": "code",
|
| 150 |
-
"execution_count":
|
| 151 |
"id": "feaa7d37",
|
| 152 |
"metadata": {
|
| 153 |
"execution": {
|
|
@@ -165,46 +165,7 @@
|
|
| 165 |
},
|
| 166 |
"tags": []
|
| 167 |
},
|
| 168 |
-
"outputs": [
|
| 169 |
-
{
|
| 170 |
-
"name": "stdout",
|
| 171 |
-
"output_type": "stream",
|
| 172 |
-
"text": [
|
| 173 |
-
"<class 'pandas.core.frame.DataFrame'>\n",
|
| 174 |
-
"RangeIndex: 36881 entries, 0 to 36880\n",
|
| 175 |
-
"Data columns (total 25 columns):\n",
|
| 176 |
-
" # Column Non-Null Count Dtype \n",
|
| 177 |
-
"--- ------ -------------- ----- \n",
|
| 178 |
-
" 0 Unnamed: 0 36881 non-null int64 \n",
|
| 179 |
-
" 1 Date 36881 non-null object \n",
|
| 180 |
-
" 2 Location 36881 non-null object \n",
|
| 181 |
-
" 3 MinTemp 36543 non-null float64\n",
|
| 182 |
-
" 4 MaxTemp 36639 non-null float64\n",
|
| 183 |
-
" 5 Rainfall 36255 non-null float64\n",
|
| 184 |
-
" 6 Evaporation 24035 non-null float64\n",
|
| 185 |
-
" 7 Sunshine 23317 non-null float64\n",
|
| 186 |
-
" 8 WindGustDir 33513 non-null object \n",
|
| 187 |
-
" 9 WindGustSpeed 33520 non-null float64\n",
|
| 188 |
-
" 10 WindDir9am 34072 non-null object \n",
|
| 189 |
-
" 11 WindDir3pm 35919 non-null object \n",
|
| 190 |
-
" 12 WindSpeed9am 36219 non-null float64\n",
|
| 191 |
-
" 13 WindSpeed3pm 36235 non-null float64\n",
|
| 192 |
-
" 14 Humidity9am 36311 non-null float64\n",
|
| 193 |
-
" 15 Humidity3pm 36370 non-null float64\n",
|
| 194 |
-
" 16 Pressure9am 33309 non-null float64\n",
|
| 195 |
-
" 17 Pressure3pm 33329 non-null float64\n",
|
| 196 |
-
" 18 Cloud9am 24381 non-null float64\n",
|
| 197 |
-
" 19 Cloud3pm 23899 non-null float64\n",
|
| 198 |
-
" 20 Temp9am 36394 non-null float64\n",
|
| 199 |
-
" 21 Temp3pm 36437 non-null float64\n",
|
| 200 |
-
" 22 RainToday 36255 non-null object \n",
|
| 201 |
-
" 23 RISK_MM 36261 non-null float64\n",
|
| 202 |
-
" 24 RainTomorrow 36261 non-null object \n",
|
| 203 |
-
"dtypes: float64(17), int64(1), object(7)\n",
|
| 204 |
-
"memory usage: 7.0+ MB\n"
|
| 205 |
-
]
|
| 206 |
-
}
|
| 207 |
-
],
|
| 208 |
"source": [
|
| 209 |
"data.head()\n",
|
| 210 |
"data.info()"
|
|
@@ -229,7 +190,7 @@
|
|
| 229 |
},
|
| 230 |
{
|
| 231 |
"cell_type": "code",
|
| 232 |
-
"execution_count":
|
| 233 |
"id": "9d21679a",
|
| 234 |
"metadata": {
|
| 235 |
"execution": {
|
|
@@ -271,7 +232,7 @@
|
|
| 271 |
},
|
| 272 |
{
|
| 273 |
"cell_type": "code",
|
| 274 |
-
"execution_count":
|
| 275 |
"id": "ffd42901",
|
| 276 |
"metadata": {
|
| 277 |
"execution": {
|
|
@@ -317,7 +278,7 @@
|
|
| 317 |
},
|
| 318 |
{
|
| 319 |
"cell_type": "code",
|
| 320 |
-
"execution_count":
|
| 321 |
"id": "b570e7d1",
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
|
@@ -360,7 +321,7 @@
|
|
| 360 |
},
|
| 361 |
{
|
| 362 |
"cell_type": "code",
|
| 363 |
-
"execution_count":
|
| 364 |
"id": "f05313a2",
|
| 365 |
"metadata": {
|
| 366 |
"execution": {
|
|
@@ -408,7 +369,7 @@
|
|
| 408 |
},
|
| 409 |
{
|
| 410 |
"cell_type": "code",
|
| 411 |
-
"execution_count":
|
| 412 |
"id": "a285cd46",
|
| 413 |
"metadata": {
|
| 414 |
"execution": {
|
|
@@ -450,7 +411,7 @@
|
|
| 450 |
},
|
| 451 |
{
|
| 452 |
"cell_type": "code",
|
| 453 |
-
"execution_count":
|
| 454 |
"id": "792e3fb0",
|
| 455 |
"metadata": {
|
| 456 |
"execution": {
|
|
@@ -478,7 +439,7 @@
|
|
| 478 |
"LogisticRegression(max_iter=1000)"
|
| 479 |
]
|
| 480 |
},
|
| 481 |
-
"execution_count":
|
| 482 |
"metadata": {},
|
| 483 |
"output_type": "execute_result"
|
| 484 |
}
|
|
@@ -516,7 +477,7 @@
|
|
| 516 |
},
|
| 517 |
{
|
| 518 |
"cell_type": "code",
|
| 519 |
-
"execution_count":
|
| 520 |
"id": "7b178f4d",
|
| 521 |
"metadata": {
|
| 522 |
"papermill": {
|
|
@@ -552,7 +513,7 @@
|
|
| 552 |
},
|
| 553 |
{
|
| 554 |
"cell_type": "code",
|
| 555 |
-
"execution_count":
|
| 556 |
"id": "a7bb198f",
|
| 557 |
"metadata": {
|
| 558 |
"papermill": {
|
|
@@ -564,15 +525,7 @@
|
|
| 564 |
},
|
| 565 |
"tags": []
|
| 566 |
},
|
| 567 |
-
"outputs": [
|
| 568 |
-
{
|
| 569 |
-
"name": "stdout",
|
| 570 |
-
"output_type": "stream",
|
| 571 |
-
"text": [
|
| 572 |
-
"Accuracy: 0.9918666124440829\n"
|
| 573 |
-
]
|
| 574 |
-
}
|
| 575 |
-
],
|
| 576 |
"source": [
|
| 577 |
"accuracy = metrics.accuracy_score(y_test, y_pred)\n",
|
| 578 |
"print(\"Accuracy:\", accuracy)"
|
|
|
|
| 147 |
},
|
| 148 |
{
|
| 149 |
"cell_type": "code",
|
| 150 |
+
"execution_count": null,
|
| 151 |
"id": "feaa7d37",
|
| 152 |
"metadata": {
|
| 153 |
"execution": {
|
|
|
|
| 165 |
},
|
| 166 |
"tags": []
|
| 167 |
},
|
| 168 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
"source": [
|
| 170 |
"data.head()\n",
|
| 171 |
"data.info()"
|
|
|
|
| 190 |
},
|
| 191 |
{
|
| 192 |
"cell_type": "code",
|
| 193 |
+
"execution_count": 3,
|
| 194 |
"id": "9d21679a",
|
| 195 |
"metadata": {
|
| 196 |
"execution": {
|
|
|
|
| 232 |
},
|
| 233 |
{
|
| 234 |
"cell_type": "code",
|
| 235 |
+
"execution_count": 4,
|
| 236 |
"id": "ffd42901",
|
| 237 |
"metadata": {
|
| 238 |
"execution": {
|
|
|
|
| 278 |
},
|
| 279 |
{
|
| 280 |
"cell_type": "code",
|
| 281 |
+
"execution_count": 5,
|
| 282 |
"id": "b570e7d1",
|
| 283 |
"metadata": {
|
| 284 |
"execution": {
|
|
|
|
| 321 |
},
|
| 322 |
{
|
| 323 |
"cell_type": "code",
|
| 324 |
+
"execution_count": 6,
|
| 325 |
"id": "f05313a2",
|
| 326 |
"metadata": {
|
| 327 |
"execution": {
|
|
|
|
| 369 |
},
|
| 370 |
{
|
| 371 |
"cell_type": "code",
|
| 372 |
+
"execution_count": 7,
|
| 373 |
"id": "a285cd46",
|
| 374 |
"metadata": {
|
| 375 |
"execution": {
|
|
|
|
| 411 |
},
|
| 412 |
{
|
| 413 |
"cell_type": "code",
|
| 414 |
+
"execution_count": 8,
|
| 415 |
"id": "792e3fb0",
|
| 416 |
"metadata": {
|
| 417 |
"execution": {
|
|
|
|
| 439 |
"LogisticRegression(max_iter=1000)"
|
| 440 |
]
|
| 441 |
},
|
| 442 |
+
"execution_count": 8,
|
| 443 |
"metadata": {},
|
| 444 |
"output_type": "execute_result"
|
| 445 |
}
|
|
|
|
| 477 |
},
|
| 478 |
{
|
| 479 |
"cell_type": "code",
|
| 480 |
+
"execution_count": null,
|
| 481 |
"id": "7b178f4d",
|
| 482 |
"metadata": {
|
| 483 |
"papermill": {
|
|
|
|
| 513 |
},
|
| 514 |
{
|
| 515 |
"cell_type": "code",
|
| 516 |
+
"execution_count": null,
|
| 517 |
"id": "a7bb198f",
|
| 518 |
"metadata": {
|
| 519 |
"papermill": {
|
|
|
|
| 525 |
},
|
| 526 |
"tags": []
|
| 527 |
},
|
| 528 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 529 |
"source": [
|
| 530 |
"accuracy = metrics.accuracy_score(y_test, y_pred)\n",
|
| 531 |
"print(\"Accuracy:\", accuracy)"
|
benchmark/sklearn_15/sklearn_15_reproduced.ipynb
CHANGED
|
@@ -103,7 +103,7 @@
|
|
| 103 |
},
|
| 104 |
{
|
| 105 |
"cell_type": "code",
|
| 106 |
-
"execution_count":
|
| 107 |
"id": "9547167a",
|
| 108 |
"metadata": {
|
| 109 |
"execution": {
|
|
@@ -147,7 +147,7 @@
|
|
| 147 |
},
|
| 148 |
{
|
| 149 |
"cell_type": "code",
|
| 150 |
-
"execution_count":
|
| 151 |
"id": "feaa7d37",
|
| 152 |
"metadata": {
|
| 153 |
"execution": {
|
|
@@ -165,46 +165,7 @@
|
|
| 165 |
},
|
| 166 |
"tags": []
|
| 167 |
},
|
| 168 |
-
"outputs": [
|
| 169 |
-
{
|
| 170 |
-
"name": "stdout",
|
| 171 |
-
"output_type": "stream",
|
| 172 |
-
"text": [
|
| 173 |
-
"<class 'pandas.core.frame.DataFrame'>\n",
|
| 174 |
-
"RangeIndex: 36881 entries, 0 to 36880\n",
|
| 175 |
-
"Data columns (total 25 columns):\n",
|
| 176 |
-
" # Column Non-Null Count Dtype \n",
|
| 177 |
-
"--- ------ -------------- ----- \n",
|
| 178 |
-
" 0 Unnamed: 0 36881 non-null int64 \n",
|
| 179 |
-
" 1 Date 36881 non-null object \n",
|
| 180 |
-
" 2 Location 36881 non-null object \n",
|
| 181 |
-
" 3 MinTemp 36543 non-null float64\n",
|
| 182 |
-
" 4 MaxTemp 36639 non-null float64\n",
|
| 183 |
-
" 5 Rainfall 36255 non-null float64\n",
|
| 184 |
-
" 6 Evaporation 24035 non-null float64\n",
|
| 185 |
-
" 7 Sunshine 23317 non-null float64\n",
|
| 186 |
-
" 8 WindGustDir 33513 non-null object \n",
|
| 187 |
-
" 9 WindGustSpeed 33520 non-null float64\n",
|
| 188 |
-
" 10 WindDir9am 34072 non-null object \n",
|
| 189 |
-
" 11 WindDir3pm 35919 non-null object \n",
|
| 190 |
-
" 12 WindSpeed9am 36219 non-null float64\n",
|
| 191 |
-
" 13 WindSpeed3pm 36235 non-null float64\n",
|
| 192 |
-
" 14 Humidity9am 36311 non-null float64\n",
|
| 193 |
-
" 15 Humidity3pm 36370 non-null float64\n",
|
| 194 |
-
" 16 Pressure9am 33309 non-null float64\n",
|
| 195 |
-
" 17 Pressure3pm 33329 non-null float64\n",
|
| 196 |
-
" 18 Cloud9am 24381 non-null float64\n",
|
| 197 |
-
" 19 Cloud3pm 23899 non-null float64\n",
|
| 198 |
-
" 20 Temp9am 36394 non-null float64\n",
|
| 199 |
-
" 21 Temp3pm 36437 non-null float64\n",
|
| 200 |
-
" 22 RainToday 36255 non-null object \n",
|
| 201 |
-
" 23 RISK_MM 36261 non-null float64\n",
|
| 202 |
-
" 24 RainTomorrow 36261 non-null object \n",
|
| 203 |
-
"dtypes: float64(17), int64(1), object(7)\n",
|
| 204 |
-
"memory usage: 7.0+ MB\n"
|
| 205 |
-
]
|
| 206 |
-
}
|
| 207 |
-
],
|
| 208 |
"source": [
|
| 209 |
"data.head()\n",
|
| 210 |
"data.info()"
|
|
@@ -229,7 +190,7 @@
|
|
| 229 |
},
|
| 230 |
{
|
| 231 |
"cell_type": "code",
|
| 232 |
-
"execution_count":
|
| 233 |
"id": "9d21679a",
|
| 234 |
"metadata": {
|
| 235 |
"execution": {
|
|
@@ -271,7 +232,7 @@
|
|
| 271 |
},
|
| 272 |
{
|
| 273 |
"cell_type": "code",
|
| 274 |
-
"execution_count":
|
| 275 |
"id": "ffd42901",
|
| 276 |
"metadata": {
|
| 277 |
"execution": {
|
|
@@ -317,7 +278,7 @@
|
|
| 317 |
},
|
| 318 |
{
|
| 319 |
"cell_type": "code",
|
| 320 |
-
"execution_count":
|
| 321 |
"id": "b570e7d1",
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
|
@@ -360,7 +321,7 @@
|
|
| 360 |
},
|
| 361 |
{
|
| 362 |
"cell_type": "code",
|
| 363 |
-
"execution_count":
|
| 364 |
"id": "f05313a2",
|
| 365 |
"metadata": {
|
| 366 |
"execution": {
|
|
@@ -403,7 +364,7 @@
|
|
| 403 |
},
|
| 404 |
{
|
| 405 |
"cell_type": "code",
|
| 406 |
-
"execution_count":
|
| 407 |
"id": "a285cd46",
|
| 408 |
"metadata": {
|
| 409 |
"execution": {
|
|
@@ -445,7 +406,7 @@
|
|
| 445 |
},
|
| 446 |
{
|
| 447 |
"cell_type": "code",
|
| 448 |
-
"execution_count":
|
| 449 |
"id": "792e3fb0",
|
| 450 |
"metadata": {
|
| 451 |
"execution": {
|
|
@@ -471,7 +432,7 @@
|
|
| 471 |
"traceback": [
|
| 472 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 473 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 474 |
-
"\u001b[0;32m<ipython-input-
|
| 475 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/_set_output.py\u001b[0m in \u001b[0;36mwrapped\u001b[0;34m(self, X, *args, **kwargs)\u001b[0m\n\u001b[1;32m 138\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mwraps\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 139\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mwrapped\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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--> 140\u001b[0;31m \u001b[0mdata_to_wrap\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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 141\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata_to_wrap\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtuple\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 142\u001b[0m \u001b[0;31m# only wrap the first output for cross decomposition\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 476 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36mfit_transform\u001b[0;34m(self, X, y, **fit_params)\u001b[0m\n\u001b[1;32m 876\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my\u001b[0m \u001b[0;32mis\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 877\u001b[0m \u001b[0;31m# fit method of arity 1 (unsupervised transformation)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 878\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mfit_params\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransform\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[0m\n\u001b[0m\u001b[1;32m 879\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 880\u001b[0m \u001b[0;31m# fit method of arity 2 (supervised transformation)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 477 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_data.py\u001b[0m in \u001b[0;36mfit\u001b[0;34m(self, X, y, sample_weight)\u001b[0m\n\u001b[1;32m 822\u001b[0m \u001b[0;31m# Reset internal state before fitting\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 823\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reset\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--> 824\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpartial_fit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\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 825\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 826\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mpartial_fit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\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[0;34m\u001b[0m\u001b[0m\n",
|
|
|
|
| 103 |
},
|
| 104 |
{
|
| 105 |
"cell_type": "code",
|
| 106 |
+
"execution_count": 2,
|
| 107 |
"id": "9547167a",
|
| 108 |
"metadata": {
|
| 109 |
"execution": {
|
|
|
|
| 147 |
},
|
| 148 |
{
|
| 149 |
"cell_type": "code",
|
| 150 |
+
"execution_count": null,
|
| 151 |
"id": "feaa7d37",
|
| 152 |
"metadata": {
|
| 153 |
"execution": {
|
|
|
|
| 165 |
},
|
| 166 |
"tags": []
|
| 167 |
},
|
| 168 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
"source": [
|
| 170 |
"data.head()\n",
|
| 171 |
"data.info()"
|
|
|
|
| 190 |
},
|
| 191 |
{
|
| 192 |
"cell_type": "code",
|
| 193 |
+
"execution_count": 3,
|
| 194 |
"id": "9d21679a",
|
| 195 |
"metadata": {
|
| 196 |
"execution": {
|
|
|
|
| 232 |
},
|
| 233 |
{
|
| 234 |
"cell_type": "code",
|
| 235 |
+
"execution_count": 4,
|
| 236 |
"id": "ffd42901",
|
| 237 |
"metadata": {
|
| 238 |
"execution": {
|
|
|
|
| 278 |
},
|
| 279 |
{
|
| 280 |
"cell_type": "code",
|
| 281 |
+
"execution_count": 5,
|
| 282 |
"id": "b570e7d1",
|
| 283 |
"metadata": {
|
| 284 |
"execution": {
|
|
|
|
| 321 |
},
|
| 322 |
{
|
| 323 |
"cell_type": "code",
|
| 324 |
+
"execution_count": 6,
|
| 325 |
"id": "f05313a2",
|
| 326 |
"metadata": {
|
| 327 |
"execution": {
|
|
|
|
| 364 |
},
|
| 365 |
{
|
| 366 |
"cell_type": "code",
|
| 367 |
+
"execution_count": 7,
|
| 368 |
"id": "a285cd46",
|
| 369 |
"metadata": {
|
| 370 |
"execution": {
|
|
|
|
| 406 |
},
|
| 407 |
{
|
| 408 |
"cell_type": "code",
|
| 409 |
+
"execution_count": 8,
|
| 410 |
"id": "792e3fb0",
|
| 411 |
"metadata": {
|
| 412 |
"execution": {
|
|
|
|
| 432 |
"traceback": [
|
| 433 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 434 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 435 |
+
"\u001b[0;32m<ipython-input-8-8a1f46ded531>\u001b[0m in \u001b[0;36m<cell line: 7>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mX_test\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscaler\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransform\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX_test\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\u001b[0;32m----> 7\u001b[0;31m \u001b[0my_train\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscaler\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit_transform\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[0m\u001b[1;32m 8\u001b[0m \u001b[0my_test\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscaler\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransform\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_test\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 436 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/_set_output.py\u001b[0m in \u001b[0;36mwrapped\u001b[0;34m(self, X, *args, **kwargs)\u001b[0m\n\u001b[1;32m 138\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mwraps\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 139\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mwrapped\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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--> 140\u001b[0;31m \u001b[0mdata_to_wrap\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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 141\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata_to_wrap\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtuple\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 142\u001b[0m \u001b[0;31m# only wrap the first output for cross decomposition\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 437 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36mfit_transform\u001b[0;34m(self, X, y, **fit_params)\u001b[0m\n\u001b[1;32m 876\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my\u001b[0m \u001b[0;32mis\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 877\u001b[0m \u001b[0;31m# fit method of arity 1 (unsupervised transformation)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 878\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mfit_params\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransform\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[0m\n\u001b[0m\u001b[1;32m 879\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 880\u001b[0m \u001b[0;31m# fit method of arity 2 (supervised transformation)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 438 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_data.py\u001b[0m in \u001b[0;36mfit\u001b[0;34m(self, X, y, sample_weight)\u001b[0m\n\u001b[1;32m 822\u001b[0m \u001b[0;31m# Reset internal state before fitting\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 823\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reset\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--> 824\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpartial_fit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\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 825\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 826\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mpartial_fit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\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[0;34m\u001b[0m\u001b[0m\n",
|
benchmark/sklearn_2/sklearn_2_fixed.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/sklearn_2/sklearn_2_reproduced.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/sklearn_3/sklearn_3_fixed.ipynb
CHANGED
|
@@ -106,7 +106,7 @@
|
|
| 106 |
},
|
| 107 |
{
|
| 108 |
"cell_type": "code",
|
| 109 |
-
"execution_count":
|
| 110 |
"metadata": {
|
| 111 |
"execution": {
|
| 112 |
"iopub.execute_input": "2023-07-23T04:58:48.511496Z",
|
|
@@ -116,214 +116,14 @@
|
|
| 116 |
"shell.execute_reply.started": "2023-07-23T04:58:48.511450Z"
|
| 117 |
}
|
| 118 |
},
|
| 119 |
-
"outputs": [
|
| 120 |
-
{
|
| 121 |
-
"data": {
|
| 122 |
-
"text/html": [
|
| 123 |
-
"<div>\n",
|
| 124 |
-
"<style scoped>\n",
|
| 125 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 126 |
-
" vertical-align: middle;\n",
|
| 127 |
-
" }\n",
|
| 128 |
-
"\n",
|
| 129 |
-
" .dataframe tbody tr th {\n",
|
| 130 |
-
" vertical-align: top;\n",
|
| 131 |
-
" }\n",
|
| 132 |
-
"\n",
|
| 133 |
-
" .dataframe thead th {\n",
|
| 134 |
-
" text-align: right;\n",
|
| 135 |
-
" }\n",
|
| 136 |
-
"</style>\n",
|
| 137 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 138 |
-
" <thead>\n",
|
| 139 |
-
" <tr style=\"text-align: right;\">\n",
|
| 140 |
-
" <th></th>\n",
|
| 141 |
-
" <th>Id</th>\n",
|
| 142 |
-
" <th>AB</th>\n",
|
| 143 |
-
" <th>AF</th>\n",
|
| 144 |
-
" <th>AH</th>\n",
|
| 145 |
-
" <th>AM</th>\n",
|
| 146 |
-
" <th>AR</th>\n",
|
| 147 |
-
" <th>AX</th>\n",
|
| 148 |
-
" <th>AY</th>\n",
|
| 149 |
-
" <th>AZ</th>\n",
|
| 150 |
-
" <th>BC</th>\n",
|
| 151 |
-
" <th>...</th>\n",
|
| 152 |
-
" <th>FL</th>\n",
|
| 153 |
-
" <th>FR</th>\n",
|
| 154 |
-
" <th>FS</th>\n",
|
| 155 |
-
" <th>GB</th>\n",
|
| 156 |
-
" <th>GE</th>\n",
|
| 157 |
-
" <th>GF</th>\n",
|
| 158 |
-
" <th>GH</th>\n",
|
| 159 |
-
" <th>GI</th>\n",
|
| 160 |
-
" <th>GL</th>\n",
|
| 161 |
-
" <th>Class</th>\n",
|
| 162 |
-
" </tr>\n",
|
| 163 |
-
" </thead>\n",
|
| 164 |
-
" <tbody>\n",
|
| 165 |
-
" <tr>\n",
|
| 166 |
-
" <th>0</th>\n",
|
| 167 |
-
" <td>e6aa6fa49abd</td>\n",
|
| 168 |
-
" <td>4.43</td>\n",
|
| 169 |
-
" <td>23067.30</td>\n",
|
| 170 |
-
" <td>344.36</td>\n",
|
| 171 |
-
" <td>586.33</td>\n",
|
| 172 |
-
" <td>49.59</td>\n",
|
| 173 |
-
" <td>14.05</td>\n",
|
| 174 |
-
" <td>1.13</td>\n",
|
| 175 |
-
" <td>34.60</td>\n",
|
| 176 |
-
" <td>1205.17</td>\n",
|
| 177 |
-
" <td>...</td>\n",
|
| 178 |
-
" <td>124.56</td>\n",
|
| 179 |
-
" <td>1219.22</td>\n",
|
| 180 |
-
" <td>16.20</td>\n",
|
| 181 |
-
" <td>134.13</td>\n",
|
| 182 |
-
" <td>1174.76</td>\n",
|
| 183 |
-
" <td>72861.37</td>\n",
|
| 184 |
-
" <td>17.67</td>\n",
|
| 185 |
-
" <td>83.87</td>\n",
|
| 186 |
-
" <td>16.54</td>\n",
|
| 187 |
-
" <td>0</td>\n",
|
| 188 |
-
" </tr>\n",
|
| 189 |
-
" <tr>\n",
|
| 190 |
-
" <th>1</th>\n",
|
| 191 |
-
" <td>a633a258eeed</td>\n",
|
| 192 |
-
" <td>2.95</td>\n",
|
| 193 |
-
" <td>18930.84</td>\n",
|
| 194 |
-
" <td>1513.23</td>\n",
|
| 195 |
-
" <td>129.03</td>\n",
|
| 196 |
-
" <td>148.21</td>\n",
|
| 197 |
-
" <td>27.22</td>\n",
|
| 198 |
-
" <td>6.94</td>\n",
|
| 199 |
-
" <td>7.85</td>\n",
|
| 200 |
-
" <td>1339.67</td>\n",
|
| 201 |
-
" <td>...</td>\n",
|
| 202 |
-
" <td>33.68</td>\n",
|
| 203 |
-
" <td>1214.14</td>\n",
|
| 204 |
-
" <td>17.09</td>\n",
|
| 205 |
-
" <td>76.82</td>\n",
|
| 206 |
-
" <td>179.83</td>\n",
|
| 207 |
-
" <td>35123.99</td>\n",
|
| 208 |
-
" <td>34.14</td>\n",
|
| 209 |
-
" <td>123.68</td>\n",
|
| 210 |
-
" <td>2.81</td>\n",
|
| 211 |
-
" <td>1</td>\n",
|
| 212 |
-
" </tr>\n",
|
| 213 |
-
" <tr>\n",
|
| 214 |
-
" <th>2</th>\n",
|
| 215 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 216 |
-
" <td>3.81</td>\n",
|
| 217 |
-
" <td>12809.52</td>\n",
|
| 218 |
-
" <td>1084.70</td>\n",
|
| 219 |
-
" <td>261.90</td>\n",
|
| 220 |
-
" <td>168.68</td>\n",
|
| 221 |
-
" <td>35.95</td>\n",
|
| 222 |
-
" <td>6.13</td>\n",
|
| 223 |
-
" <td>13.42</td>\n",
|
| 224 |
-
" <td>87.12</td>\n",
|
| 225 |
-
" <td>...</td>\n",
|
| 226 |
-
" <td>9.43</td>\n",
|
| 227 |
-
" <td>540.83</td>\n",
|
| 228 |
-
" <td>20.47</td>\n",
|
| 229 |
-
" <td>37.11</td>\n",
|
| 230 |
-
" <td>808.55</td>\n",
|
| 231 |
-
" <td>81425.75</td>\n",
|
| 232 |
-
" <td>42.81</td>\n",
|
| 233 |
-
" <td>83.53</td>\n",
|
| 234 |
-
" <td>6.02</td>\n",
|
| 235 |
-
" <td>1</td>\n",
|
| 236 |
-
" </tr>\n",
|
| 237 |
-
" <tr>\n",
|
| 238 |
-
" <th>3</th>\n",
|
| 239 |
-
" <td>3e610a5ff8d1</td>\n",
|
| 240 |
-
" <td>0.33</td>\n",
|
| 241 |
-
" <td>12439.71</td>\n",
|
| 242 |
-
" <td>1301.69</td>\n",
|
| 243 |
-
" <td>88.31</td>\n",
|
| 244 |
-
" <td>84.49</td>\n",
|
| 245 |
-
" <td>26.43</td>\n",
|
| 246 |
-
" <td>8.30</td>\n",
|
| 247 |
-
" <td>26.29</td>\n",
|
| 248 |
-
" <td>92.56</td>\n",
|
| 249 |
-
" <td>...</td>\n",
|
| 250 |
-
" <td>33.70</td>\n",
|
| 251 |
-
" <td>731.94</td>\n",
|
| 252 |
-
" <td>26.81</td>\n",
|
| 253 |
-
" <td>49.18</td>\n",
|
| 254 |
-
" <td>729.25</td>\n",
|
| 255 |
-
" <td>143656.96</td>\n",
|
| 256 |
-
" <td>75.09</td>\n",
|
| 257 |
-
" <td>177.96</td>\n",
|
| 258 |
-
" <td>15.87</td>\n",
|
| 259 |
-
" <td>0</td>\n",
|
| 260 |
-
" </tr>\n",
|
| 261 |
-
" <tr>\n",
|
| 262 |
-
" <th>4</th>\n",
|
| 263 |
-
" <td>b874e25c20aa</td>\n",
|
| 264 |
-
" <td>5.93</td>\n",
|
| 265 |
-
" <td>12025.87</td>\n",
|
| 266 |
-
" <td>1306.31</td>\n",
|
| 267 |
-
" <td>219.60</td>\n",
|
| 268 |
-
" <td>144.74</td>\n",
|
| 269 |
-
" <td>18.83</td>\n",
|
| 270 |
-
" <td>8.25</td>\n",
|
| 271 |
-
" <td>27.70</td>\n",
|
| 272 |
-
" <td>580.42</td>\n",
|
| 273 |
-
" <td>...</td>\n",
|
| 274 |
-
" <td>71.44</td>\n",
|
| 275 |
-
" <td>608.95</td>\n",
|
| 276 |
-
" <td>0.50</td>\n",
|
| 277 |
-
" <td>72.11</td>\n",
|
| 278 |
-
" <td>1153.78</td>\n",
|
| 279 |
-
" <td>110162.30</td>\n",
|
| 280 |
-
" <td>17.34</td>\n",
|
| 281 |
-
" <td>29.21</td>\n",
|
| 282 |
-
" <td>19.07</td>\n",
|
| 283 |
-
" <td>1</td>\n",
|
| 284 |
-
" </tr>\n",
|
| 285 |
-
" </tbody>\n",
|
| 286 |
-
"</table>\n",
|
| 287 |
-
"<p>5 rows × 58 columns</p>\n",
|
| 288 |
-
"</div>"
|
| 289 |
-
],
|
| 290 |
-
"text/plain": [
|
| 291 |
-
" Id AB AF AH AM AR AX AY AZ \\\n",
|
| 292 |
-
"0 e6aa6fa49abd 4.43 23067.30 344.36 586.33 49.59 14.05 1.13 34.60 \n",
|
| 293 |
-
"1 a633a258eeed 2.95 18930.84 1513.23 129.03 148.21 27.22 6.94 7.85 \n",
|
| 294 |
-
"2 d1a9f56adc4a 3.81 12809.52 1084.70 261.90 168.68 35.95 6.13 13.42 \n",
|
| 295 |
-
"3 3e610a5ff8d1 0.33 12439.71 1301.69 88.31 84.49 26.43 8.30 26.29 \n",
|
| 296 |
-
"4 b874e25c20aa 5.93 12025.87 1306.31 219.60 144.74 18.83 8.25 27.70 \n",
|
| 297 |
-
"\n",
|
| 298 |
-
" BC ... FL FR FS GB GE GF GH \\\n",
|
| 299 |
-
"0 1205.17 ... 124.56 1219.22 16.20 134.13 1174.76 72861.37 17.67 \n",
|
| 300 |
-
"1 1339.67 ... 33.68 1214.14 17.09 76.82 179.83 35123.99 34.14 \n",
|
| 301 |
-
"2 87.12 ... 9.43 540.83 20.47 37.11 808.55 81425.75 42.81 \n",
|
| 302 |
-
"3 92.56 ... 33.70 731.94 26.81 49.18 729.25 143656.96 75.09 \n",
|
| 303 |
-
"4 580.42 ... 71.44 608.95 0.50 72.11 1153.78 110162.30 17.34 \n",
|
| 304 |
-
"\n",
|
| 305 |
-
" GI GL Class \n",
|
| 306 |
-
"0 83.87 16.54 0 \n",
|
| 307 |
-
"1 123.68 2.81 1 \n",
|
| 308 |
-
"2 83.53 6.02 1 \n",
|
| 309 |
-
"3 177.96 15.87 0 \n",
|
| 310 |
-
"4 29.21 19.07 1 \n",
|
| 311 |
-
"\n",
|
| 312 |
-
"[5 rows x 58 columns]"
|
| 313 |
-
]
|
| 314 |
-
},
|
| 315 |
-
"execution_count": 3,
|
| 316 |
-
"metadata": {},
|
| 317 |
-
"output_type": "execute_result"
|
| 318 |
-
}
|
| 319 |
-
],
|
| 320 |
"source": [
|
| 321 |
"train_df.head()"
|
| 322 |
]
|
| 323 |
},
|
| 324 |
{
|
| 325 |
"cell_type": "code",
|
| 326 |
-
"execution_count":
|
| 327 |
"metadata": {
|
| 328 |
"execution": {
|
| 329 |
"iopub.execute_input": "2023-07-23T04:58:48.542550Z",
|
|
@@ -357,7 +157,7 @@
|
|
| 357 |
},
|
| 358 |
{
|
| 359 |
"cell_type": "code",
|
| 360 |
-
"execution_count":
|
| 361 |
"metadata": {
|
| 362 |
"execution": {
|
| 363 |
"iopub.execute_input": "2023-07-23T04:58:48.614537Z",
|
|
@@ -367,376 +167,14 @@
|
|
| 367 |
"shell.execute_reply.started": "2023-07-23T04:58:48.614508Z"
|
| 368 |
}
|
| 369 |
},
|
| 370 |
-
"outputs": [
|
| 371 |
-
{
|
| 372 |
-
"data": {
|
| 373 |
-
"text/html": [
|
| 374 |
-
"<div>\n",
|
| 375 |
-
"<style scoped>\n",
|
| 376 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 377 |
-
" vertical-align: middle;\n",
|
| 378 |
-
" }\n",
|
| 379 |
-
"\n",
|
| 380 |
-
" .dataframe tbody tr th {\n",
|
| 381 |
-
" vertical-align: top;\n",
|
| 382 |
-
" }\n",
|
| 383 |
-
"\n",
|
| 384 |
-
" .dataframe thead th {\n",
|
| 385 |
-
" text-align: right;\n",
|
| 386 |
-
" }\n",
|
| 387 |
-
"</style>\n",
|
| 388 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 389 |
-
" <thead>\n",
|
| 390 |
-
" <tr style=\"text-align: right;\">\n",
|
| 391 |
-
" <th></th>\n",
|
| 392 |
-
" <th>Id</th>\n",
|
| 393 |
-
" <th>AB</th>\n",
|
| 394 |
-
" <th>AF</th>\n",
|
| 395 |
-
" <th>AH</th>\n",
|
| 396 |
-
" <th>AM</th>\n",
|
| 397 |
-
" <th>AR</th>\n",
|
| 398 |
-
" <th>AX</th>\n",
|
| 399 |
-
" <th>AY</th>\n",
|
| 400 |
-
" <th>AZ</th>\n",
|
| 401 |
-
" <th>BC</th>\n",
|
| 402 |
-
" <th>...</th>\n",
|
| 403 |
-
" <th>GF</th>\n",
|
| 404 |
-
" <th>GH</th>\n",
|
| 405 |
-
" <th>GI</th>\n",
|
| 406 |
-
" <th>GL</th>\n",
|
| 407 |
-
" <th>Class</th>\n",
|
| 408 |
-
" <th>Alpha</th>\n",
|
| 409 |
-
" <th>Beta</th>\n",
|
| 410 |
-
" <th>Gamma</th>\n",
|
| 411 |
-
" <th>Delta</th>\n",
|
| 412 |
-
" <th>Epsilon</th>\n",
|
| 413 |
-
" </tr>\n",
|
| 414 |
-
" </thead>\n",
|
| 415 |
-
" <tbody>\n",
|
| 416 |
-
" <tr>\n",
|
| 417 |
-
" <th>0</th>\n",
|
| 418 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 419 |
-
" <td>3.81</td>\n",
|
| 420 |
-
" <td>12809.52</td>\n",
|
| 421 |
-
" <td>1084.70</td>\n",
|
| 422 |
-
" <td>261.90</td>\n",
|
| 423 |
-
" <td>168.68</td>\n",
|
| 424 |
-
" <td>35.95</td>\n",
|
| 425 |
-
" <td>6.13</td>\n",
|
| 426 |
-
" <td>13.42</td>\n",
|
| 427 |
-
" <td>87.12</td>\n",
|
| 428 |
-
" <td>...</td>\n",
|
| 429 |
-
" <td>81425.75</td>\n",
|
| 430 |
-
" <td>42.81</td>\n",
|
| 431 |
-
" <td>83.53</td>\n",
|
| 432 |
-
" <td>6.02</td>\n",
|
| 433 |
-
" <td>1</td>\n",
|
| 434 |
-
" <td>D</td>\n",
|
| 435 |
-
" <td>B</td>\n",
|
| 436 |
-
" <td>E</td>\n",
|
| 437 |
-
" <td>C</td>\n",
|
| 438 |
-
" <td>9/10/2020</td>\n",
|
| 439 |
-
" </tr>\n",
|
| 440 |
-
" <tr>\n",
|
| 441 |
-
" <th>1</th>\n",
|
| 442 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 443 |
-
" <td>3.81</td>\n",
|
| 444 |
-
" <td>12809.52</td>\n",
|
| 445 |
-
" <td>1084.70</td>\n",
|
| 446 |
-
" <td>261.90</td>\n",
|
| 447 |
-
" <td>168.68</td>\n",
|
| 448 |
-
" <td>35.95</td>\n",
|
| 449 |
-
" <td>6.13</td>\n",
|
| 450 |
-
" <td>13.42</td>\n",
|
| 451 |
-
" <td>87.12</td>\n",
|
| 452 |
-
" <td>...</td>\n",
|
| 453 |
-
" <td>81425.75</td>\n",
|
| 454 |
-
" <td>42.81</td>\n",
|
| 455 |
-
" <td>83.53</td>\n",
|
| 456 |
-
" <td>6.02</td>\n",
|
| 457 |
-
" <td>1</td>\n",
|
| 458 |
-
" <td>A</td>\n",
|
| 459 |
-
" <td>B</td>\n",
|
| 460 |
-
" <td>H</td>\n",
|
| 461 |
-
" <td>B</td>\n",
|
| 462 |
-
" <td>3/11/2019</td>\n",
|
| 463 |
-
" </tr>\n",
|
| 464 |
-
" <tr>\n",
|
| 465 |
-
" <th>2</th>\n",
|
| 466 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 467 |
-
" <td>5.80</td>\n",
|
| 468 |
-
" <td>6079.58</td>\n",
|
| 469 |
-
" <td>685.73</td>\n",
|
| 470 |
-
" <td>78.97</td>\n",
|
| 471 |
-
" <td>77.56</td>\n",
|
| 472 |
-
" <td>34.61</td>\n",
|
| 473 |
-
" <td>0.47</td>\n",
|
| 474 |
-
" <td>32.46</td>\n",
|
| 475 |
-
" <td>1115.36</td>\n",
|
| 476 |
-
" <td>...</td>\n",
|
| 477 |
-
" <td>102436.56</td>\n",
|
| 478 |
-
" <td>35.03</td>\n",
|
| 479 |
-
" <td>111.92</td>\n",
|
| 480 |
-
" <td>4.96</td>\n",
|
| 481 |
-
" <td>0</td>\n",
|
| 482 |
-
" <td>D</td>\n",
|
| 483 |
-
" <td>B</td>\n",
|
| 484 |
-
" <td>E</td>\n",
|
| 485 |
-
" <td>C</td>\n",
|
| 486 |
-
" <td>9/10/2020</td>\n",
|
| 487 |
-
" </tr>\n",
|
| 488 |
-
" <tr>\n",
|
| 489 |
-
" <th>3</th>\n",
|
| 490 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 491 |
-
" <td>5.80</td>\n",
|
| 492 |
-
" <td>6079.58</td>\n",
|
| 493 |
-
" <td>685.73</td>\n",
|
| 494 |
-
" <td>78.97</td>\n",
|
| 495 |
-
" <td>77.56</td>\n",
|
| 496 |
-
" <td>34.61</td>\n",
|
| 497 |
-
" <td>0.47</td>\n",
|
| 498 |
-
" <td>32.46</td>\n",
|
| 499 |
-
" <td>1115.36</td>\n",
|
| 500 |
-
" <td>...</td>\n",
|
| 501 |
-
" <td>102436.56</td>\n",
|
| 502 |
-
" <td>35.03</td>\n",
|
| 503 |
-
" <td>111.92</td>\n",
|
| 504 |
-
" <td>4.96</td>\n",
|
| 505 |
-
" <td>0</td>\n",
|
| 506 |
-
" <td>A</td>\n",
|
| 507 |
-
" <td>B</td>\n",
|
| 508 |
-
" <td>H</td>\n",
|
| 509 |
-
" <td>B</td>\n",
|
| 510 |
-
" <td>3/11/2019</td>\n",
|
| 511 |
-
" </tr>\n",
|
| 512 |
-
" <tr>\n",
|
| 513 |
-
" <th>4</th>\n",
|
| 514 |
-
" <td>b874e25c20aa</td>\n",
|
| 515 |
-
" <td>5.93</td>\n",
|
| 516 |
-
" <td>12025.87</td>\n",
|
| 517 |
-
" <td>1306.31</td>\n",
|
| 518 |
-
" <td>219.60</td>\n",
|
| 519 |
-
" <td>144.74</td>\n",
|
| 520 |
-
" <td>18.83</td>\n",
|
| 521 |
-
" <td>8.25</td>\n",
|
| 522 |
-
" <td>27.70</td>\n",
|
| 523 |
-
" <td>580.42</td>\n",
|
| 524 |
-
" <td>...</td>\n",
|
| 525 |
-
" <td>110162.30</td>\n",
|
| 526 |
-
" <td>17.34</td>\n",
|
| 527 |
-
" <td>29.21</td>\n",
|
| 528 |
-
" <td>19.07</td>\n",
|
| 529 |
-
" <td>1</td>\n",
|
| 530 |
-
" <td>B</td>\n",
|
| 531 |
-
" <td>C</td>\n",
|
| 532 |
-
" <td>E</td>\n",
|
| 533 |
-
" <td>D</td>\n",
|
| 534 |
-
" <td>7/27/2020</td>\n",
|
| 535 |
-
" </tr>\n",
|
| 536 |
-
" <tr>\n",
|
| 537 |
-
" <th>...</th>\n",
|
| 538 |
-
" <td>...</td>\n",
|
| 539 |
-
" <td>...</td>\n",
|
| 540 |
-
" <td>...</td>\n",
|
| 541 |
-
" <td>...</td>\n",
|
| 542 |
-
" <td>...</td>\n",
|
| 543 |
-
" <td>...</td>\n",
|
| 544 |
-
" <td>...</td>\n",
|
| 545 |
-
" <td>...</td>\n",
|
| 546 |
-
" <td>...</td>\n",
|
| 547 |
-
" <td>...</td>\n",
|
| 548 |
-
" <td>...</td>\n",
|
| 549 |
-
" <td>...</td>\n",
|
| 550 |
-
" <td>...</td>\n",
|
| 551 |
-
" <td>...</td>\n",
|
| 552 |
-
" <td>...</td>\n",
|
| 553 |
-
" <td>...</td>\n",
|
| 554 |
-
" <td>...</td>\n",
|
| 555 |
-
" <td>...</td>\n",
|
| 556 |
-
" <td>...</td>\n",
|
| 557 |
-
" <td>...</td>\n",
|
| 558 |
-
" <td>...</td>\n",
|
| 559 |
-
" </tr>\n",
|
| 560 |
-
" <tr>\n",
|
| 561 |
-
" <th>619</th>\n",
|
| 562 |
-
" <td>6bf666677588</td>\n",
|
| 563 |
-
" <td>2.80</td>\n",
|
| 564 |
-
" <td>23687.98</td>\n",
|
| 565 |
-
" <td>225.53</td>\n",
|
| 566 |
-
" <td>385.78</td>\n",
|
| 567 |
-
" <td>47.02</td>\n",
|
| 568 |
-
" <td>17.05</td>\n",
|
| 569 |
-
" <td>7.37</td>\n",
|
| 570 |
-
" <td>35.40</td>\n",
|
| 571 |
-
" <td>831.98</td>\n",
|
| 572 |
-
" <td>...</td>\n",
|
| 573 |
-
" <td>113853.10</td>\n",
|
| 574 |
-
" <td>76.47</td>\n",
|
| 575 |
-
" <td>162.43</td>\n",
|
| 576 |
-
" <td>8.92</td>\n",
|
| 577 |
-
" <td>0</td>\n",
|
| 578 |
-
" <td>G</td>\n",
|
| 579 |
-
" <td>B</td>\n",
|
| 580 |
-
" <td>A</td>\n",
|
| 581 |
-
" <td>A</td>\n",
|
| 582 |
-
" <td>12/20/2019</td>\n",
|
| 583 |
-
" </tr>\n",
|
| 584 |
-
" <tr>\n",
|
| 585 |
-
" <th>620</th>\n",
|
| 586 |
-
" <td>4e6477903aa3</td>\n",
|
| 587 |
-
" <td>5.65</td>\n",
|
| 588 |
-
" <td>5118.03</td>\n",
|
| 589 |
-
" <td>1630.33</td>\n",
|
| 590 |
-
" <td>176.64</td>\n",
|
| 591 |
-
" <td>151.55</td>\n",
|
| 592 |
-
" <td>10.58</td>\n",
|
| 593 |
-
" <td>2.68</td>\n",
|
| 594 |
-
" <td>25.15</td>\n",
|
| 595 |
-
" <td>956.36</td>\n",
|
| 596 |
-
" <td>...</td>\n",
|
| 597 |
-
" <td>125353.53</td>\n",
|
| 598 |
-
" <td>49.12</td>\n",
|
| 599 |
-
" <td>34.51</td>\n",
|
| 600 |
-
" <td>15.82</td>\n",
|
| 601 |
-
" <td>1</td>\n",
|
| 602 |
-
" <td>B</td>\n",
|
| 603 |
-
" <td>A</td>\n",
|
| 604 |
-
" <td>A</td>\n",
|
| 605 |
-
" <td>A</td>\n",
|
| 606 |
-
" <td>4/19/2019</td>\n",
|
| 607 |
-
" </tr>\n",
|
| 608 |
-
" <tr>\n",
|
| 609 |
-
" <th>621</th>\n",
|
| 610 |
-
" <td>4e6477903aa3</td>\n",
|
| 611 |
-
" <td>5.65</td>\n",
|
| 612 |
-
" <td>5118.03</td>\n",
|
| 613 |
-
" <td>1630.33</td>\n",
|
| 614 |
-
" <td>176.64</td>\n",
|
| 615 |
-
" <td>151.55</td>\n",
|
| 616 |
-
" <td>10.58</td>\n",
|
| 617 |
-
" <td>2.68</td>\n",
|
| 618 |
-
" <td>25.15</td>\n",
|
| 619 |
-
" <td>956.36</td>\n",
|
| 620 |
-
" <td>...</td>\n",
|
| 621 |
-
" <td>125353.53</td>\n",
|
| 622 |
-
" <td>49.12</td>\n",
|
| 623 |
-
" <td>34.51</td>\n",
|
| 624 |
-
" <td>15.82</td>\n",
|
| 625 |
-
" <td>1</td>\n",
|
| 626 |
-
" <td>D</td>\n",
|
| 627 |
-
" <td>C</td>\n",
|
| 628 |
-
" <td>H</td>\n",
|
| 629 |
-
" <td>B</td>\n",
|
| 630 |
-
" <td>12/31/2019</td>\n",
|
| 631 |
-
" </tr>\n",
|
| 632 |
-
" <tr>\n",
|
| 633 |
-
" <th>622</th>\n",
|
| 634 |
-
" <td>9949a1749e2c</td>\n",
|
| 635 |
-
" <td>3.08</td>\n",
|
| 636 |
-
" <td>5687.86</td>\n",
|
| 637 |
-
" <td>690.00</td>\n",
|
| 638 |
-
" <td>573.70</td>\n",
|
| 639 |
-
" <td>89.60</td>\n",
|
| 640 |
-
" <td>25.03</td>\n",
|
| 641 |
-
" <td>3.85</td>\n",
|
| 642 |
-
" <td>22.61</td>\n",
|
| 643 |
-
" <td>1124.93</td>\n",
|
| 644 |
-
" <td>...</td>\n",
|
| 645 |
-
" <td>2026.66</td>\n",
|
| 646 |
-
" <td>11.16</td>\n",
|
| 647 |
-
" <td>17.13</td>\n",
|
| 648 |
-
" <td>21.33</td>\n",
|
| 649 |
-
" <td>1</td>\n",
|
| 650 |
-
" <td>D</td>\n",
|
| 651 |
-
" <td>C</td>\n",
|
| 652 |
-
" <td>A</td>\n",
|
| 653 |
-
" <td>B</td>\n",
|
| 654 |
-
" <td>4/19/2019</td>\n",
|
| 655 |
-
" </tr>\n",
|
| 656 |
-
" <tr>\n",
|
| 657 |
-
" <th>623</th>\n",
|
| 658 |
-
" <td>9949a1749e2c</td>\n",
|
| 659 |
-
" <td>3.08</td>\n",
|
| 660 |
-
" <td>5687.86</td>\n",
|
| 661 |
-
" <td>690.00</td>\n",
|
| 662 |
-
" <td>573.70</td>\n",
|
| 663 |
-
" <td>89.60</td>\n",
|
| 664 |
-
" <td>25.03</td>\n",
|
| 665 |
-
" <td>3.85</td>\n",
|
| 666 |
-
" <td>22.61</td>\n",
|
| 667 |
-
" <td>1124.93</td>\n",
|
| 668 |
-
" <td>...</td>\n",
|
| 669 |
-
" <td>2026.66</td>\n",
|
| 670 |
-
" <td>11.16</td>\n",
|
| 671 |
-
" <td>17.13</td>\n",
|
| 672 |
-
" <td>21.33</td>\n",
|
| 673 |
-
" <td>1</td>\n",
|
| 674 |
-
" <td>A</td>\n",
|
| 675 |
-
" <td>A</td>\n",
|
| 676 |
-
" <td>B</td>\n",
|
| 677 |
-
" <td>A</td>\n",
|
| 678 |
-
" <td>3/25/2019</td>\n",
|
| 679 |
-
" </tr>\n",
|
| 680 |
-
" </tbody>\n",
|
| 681 |
-
"</table>\n",
|
| 682 |
-
"<p>624 rows × 63 columns</p>\n",
|
| 683 |
-
"</div>"
|
| 684 |
-
],
|
| 685 |
-
"text/plain": [
|
| 686 |
-
" Id AB AF AH AM AR AX AY \\\n",
|
| 687 |
-
"0 d1a9f56adc4a 3.81 12809.52 1084.70 261.90 168.68 35.95 6.13 \n",
|
| 688 |
-
"1 d1a9f56adc4a 3.81 12809.52 1084.70 261.90 168.68 35.95 6.13 \n",
|
| 689 |
-
"2 d1a9f56adc4a 5.80 6079.58 685.73 78.97 77.56 34.61 0.47 \n",
|
| 690 |
-
"3 d1a9f56adc4a 5.80 6079.58 685.73 78.97 77.56 34.61 0.47 \n",
|
| 691 |
-
"4 b874e25c20aa 5.93 12025.87 1306.31 219.60 144.74 18.83 8.25 \n",
|
| 692 |
-
".. ... ... ... ... ... ... ... ... \n",
|
| 693 |
-
"619 6bf666677588 2.80 23687.98 225.53 385.78 47.02 17.05 7.37 \n",
|
| 694 |
-
"620 4e6477903aa3 5.65 5118.03 1630.33 176.64 151.55 10.58 2.68 \n",
|
| 695 |
-
"621 4e6477903aa3 5.65 5118.03 1630.33 176.64 151.55 10.58 2.68 \n",
|
| 696 |
-
"622 9949a1749e2c 3.08 5687.86 690.00 573.70 89.60 25.03 3.85 \n",
|
| 697 |
-
"623 9949a1749e2c 3.08 5687.86 690.00 573.70 89.60 25.03 3.85 \n",
|
| 698 |
-
"\n",
|
| 699 |
-
" AZ BC ... GF GH GI GL Class Alpha Beta \\\n",
|
| 700 |
-
"0 13.42 87.12 ... 81425.75 42.81 83.53 6.02 1 D B \n",
|
| 701 |
-
"1 13.42 87.12 ... 81425.75 42.81 83.53 6.02 1 A B \n",
|
| 702 |
-
"2 32.46 1115.36 ... 102436.56 35.03 111.92 4.96 0 D B \n",
|
| 703 |
-
"3 32.46 1115.36 ... 102436.56 35.03 111.92 4.96 0 A B \n",
|
| 704 |
-
"4 27.70 580.42 ... 110162.30 17.34 29.21 19.07 1 B C \n",
|
| 705 |
-
".. ... ... ... ... ... ... ... ... ... ... \n",
|
| 706 |
-
"619 35.40 831.98 ... 113853.10 76.47 162.43 8.92 0 G B \n",
|
| 707 |
-
"620 25.15 956.36 ... 125353.53 49.12 34.51 15.82 1 B A \n",
|
| 708 |
-
"621 25.15 956.36 ... 125353.53 49.12 34.51 15.82 1 D C \n",
|
| 709 |
-
"622 22.61 1124.93 ... 2026.66 11.16 17.13 21.33 1 D C \n",
|
| 710 |
-
"623 22.61 1124.93 ... 2026.66 11.16 17.13 21.33 1 A A \n",
|
| 711 |
-
"\n",
|
| 712 |
-
" Gamma Delta Epsilon \n",
|
| 713 |
-
"0 E C 9/10/2020 \n",
|
| 714 |
-
"1 H B 3/11/2019 \n",
|
| 715 |
-
"2 E C 9/10/2020 \n",
|
| 716 |
-
"3 H B 3/11/2019 \n",
|
| 717 |
-
"4 E D 7/27/2020 \n",
|
| 718 |
-
".. ... ... ... \n",
|
| 719 |
-
"619 A A 12/20/2019 \n",
|
| 720 |
-
"620 A A 4/19/2019 \n",
|
| 721 |
-
"621 H B 12/31/2019 \n",
|
| 722 |
-
"622 A B 4/19/2019 \n",
|
| 723 |
-
"623 B A 3/25/2019 \n",
|
| 724 |
-
"\n",
|
| 725 |
-
"[624 rows x 63 columns]"
|
| 726 |
-
]
|
| 727 |
-
},
|
| 728 |
-
"execution_count": 5,
|
| 729 |
-
"metadata": {},
|
| 730 |
-
"output_type": "execute_result"
|
| 731 |
-
}
|
| 732 |
-
],
|
| 733 |
"source": [
|
| 734 |
"train_df"
|
| 735 |
]
|
| 736 |
},
|
| 737 |
{
|
| 738 |
"cell_type": "code",
|
| 739 |
-
"execution_count":
|
| 740 |
"metadata": {
|
| 741 |
"execution": {
|
| 742 |
"iopub.execute_input": "2023-07-23T04:58:48.649931Z",
|
|
@@ -746,31 +184,14 @@
|
|
| 746 |
"shell.execute_reply.started": "2023-07-23T04:58:48.649901Z"
|
| 747 |
}
|
| 748 |
},
|
| 749 |
-
"outputs": [
|
| 750 |
-
{
|
| 751 |
-
"data": {
|
| 752 |
-
"text/plain": [
|
| 753 |
-
"Index(['Id', 'AB', 'AF', 'AH', 'AM', 'AR', 'AX', 'AY', 'AZ', 'BC', 'BD ', 'BN',\n",
|
| 754 |
-
" 'BP', 'BQ', 'BR', 'BZ', 'CB', 'CC', 'CD ', 'CF', 'CH', 'CL', 'CR', 'CS',\n",
|
| 755 |
-
" 'CU', 'CW ', 'DA', 'DE', 'DF', 'DH', 'DI', 'DL', 'DN', 'DU', 'DV', 'DY',\n",
|
| 756 |
-
" 'EB', 'EE', 'EG', 'EH', 'EJ', 'EL', 'EP', 'EU', 'FC', 'FD ', 'FE', 'FI',\n",
|
| 757 |
-
" 'FL', 'FR', 'FS', 'GB', 'GE', 'GF', 'GH', 'GI', 'GL', 'Class', 'Alpha',\n",
|
| 758 |
-
" 'Beta', 'Gamma', 'Delta', 'Epsilon'],\n",
|
| 759 |
-
" dtype='object')"
|
| 760 |
-
]
|
| 761 |
-
},
|
| 762 |
-
"execution_count": 6,
|
| 763 |
-
"metadata": {},
|
| 764 |
-
"output_type": "execute_result"
|
| 765 |
-
}
|
| 766 |
-
],
|
| 767 |
"source": [
|
| 768 |
"train_df.columns"
|
| 769 |
]
|
| 770 |
},
|
| 771 |
{
|
| 772 |
"cell_type": "code",
|
| 773 |
-
"execution_count":
|
| 774 |
"metadata": {
|
| 775 |
"execution": {
|
| 776 |
"iopub.execute_input": "2023-07-23T04:58:48.660111Z",
|
|
@@ -789,7 +210,7 @@
|
|
| 789 |
},
|
| 790 |
{
|
| 791 |
"cell_type": "code",
|
| 792 |
-
"execution_count":
|
| 793 |
"metadata": {
|
| 794 |
"execution": {
|
| 795 |
"iopub.execute_input": "2023-07-23T04:58:48.676200Z",
|
|
@@ -799,305 +220,14 @@
|
|
| 799 |
"shell.execute_reply.started": "2023-07-23T04:58:48.676155Z"
|
| 800 |
}
|
| 801 |
},
|
| 802 |
-
"outputs": [
|
| 803 |
-
{
|
| 804 |
-
"data": {
|
| 805 |
-
"text/html": [
|
| 806 |
-
"<div>\n",
|
| 807 |
-
"<style scoped>\n",
|
| 808 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 809 |
-
" vertical-align: middle;\n",
|
| 810 |
-
" }\n",
|
| 811 |
-
"\n",
|
| 812 |
-
" .dataframe tbody tr th {\n",
|
| 813 |
-
" vertical-align: top;\n",
|
| 814 |
-
" }\n",
|
| 815 |
-
"\n",
|
| 816 |
-
" .dataframe thead th {\n",
|
| 817 |
-
" text-align: right;\n",
|
| 818 |
-
" }\n",
|
| 819 |
-
"</style>\n",
|
| 820 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 821 |
-
" <thead>\n",
|
| 822 |
-
" <tr style=\"text-align: right;\">\n",
|
| 823 |
-
" <th></th>\n",
|
| 824 |
-
" <th>AB</th>\n",
|
| 825 |
-
" <th>AF</th>\n",
|
| 826 |
-
" <th>AH</th>\n",
|
| 827 |
-
" <th>AM</th>\n",
|
| 828 |
-
" <th>AR</th>\n",
|
| 829 |
-
" <th>AX</th>\n",
|
| 830 |
-
" <th>AY</th>\n",
|
| 831 |
-
" <th>AZ</th>\n",
|
| 832 |
-
" <th>BC</th>\n",
|
| 833 |
-
" <th>BD</th>\n",
|
| 834 |
-
" <th>...</th>\n",
|
| 835 |
-
" <th>FL</th>\n",
|
| 836 |
-
" <th>FR</th>\n",
|
| 837 |
-
" <th>FS</th>\n",
|
| 838 |
-
" <th>GB</th>\n",
|
| 839 |
-
" <th>GE</th>\n",
|
| 840 |
-
" <th>GF</th>\n",
|
| 841 |
-
" <th>GH</th>\n",
|
| 842 |
-
" <th>GI</th>\n",
|
| 843 |
-
" <th>GL</th>\n",
|
| 844 |
-
" <th>Class</th>\n",
|
| 845 |
-
" </tr>\n",
|
| 846 |
-
" </thead>\n",
|
| 847 |
-
" <tbody>\n",
|
| 848 |
-
" <tr>\n",
|
| 849 |
-
" <th>count</th>\n",
|
| 850 |
-
" <td>624.000000</td>\n",
|
| 851 |
-
" <td>624.000000</td>\n",
|
| 852 |
-
" <td>624.000000</td>\n",
|
| 853 |
-
" <td>624.000000</td>\n",
|
| 854 |
-
" <td>624.000000</td>\n",
|
| 855 |
-
" <td>624.000000</td>\n",
|
| 856 |
-
" <td>624.000000</td>\n",
|
| 857 |
-
" <td>624.000000</td>\n",
|
| 858 |
-
" <td>624.000000</td>\n",
|
| 859 |
-
" <td>624.000000</td>\n",
|
| 860 |
-
" <td>...</td>\n",
|
| 861 |
-
" <td>622.000000</td>\n",
|
| 862 |
-
" <td>624.000000</td>\n",
|
| 863 |
-
" <td>624.000000</td>\n",
|
| 864 |
-
" <td>624.000000</td>\n",
|
| 865 |
-
" <td>624.000000</td>\n",
|
| 866 |
-
" <td>624.000000</td>\n",
|
| 867 |
-
" <td>624.000000</td>\n",
|
| 868 |
-
" <td>624.000000</td>\n",
|
| 869 |
-
" <td>622.000000</td>\n",
|
| 870 |
-
" <td>624.000000</td>\n",
|
| 871 |
-
" </tr>\n",
|
| 872 |
-
" <tr>\n",
|
| 873 |
-
" <th>mean</th>\n",
|
| 874 |
-
" <td>3.331410</td>\n",
|
| 875 |
-
" <td>15023.696474</td>\n",
|
| 876 |
-
" <td>972.617708</td>\n",
|
| 877 |
-
" <td>318.833654</td>\n",
|
| 878 |
-
" <td>90.042917</td>\n",
|
| 879 |
-
" <td>18.377372</td>\n",
|
| 880 |
-
" <td>5.560593</td>\n",
|
| 881 |
-
" <td>20.193718</td>\n",
|
| 882 |
-
" <td>720.309952</td>\n",
|
| 883 |
-
" <td>28718.190561</td>\n",
|
| 884 |
-
" <td>...</td>\n",
|
| 885 |
-
" <td>67.503842</td>\n",
|
| 886 |
-
" <td>630.024744</td>\n",
|
| 887 |
-
" <td>15.683365</td>\n",
|
| 888 |
-
" <td>66.341186</td>\n",
|
| 889 |
-
" <td>787.298157</td>\n",
|
| 890 |
-
" <td>71318.176202</td>\n",
|
| 891 |
-
" <td>43.711234</td>\n",
|
| 892 |
-
" <td>102.983349</td>\n",
|
| 893 |
-
" <td>11.356543</td>\n",
|
| 894 |
-
" <td>0.496795</td>\n",
|
| 895 |
-
" </tr>\n",
|
| 896 |
-
" <tr>\n",
|
| 897 |
-
" <th>std</th>\n",
|
| 898 |
-
" <td>1.784369</td>\n",
|
| 899 |
-
" <td>8099.910282</td>\n",
|
| 900 |
-
" <td>501.276008</td>\n",
|
| 901 |
-
" <td>182.267948</td>\n",
|
| 902 |
-
" <td>49.079931</td>\n",
|
| 903 |
-
" <td>10.861119</td>\n",
|
| 904 |
-
" <td>3.022239</td>\n",
|
| 905 |
-
" <td>10.518280</td>\n",
|
| 906 |
-
" <td>409.346413</td>\n",
|
| 907 |
-
" <td>14575.219789</td>\n",
|
| 908 |
-
" <td>...</td>\n",
|
| 909 |
-
" <td>39.551407</td>\n",
|
| 910 |
-
" <td>351.153355</td>\n",
|
| 911 |
-
" <td>9.269900</td>\n",
|
| 912 |
-
" <td>38.620867</td>\n",
|
| 913 |
-
" <td>402.352248</td>\n",
|
| 914 |
-
" <td>40659.240539</td>\n",
|
| 915 |
-
" <td>21.527950</td>\n",
|
| 916 |
-
" <td>55.244275</td>\n",
|
| 917 |
-
" <td>6.138769</td>\n",
|
| 918 |
-
" <td>0.500391</td>\n",
|
| 919 |
-
" </tr>\n",
|
| 920 |
-
" <tr>\n",
|
| 921 |
-
" <th>min</th>\n",
|
| 922 |
-
" <td>0.110000</td>\n",
|
| 923 |
-
" <td>444.140000</td>\n",
|
| 924 |
-
" <td>86.660000</td>\n",
|
| 925 |
-
" <td>5.670000</td>\n",
|
| 926 |
-
" <td>8.450000</td>\n",
|
| 927 |
-
" <td>0.730000</td>\n",
|
| 928 |
-
" <td>0.040000</td>\n",
|
| 929 |
-
" <td>3.420000</td>\n",
|
| 930 |
-
" <td>6.220000</td>\n",
|
| 931 |
-
" <td>1788.080000</td>\n",
|
| 932 |
-
" <td>...</td>\n",
|
| 933 |
-
" <td>0.490000</td>\n",
|
| 934 |
-
" <td>1.530000</td>\n",
|
| 935 |
-
" <td>0.170000</td>\n",
|
| 936 |
-
" <td>4.290000</td>\n",
|
| 937 |
-
" <td>73.610000</td>\n",
|
| 938 |
-
" <td>47.440000</td>\n",
|
| 939 |
-
" <td>9.630000</td>\n",
|
| 940 |
-
" <td>1.170000</td>\n",
|
| 941 |
-
" <td>0.150000</td>\n",
|
| 942 |
-
" <td>0.000000</td>\n",
|
| 943 |
-
" </tr>\n",
|
| 944 |
-
" <tr>\n",
|
| 945 |
-
" <th>25%</th>\n",
|
| 946 |
-
" <td>1.930000</td>\n",
|
| 947 |
-
" <td>8020.057500</td>\n",
|
| 948 |
-
" <td>633.655000</td>\n",
|
| 949 |
-
" <td>166.800000</td>\n",
|
| 950 |
-
" <td>45.900000</td>\n",
|
| 951 |
-
" <td>8.280000</td>\n",
|
| 952 |
-
" <td>2.745000</td>\n",
|
| 953 |
-
" <td>10.080000</td>\n",
|
| 954 |
-
" <td>389.367500</td>\n",
|
| 955 |
-
" <td>16813.697500</td>\n",
|
| 956 |
-
" <td>...</td>\n",
|
| 957 |
-
" <td>32.460000</td>\n",
|
| 958 |
-
" <td>352.037500</td>\n",
|
| 959 |
-
" <td>7.927500</td>\n",
|
| 960 |
-
" <td>33.160000</td>\n",
|
| 961 |
-
" <td>438.525000</td>\n",
|
| 962 |
-
" <td>35309.655000</td>\n",
|
| 963 |
-
" <td>23.800000</td>\n",
|
| 964 |
-
" <td>58.370000</td>\n",
|
| 965 |
-
" <td>6.390000</td>\n",
|
| 966 |
-
" <td>0.000000</td>\n",
|
| 967 |
-
" </tr>\n",
|
| 968 |
-
" <tr>\n",
|
| 969 |
-
" <th>50%</th>\n",
|
| 970 |
-
" <td>3.450000</td>\n",
|
| 971 |
-
" <td>15299.995000</td>\n",
|
| 972 |
-
" <td>953.360000</td>\n",
|
| 973 |
-
" <td>320.825000</td>\n",
|
| 974 |
-
" <td>87.850000</td>\n",
|
| 975 |
-
" <td>18.425000</td>\n",
|
| 976 |
-
" <td>5.690000</td>\n",
|
| 977 |
-
" <td>19.970000</td>\n",
|
| 978 |
-
" <td>721.745000</td>\n",
|
| 979 |
-
" <td>28466.135000</td>\n",
|
| 980 |
-
" <td>...</td>\n",
|
| 981 |
-
" <td>69.860000</td>\n",
|
| 982 |
-
" <td>629.570000</td>\n",
|
| 983 |
-
" <td>15.010000</td>\n",
|
| 984 |
-
" <td>62.775000</td>\n",
|
| 985 |
-
" <td>793.775000</td>\n",
|
| 986 |
-
" <td>75004.455000</td>\n",
|
| 987 |
-
" <td>42.740000</td>\n",
|
| 988 |
-
" <td>106.140000</td>\n",
|
| 989 |
-
" <td>11.810000</td>\n",
|
| 990 |
-
" <td>0.000000</td>\n",
|
| 991 |
-
" </tr>\n",
|
| 992 |
-
" <tr>\n",
|
| 993 |
-
" <th>75%</th>\n",
|
| 994 |
-
" <td>4.822500</td>\n",
|
| 995 |
-
" <td>21668.440000</td>\n",
|
| 996 |
-
" <td>1355.027500</td>\n",
|
| 997 |
-
" <td>471.287500</td>\n",
|
| 998 |
-
" <td>132.477500</td>\n",
|
| 999 |
-
" <td>27.870000</td>\n",
|
| 1000 |
-
" <td>8.262500</td>\n",
|
| 1001 |
-
" <td>29.080000</td>\n",
|
| 1002 |
-
" <td>1064.500000</td>\n",
|
| 1003 |
-
" <td>41966.227500</td>\n",
|
| 1004 |
-
" <td>...</td>\n",
|
| 1005 |
-
" <td>100.925000</td>\n",
|
| 1006 |
-
" <td>950.790000</td>\n",
|
| 1007 |
-
" <td>24.000000</td>\n",
|
| 1008 |
-
" <td>101.565000</td>\n",
|
| 1009 |
-
" <td>1124.700000</td>\n",
|
| 1010 |
-
" <td>106254.267500</td>\n",
|
| 1011 |
-
" <td>63.340000</td>\n",
|
| 1012 |
-
" <td>150.492500</td>\n",
|
| 1013 |
-
" <td>16.187500</td>\n",
|
| 1014 |
-
" <td>1.000000</td>\n",
|
| 1015 |
-
" </tr>\n",
|
| 1016 |
-
" <tr>\n",
|
| 1017 |
-
" <th>max</th>\n",
|
| 1018 |
-
" <td>6.130000</td>\n",
|
| 1019 |
-
" <td>28574.960000</td>\n",
|
| 1020 |
-
" <td>1901.600000</td>\n",
|
| 1021 |
-
" <td>629.650000</td>\n",
|
| 1022 |
-
" <td>177.880000</td>\n",
|
| 1023 |
-
" <td>38.050000</td>\n",
|
| 1024 |
-
" <td>10.310000</td>\n",
|
| 1025 |
-
" <td>38.890000</td>\n",
|
| 1026 |
-
" <td>1457.100000</td>\n",
|
| 1027 |
-
" <td>53048.600000</td>\n",
|
| 1028 |
-
" <td>...</td>\n",
|
| 1029 |
-
" <td>136.990000</td>\n",
|
| 1030 |
-
" <td>1234.980000</td>\n",
|
| 1031 |
-
" <td>31.330000</td>\n",
|
| 1032 |
-
" <td>135.750000</td>\n",
|
| 1033 |
-
" <td>1495.470000</td>\n",
|
| 1034 |
-
" <td>143536.700000</td>\n",
|
| 1035 |
-
" <td>81.160000</td>\n",
|
| 1036 |
-
" <td>191.150000</td>\n",
|
| 1037 |
-
" <td>21.830000</td>\n",
|
| 1038 |
-
" <td>1.000000</td>\n",
|
| 1039 |
-
" </tr>\n",
|
| 1040 |
-
" </tbody>\n",
|
| 1041 |
-
"</table>\n",
|
| 1042 |
-
"<p>8 rows × 56 columns</p>\n",
|
| 1043 |
-
"</div>"
|
| 1044 |
-
],
|
| 1045 |
-
"text/plain": [
|
| 1046 |
-
" AB AF AH AM AR \\\n",
|
| 1047 |
-
"count 624.000000 624.000000 624.000000 624.000000 624.000000 \n",
|
| 1048 |
-
"mean 3.331410 15023.696474 972.617708 318.833654 90.042917 \n",
|
| 1049 |
-
"std 1.784369 8099.910282 501.276008 182.267948 49.079931 \n",
|
| 1050 |
-
"min 0.110000 444.140000 86.660000 5.670000 8.450000 \n",
|
| 1051 |
-
"25% 1.930000 8020.057500 633.655000 166.800000 45.900000 \n",
|
| 1052 |
-
"50% 3.450000 15299.995000 953.360000 320.825000 87.850000 \n",
|
| 1053 |
-
"75% 4.822500 21668.440000 1355.027500 471.287500 132.477500 \n",
|
| 1054 |
-
"max 6.130000 28574.960000 1901.600000 629.650000 177.880000 \n",
|
| 1055 |
-
"\n",
|
| 1056 |
-
" AX AY AZ BC BD ... \\\n",
|
| 1057 |
-
"count 624.000000 624.000000 624.000000 624.000000 624.000000 ... \n",
|
| 1058 |
-
"mean 18.377372 5.560593 20.193718 720.309952 28718.190561 ... \n",
|
| 1059 |
-
"std 10.861119 3.022239 10.518280 409.346413 14575.219789 ... \n",
|
| 1060 |
-
"min 0.730000 0.040000 3.420000 6.220000 1788.080000 ... \n",
|
| 1061 |
-
"25% 8.280000 2.745000 10.080000 389.367500 16813.697500 ... \n",
|
| 1062 |
-
"50% 18.425000 5.690000 19.970000 721.745000 28466.135000 ... \n",
|
| 1063 |
-
"75% 27.870000 8.262500 29.080000 1064.500000 41966.227500 ... \n",
|
| 1064 |
-
"max 38.050000 10.310000 38.890000 1457.100000 53048.600000 ... \n",
|
| 1065 |
-
"\n",
|
| 1066 |
-
" FL FR FS GB GE \\\n",
|
| 1067 |
-
"count 622.000000 624.000000 624.000000 624.000000 624.000000 \n",
|
| 1068 |
-
"mean 67.503842 630.024744 15.683365 66.341186 787.298157 \n",
|
| 1069 |
-
"std 39.551407 351.153355 9.269900 38.620867 402.352248 \n",
|
| 1070 |
-
"min 0.490000 1.530000 0.170000 4.290000 73.610000 \n",
|
| 1071 |
-
"25% 32.460000 352.037500 7.927500 33.160000 438.525000 \n",
|
| 1072 |
-
"50% 69.860000 629.570000 15.010000 62.775000 793.775000 \n",
|
| 1073 |
-
"75% 100.925000 950.790000 24.000000 101.565000 1124.700000 \n",
|
| 1074 |
-
"max 136.990000 1234.980000 31.330000 135.750000 1495.470000 \n",
|
| 1075 |
-
"\n",
|
| 1076 |
-
" GF GH GI GL Class \n",
|
| 1077 |
-
"count 624.000000 624.000000 624.000000 622.000000 624.000000 \n",
|
| 1078 |
-
"mean 71318.176202 43.711234 102.983349 11.356543 0.496795 \n",
|
| 1079 |
-
"std 40659.240539 21.527950 55.244275 6.138769 0.500391 \n",
|
| 1080 |
-
"min 47.440000 9.630000 1.170000 0.150000 0.000000 \n",
|
| 1081 |
-
"25% 35309.655000 23.800000 58.370000 6.390000 0.000000 \n",
|
| 1082 |
-
"50% 75004.455000 42.740000 106.140000 11.810000 0.000000 \n",
|
| 1083 |
-
"75% 106254.267500 63.340000 150.492500 16.187500 1.000000 \n",
|
| 1084 |
-
"max 143536.700000 81.160000 191.150000 21.830000 1.000000 \n",
|
| 1085 |
-
"\n",
|
| 1086 |
-
"[8 rows x 56 columns]"
|
| 1087 |
-
]
|
| 1088 |
-
},
|
| 1089 |
-
"execution_count": 8,
|
| 1090 |
-
"metadata": {},
|
| 1091 |
-
"output_type": "execute_result"
|
| 1092 |
-
}
|
| 1093 |
-
],
|
| 1094 |
"source": [
|
| 1095 |
"train_df.describe()"
|
| 1096 |
]
|
| 1097 |
},
|
| 1098 |
{
|
| 1099 |
"cell_type": "code",
|
| 1100 |
-
"execution_count":
|
| 1101 |
"metadata": {
|
| 1102 |
"execution": {
|
| 1103 |
"iopub.execute_input": "2023-07-23T04:58:48.834135Z",
|
|
@@ -1107,28 +237,14 @@
|
|
| 1107 |
"shell.execute_reply.started": "2023-07-23T04:58:48.834104Z"
|
| 1108 |
}
|
| 1109 |
},
|
| 1110 |
-
"outputs": [
|
| 1111 |
-
{
|
| 1112 |
-
"name": "stdout",
|
| 1113 |
-
"output_type": "stream",
|
| 1114 |
-
"text": [
|
| 1115 |
-
"Index(['AB', 'AF', 'AH', 'AM', 'AR', 'AX', 'AY', 'AZ', 'BC', 'BD ', 'BN', 'BP',\n",
|
| 1116 |
-
" 'BQ', 'BR', 'BZ', 'CB', 'CC', 'CD ', 'CF', 'CH', 'CL', 'CR', 'CS', 'CU',\n",
|
| 1117 |
-
" 'CW ', 'DA', 'DE', 'DF', 'DH', 'DI', 'DL', 'DN', 'DU', 'DV', 'DY', 'EB',\n",
|
| 1118 |
-
" 'EE', 'EG', 'EH', 'EJ', 'EL', 'EP', 'EU', 'FC', 'FD ', 'FE', 'FI', 'FL',\n",
|
| 1119 |
-
" 'FR', 'FS', 'GB', 'GE', 'GF', 'GH', 'GI', 'GL', 'Class', 'Alpha',\n",
|
| 1120 |
-
" 'Beta', 'Gamma', 'Delta', 'Epsilon'],\n",
|
| 1121 |
-
" dtype='object')\n"
|
| 1122 |
-
]
|
| 1123 |
-
}
|
| 1124 |
-
],
|
| 1125 |
"source": [
|
| 1126 |
"print(train_df.columns)"
|
| 1127 |
]
|
| 1128 |
},
|
| 1129 |
{
|
| 1130 |
"cell_type": "code",
|
| 1131 |
-
"execution_count":
|
| 1132 |
"metadata": {
|
| 1133 |
"execution": {
|
| 1134 |
"iopub.execute_input": "2023-07-23T05:05:03.040447Z",
|
|
@@ -1159,7 +275,7 @@
|
|
| 1159 |
},
|
| 1160 |
{
|
| 1161 |
"cell_type": "code",
|
| 1162 |
-
"execution_count":
|
| 1163 |
"metadata": {
|
| 1164 |
"execution": {
|
| 1165 |
"iopub.execute_input": "2023-07-23T05:09:17.792882Z",
|
|
@@ -1179,7 +295,7 @@
|
|
| 1179 |
},
|
| 1180 |
{
|
| 1181 |
"cell_type": "code",
|
| 1182 |
-
"execution_count":
|
| 1183 |
"metadata": {
|
| 1184 |
"execution": {
|
| 1185 |
"iopub.execute_input": "2023-07-23T05:09:35.652640Z",
|
|
|
|
| 106 |
},
|
| 107 |
{
|
| 108 |
"cell_type": "code",
|
| 109 |
+
"execution_count": null,
|
| 110 |
"metadata": {
|
| 111 |
"execution": {
|
| 112 |
"iopub.execute_input": "2023-07-23T04:58:48.511496Z",
|
|
|
|
| 116 |
"shell.execute_reply.started": "2023-07-23T04:58:48.511450Z"
|
| 117 |
}
|
| 118 |
},
|
| 119 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
"source": [
|
| 121 |
"train_df.head()"
|
| 122 |
]
|
| 123 |
},
|
| 124 |
{
|
| 125 |
"cell_type": "code",
|
| 126 |
+
"execution_count": 3,
|
| 127 |
"metadata": {
|
| 128 |
"execution": {
|
| 129 |
"iopub.execute_input": "2023-07-23T04:58:48.542550Z",
|
|
|
|
| 157 |
},
|
| 158 |
{
|
| 159 |
"cell_type": "code",
|
| 160 |
+
"execution_count": null,
|
| 161 |
"metadata": {
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
"source": [
|
| 172 |
"train_df"
|
| 173 |
]
|
| 174 |
},
|
| 175 |
{
|
| 176 |
"cell_type": "code",
|
| 177 |
+
"execution_count": null,
|
| 178 |
"metadata": {
|
| 179 |
"execution": {
|
| 180 |
"iopub.execute_input": "2023-07-23T04:58:48.649931Z",
|
|
|
|
| 184 |
"shell.execute_reply.started": "2023-07-23T04:58:48.649901Z"
|
| 185 |
}
|
| 186 |
},
|
| 187 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
"source": [
|
| 189 |
"train_df.columns"
|
| 190 |
]
|
| 191 |
},
|
| 192 |
{
|
| 193 |
"cell_type": "code",
|
| 194 |
+
"execution_count": 4,
|
| 195 |
"metadata": {
|
| 196 |
"execution": {
|
| 197 |
"iopub.execute_input": "2023-07-23T04:58:48.660111Z",
|
|
|
|
| 210 |
},
|
| 211 |
{
|
| 212 |
"cell_type": "code",
|
| 213 |
+
"execution_count": null,
|
| 214 |
"metadata": {
|
| 215 |
"execution": {
|
| 216 |
"iopub.execute_input": "2023-07-23T04:58:48.676200Z",
|
|
|
|
| 220 |
"shell.execute_reply.started": "2023-07-23T04:58:48.676155Z"
|
| 221 |
}
|
| 222 |
},
|
| 223 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
"source": [
|
| 225 |
"train_df.describe()"
|
| 226 |
]
|
| 227 |
},
|
| 228 |
{
|
| 229 |
"cell_type": "code",
|
| 230 |
+
"execution_count": null,
|
| 231 |
"metadata": {
|
| 232 |
"execution": {
|
| 233 |
"iopub.execute_input": "2023-07-23T04:58:48.834135Z",
|
|
|
|
| 237 |
"shell.execute_reply.started": "2023-07-23T04:58:48.834104Z"
|
| 238 |
}
|
| 239 |
},
|
| 240 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
"source": [
|
| 242 |
"print(train_df.columns)"
|
| 243 |
]
|
| 244 |
},
|
| 245 |
{
|
| 246 |
"cell_type": "code",
|
| 247 |
+
"execution_count": 5,
|
| 248 |
"metadata": {
|
| 249 |
"execution": {
|
| 250 |
"iopub.execute_input": "2023-07-23T05:05:03.040447Z",
|
|
|
|
| 275 |
},
|
| 276 |
{
|
| 277 |
"cell_type": "code",
|
| 278 |
+
"execution_count": 6,
|
| 279 |
"metadata": {
|
| 280 |
"execution": {
|
| 281 |
"iopub.execute_input": "2023-07-23T05:09:17.792882Z",
|
|
|
|
| 295 |
},
|
| 296 |
{
|
| 297 |
"cell_type": "code",
|
| 298 |
+
"execution_count": 7,
|
| 299 |
"metadata": {
|
| 300 |
"execution": {
|
| 301 |
"iopub.execute_input": "2023-07-23T05:09:35.652640Z",
|
benchmark/sklearn_3/sklearn_3_reproduced.ipynb
CHANGED
|
@@ -106,7 +106,7 @@
|
|
| 106 |
},
|
| 107 |
{
|
| 108 |
"cell_type": "code",
|
| 109 |
-
"execution_count":
|
| 110 |
"metadata": {
|
| 111 |
"execution": {
|
| 112 |
"iopub.execute_input": "2023-07-23T04:58:48.511496Z",
|
|
@@ -116,214 +116,14 @@
|
|
| 116 |
"shell.execute_reply.started": "2023-07-23T04:58:48.511450Z"
|
| 117 |
}
|
| 118 |
},
|
| 119 |
-
"outputs": [
|
| 120 |
-
{
|
| 121 |
-
"data": {
|
| 122 |
-
"text/html": [
|
| 123 |
-
"<div>\n",
|
| 124 |
-
"<style scoped>\n",
|
| 125 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 126 |
-
" vertical-align: middle;\n",
|
| 127 |
-
" }\n",
|
| 128 |
-
"\n",
|
| 129 |
-
" .dataframe tbody tr th {\n",
|
| 130 |
-
" vertical-align: top;\n",
|
| 131 |
-
" }\n",
|
| 132 |
-
"\n",
|
| 133 |
-
" .dataframe thead th {\n",
|
| 134 |
-
" text-align: right;\n",
|
| 135 |
-
" }\n",
|
| 136 |
-
"</style>\n",
|
| 137 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 138 |
-
" <thead>\n",
|
| 139 |
-
" <tr style=\"text-align: right;\">\n",
|
| 140 |
-
" <th></th>\n",
|
| 141 |
-
" <th>Id</th>\n",
|
| 142 |
-
" <th>AB</th>\n",
|
| 143 |
-
" <th>AF</th>\n",
|
| 144 |
-
" <th>AH</th>\n",
|
| 145 |
-
" <th>AM</th>\n",
|
| 146 |
-
" <th>AR</th>\n",
|
| 147 |
-
" <th>AX</th>\n",
|
| 148 |
-
" <th>AY</th>\n",
|
| 149 |
-
" <th>AZ</th>\n",
|
| 150 |
-
" <th>BC</th>\n",
|
| 151 |
-
" <th>...</th>\n",
|
| 152 |
-
" <th>FL</th>\n",
|
| 153 |
-
" <th>FR</th>\n",
|
| 154 |
-
" <th>FS</th>\n",
|
| 155 |
-
" <th>GB</th>\n",
|
| 156 |
-
" <th>GE</th>\n",
|
| 157 |
-
" <th>GF</th>\n",
|
| 158 |
-
" <th>GH</th>\n",
|
| 159 |
-
" <th>GI</th>\n",
|
| 160 |
-
" <th>GL</th>\n",
|
| 161 |
-
" <th>Class</th>\n",
|
| 162 |
-
" </tr>\n",
|
| 163 |
-
" </thead>\n",
|
| 164 |
-
" <tbody>\n",
|
| 165 |
-
" <tr>\n",
|
| 166 |
-
" <th>0</th>\n",
|
| 167 |
-
" <td>e6aa6fa49abd</td>\n",
|
| 168 |
-
" <td>4.43</td>\n",
|
| 169 |
-
" <td>23067.30</td>\n",
|
| 170 |
-
" <td>344.36</td>\n",
|
| 171 |
-
" <td>586.33</td>\n",
|
| 172 |
-
" <td>49.59</td>\n",
|
| 173 |
-
" <td>14.05</td>\n",
|
| 174 |
-
" <td>1.13</td>\n",
|
| 175 |
-
" <td>34.60</td>\n",
|
| 176 |
-
" <td>1205.17</td>\n",
|
| 177 |
-
" <td>...</td>\n",
|
| 178 |
-
" <td>124.56</td>\n",
|
| 179 |
-
" <td>1219.22</td>\n",
|
| 180 |
-
" <td>16.20</td>\n",
|
| 181 |
-
" <td>134.13</td>\n",
|
| 182 |
-
" <td>1174.76</td>\n",
|
| 183 |
-
" <td>72861.37</td>\n",
|
| 184 |
-
" <td>17.67</td>\n",
|
| 185 |
-
" <td>83.87</td>\n",
|
| 186 |
-
" <td>16.54</td>\n",
|
| 187 |
-
" <td>0</td>\n",
|
| 188 |
-
" </tr>\n",
|
| 189 |
-
" <tr>\n",
|
| 190 |
-
" <th>1</th>\n",
|
| 191 |
-
" <td>a633a258eeed</td>\n",
|
| 192 |
-
" <td>2.95</td>\n",
|
| 193 |
-
" <td>18930.84</td>\n",
|
| 194 |
-
" <td>1513.23</td>\n",
|
| 195 |
-
" <td>129.03</td>\n",
|
| 196 |
-
" <td>148.21</td>\n",
|
| 197 |
-
" <td>27.22</td>\n",
|
| 198 |
-
" <td>6.94</td>\n",
|
| 199 |
-
" <td>7.85</td>\n",
|
| 200 |
-
" <td>1339.67</td>\n",
|
| 201 |
-
" <td>...</td>\n",
|
| 202 |
-
" <td>33.68</td>\n",
|
| 203 |
-
" <td>1214.14</td>\n",
|
| 204 |
-
" <td>17.09</td>\n",
|
| 205 |
-
" <td>76.82</td>\n",
|
| 206 |
-
" <td>179.83</td>\n",
|
| 207 |
-
" <td>35123.99</td>\n",
|
| 208 |
-
" <td>34.14</td>\n",
|
| 209 |
-
" <td>123.68</td>\n",
|
| 210 |
-
" <td>2.81</td>\n",
|
| 211 |
-
" <td>1</td>\n",
|
| 212 |
-
" </tr>\n",
|
| 213 |
-
" <tr>\n",
|
| 214 |
-
" <th>2</th>\n",
|
| 215 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 216 |
-
" <td>3.81</td>\n",
|
| 217 |
-
" <td>12809.52</td>\n",
|
| 218 |
-
" <td>1084.70</td>\n",
|
| 219 |
-
" <td>261.90</td>\n",
|
| 220 |
-
" <td>168.68</td>\n",
|
| 221 |
-
" <td>35.95</td>\n",
|
| 222 |
-
" <td>6.13</td>\n",
|
| 223 |
-
" <td>13.42</td>\n",
|
| 224 |
-
" <td>87.12</td>\n",
|
| 225 |
-
" <td>...</td>\n",
|
| 226 |
-
" <td>9.43</td>\n",
|
| 227 |
-
" <td>540.83</td>\n",
|
| 228 |
-
" <td>20.47</td>\n",
|
| 229 |
-
" <td>37.11</td>\n",
|
| 230 |
-
" <td>808.55</td>\n",
|
| 231 |
-
" <td>81425.75</td>\n",
|
| 232 |
-
" <td>42.81</td>\n",
|
| 233 |
-
" <td>83.53</td>\n",
|
| 234 |
-
" <td>6.02</td>\n",
|
| 235 |
-
" <td>1</td>\n",
|
| 236 |
-
" </tr>\n",
|
| 237 |
-
" <tr>\n",
|
| 238 |
-
" <th>3</th>\n",
|
| 239 |
-
" <td>3e610a5ff8d1</td>\n",
|
| 240 |
-
" <td>0.33</td>\n",
|
| 241 |
-
" <td>12439.71</td>\n",
|
| 242 |
-
" <td>1301.69</td>\n",
|
| 243 |
-
" <td>88.31</td>\n",
|
| 244 |
-
" <td>84.49</td>\n",
|
| 245 |
-
" <td>26.43</td>\n",
|
| 246 |
-
" <td>8.30</td>\n",
|
| 247 |
-
" <td>26.29</td>\n",
|
| 248 |
-
" <td>92.56</td>\n",
|
| 249 |
-
" <td>...</td>\n",
|
| 250 |
-
" <td>33.70</td>\n",
|
| 251 |
-
" <td>731.94</td>\n",
|
| 252 |
-
" <td>26.81</td>\n",
|
| 253 |
-
" <td>49.18</td>\n",
|
| 254 |
-
" <td>729.25</td>\n",
|
| 255 |
-
" <td>143656.96</td>\n",
|
| 256 |
-
" <td>75.09</td>\n",
|
| 257 |
-
" <td>177.96</td>\n",
|
| 258 |
-
" <td>15.87</td>\n",
|
| 259 |
-
" <td>0</td>\n",
|
| 260 |
-
" </tr>\n",
|
| 261 |
-
" <tr>\n",
|
| 262 |
-
" <th>4</th>\n",
|
| 263 |
-
" <td>b874e25c20aa</td>\n",
|
| 264 |
-
" <td>5.93</td>\n",
|
| 265 |
-
" <td>12025.87</td>\n",
|
| 266 |
-
" <td>1306.31</td>\n",
|
| 267 |
-
" <td>219.60</td>\n",
|
| 268 |
-
" <td>144.74</td>\n",
|
| 269 |
-
" <td>18.83</td>\n",
|
| 270 |
-
" <td>8.25</td>\n",
|
| 271 |
-
" <td>27.70</td>\n",
|
| 272 |
-
" <td>580.42</td>\n",
|
| 273 |
-
" <td>...</td>\n",
|
| 274 |
-
" <td>71.44</td>\n",
|
| 275 |
-
" <td>608.95</td>\n",
|
| 276 |
-
" <td>0.50</td>\n",
|
| 277 |
-
" <td>72.11</td>\n",
|
| 278 |
-
" <td>1153.78</td>\n",
|
| 279 |
-
" <td>110162.30</td>\n",
|
| 280 |
-
" <td>17.34</td>\n",
|
| 281 |
-
" <td>29.21</td>\n",
|
| 282 |
-
" <td>19.07</td>\n",
|
| 283 |
-
" <td>1</td>\n",
|
| 284 |
-
" </tr>\n",
|
| 285 |
-
" </tbody>\n",
|
| 286 |
-
"</table>\n",
|
| 287 |
-
"<p>5 rows × 58 columns</p>\n",
|
| 288 |
-
"</div>"
|
| 289 |
-
],
|
| 290 |
-
"text/plain": [
|
| 291 |
-
" Id AB AF AH AM AR AX AY AZ \\\n",
|
| 292 |
-
"0 e6aa6fa49abd 4.43 23067.30 344.36 586.33 49.59 14.05 1.13 34.60 \n",
|
| 293 |
-
"1 a633a258eeed 2.95 18930.84 1513.23 129.03 148.21 27.22 6.94 7.85 \n",
|
| 294 |
-
"2 d1a9f56adc4a 3.81 12809.52 1084.70 261.90 168.68 35.95 6.13 13.42 \n",
|
| 295 |
-
"3 3e610a5ff8d1 0.33 12439.71 1301.69 88.31 84.49 26.43 8.30 26.29 \n",
|
| 296 |
-
"4 b874e25c20aa 5.93 12025.87 1306.31 219.60 144.74 18.83 8.25 27.70 \n",
|
| 297 |
-
"\n",
|
| 298 |
-
" BC ... FL FR FS GB GE GF GH \\\n",
|
| 299 |
-
"0 1205.17 ... 124.56 1219.22 16.20 134.13 1174.76 72861.37 17.67 \n",
|
| 300 |
-
"1 1339.67 ... 33.68 1214.14 17.09 76.82 179.83 35123.99 34.14 \n",
|
| 301 |
-
"2 87.12 ... 9.43 540.83 20.47 37.11 808.55 81425.75 42.81 \n",
|
| 302 |
-
"3 92.56 ... 33.70 731.94 26.81 49.18 729.25 143656.96 75.09 \n",
|
| 303 |
-
"4 580.42 ... 71.44 608.95 0.50 72.11 1153.78 110162.30 17.34 \n",
|
| 304 |
-
"\n",
|
| 305 |
-
" GI GL Class \n",
|
| 306 |
-
"0 83.87 16.54 0 \n",
|
| 307 |
-
"1 123.68 2.81 1 \n",
|
| 308 |
-
"2 83.53 6.02 1 \n",
|
| 309 |
-
"3 177.96 15.87 0 \n",
|
| 310 |
-
"4 29.21 19.07 1 \n",
|
| 311 |
-
"\n",
|
| 312 |
-
"[5 rows x 58 columns]"
|
| 313 |
-
]
|
| 314 |
-
},
|
| 315 |
-
"execution_count": 3,
|
| 316 |
-
"metadata": {},
|
| 317 |
-
"output_type": "execute_result"
|
| 318 |
-
}
|
| 319 |
-
],
|
| 320 |
"source": [
|
| 321 |
"train_df.head()"
|
| 322 |
]
|
| 323 |
},
|
| 324 |
{
|
| 325 |
"cell_type": "code",
|
| 326 |
-
"execution_count":
|
| 327 |
"metadata": {
|
| 328 |
"execution": {
|
| 329 |
"iopub.execute_input": "2023-07-23T04:58:48.542550Z",
|
|
@@ -357,378 +157,16 @@
|
|
| 357 |
},
|
| 358 |
{
|
| 359 |
"cell_type": "code",
|
| 360 |
-
"execution_count":
|
| 361 |
"metadata": {},
|
| 362 |
-
"outputs": [
|
| 363 |
-
{
|
| 364 |
-
"data": {
|
| 365 |
-
"text/html": [
|
| 366 |
-
"<div>\n",
|
| 367 |
-
"<style scoped>\n",
|
| 368 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 369 |
-
" vertical-align: middle;\n",
|
| 370 |
-
" }\n",
|
| 371 |
-
"\n",
|
| 372 |
-
" .dataframe tbody tr th {\n",
|
| 373 |
-
" vertical-align: top;\n",
|
| 374 |
-
" }\n",
|
| 375 |
-
"\n",
|
| 376 |
-
" .dataframe thead th {\n",
|
| 377 |
-
" text-align: right;\n",
|
| 378 |
-
" }\n",
|
| 379 |
-
"</style>\n",
|
| 380 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 381 |
-
" <thead>\n",
|
| 382 |
-
" <tr style=\"text-align: right;\">\n",
|
| 383 |
-
" <th></th>\n",
|
| 384 |
-
" <th>Id</th>\n",
|
| 385 |
-
" <th>AB</th>\n",
|
| 386 |
-
" <th>AF</th>\n",
|
| 387 |
-
" <th>AH</th>\n",
|
| 388 |
-
" <th>AM</th>\n",
|
| 389 |
-
" <th>AR</th>\n",
|
| 390 |
-
" <th>AX</th>\n",
|
| 391 |
-
" <th>AY</th>\n",
|
| 392 |
-
" <th>AZ</th>\n",
|
| 393 |
-
" <th>BC</th>\n",
|
| 394 |
-
" <th>...</th>\n",
|
| 395 |
-
" <th>GF</th>\n",
|
| 396 |
-
" <th>GH</th>\n",
|
| 397 |
-
" <th>GI</th>\n",
|
| 398 |
-
" <th>GL</th>\n",
|
| 399 |
-
" <th>Class</th>\n",
|
| 400 |
-
" <th>Alpha</th>\n",
|
| 401 |
-
" <th>Beta</th>\n",
|
| 402 |
-
" <th>Gamma</th>\n",
|
| 403 |
-
" <th>Delta</th>\n",
|
| 404 |
-
" <th>Epsilon</th>\n",
|
| 405 |
-
" </tr>\n",
|
| 406 |
-
" </thead>\n",
|
| 407 |
-
" <tbody>\n",
|
| 408 |
-
" <tr>\n",
|
| 409 |
-
" <th>0</th>\n",
|
| 410 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 411 |
-
" <td>3.81</td>\n",
|
| 412 |
-
" <td>12809.52</td>\n",
|
| 413 |
-
" <td>1084.70</td>\n",
|
| 414 |
-
" <td>261.90</td>\n",
|
| 415 |
-
" <td>168.68</td>\n",
|
| 416 |
-
" <td>35.95</td>\n",
|
| 417 |
-
" <td>6.13</td>\n",
|
| 418 |
-
" <td>13.42</td>\n",
|
| 419 |
-
" <td>87.12</td>\n",
|
| 420 |
-
" <td>...</td>\n",
|
| 421 |
-
" <td>81425.75</td>\n",
|
| 422 |
-
" <td>42.81</td>\n",
|
| 423 |
-
" <td>83.53</td>\n",
|
| 424 |
-
" <td>6.02</td>\n",
|
| 425 |
-
" <td>1</td>\n",
|
| 426 |
-
" <td>D</td>\n",
|
| 427 |
-
" <td>B</td>\n",
|
| 428 |
-
" <td>E</td>\n",
|
| 429 |
-
" <td>C</td>\n",
|
| 430 |
-
" <td>9/10/2020</td>\n",
|
| 431 |
-
" </tr>\n",
|
| 432 |
-
" <tr>\n",
|
| 433 |
-
" <th>1</th>\n",
|
| 434 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 435 |
-
" <td>3.81</td>\n",
|
| 436 |
-
" <td>12809.52</td>\n",
|
| 437 |
-
" <td>1084.70</td>\n",
|
| 438 |
-
" <td>261.90</td>\n",
|
| 439 |
-
" <td>168.68</td>\n",
|
| 440 |
-
" <td>35.95</td>\n",
|
| 441 |
-
" <td>6.13</td>\n",
|
| 442 |
-
" <td>13.42</td>\n",
|
| 443 |
-
" <td>87.12</td>\n",
|
| 444 |
-
" <td>...</td>\n",
|
| 445 |
-
" <td>81425.75</td>\n",
|
| 446 |
-
" <td>42.81</td>\n",
|
| 447 |
-
" <td>83.53</td>\n",
|
| 448 |
-
" <td>6.02</td>\n",
|
| 449 |
-
" <td>1</td>\n",
|
| 450 |
-
" <td>A</td>\n",
|
| 451 |
-
" <td>B</td>\n",
|
| 452 |
-
" <td>H</td>\n",
|
| 453 |
-
" <td>B</td>\n",
|
| 454 |
-
" <td>3/11/2019</td>\n",
|
| 455 |
-
" </tr>\n",
|
| 456 |
-
" <tr>\n",
|
| 457 |
-
" <th>2</th>\n",
|
| 458 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 459 |
-
" <td>5.80</td>\n",
|
| 460 |
-
" <td>6079.58</td>\n",
|
| 461 |
-
" <td>685.73</td>\n",
|
| 462 |
-
" <td>78.97</td>\n",
|
| 463 |
-
" <td>77.56</td>\n",
|
| 464 |
-
" <td>34.61</td>\n",
|
| 465 |
-
" <td>0.47</td>\n",
|
| 466 |
-
" <td>32.46</td>\n",
|
| 467 |
-
" <td>1115.36</td>\n",
|
| 468 |
-
" <td>...</td>\n",
|
| 469 |
-
" <td>102436.56</td>\n",
|
| 470 |
-
" <td>35.03</td>\n",
|
| 471 |
-
" <td>111.92</td>\n",
|
| 472 |
-
" <td>4.96</td>\n",
|
| 473 |
-
" <td>0</td>\n",
|
| 474 |
-
" <td>D</td>\n",
|
| 475 |
-
" <td>B</td>\n",
|
| 476 |
-
" <td>E</td>\n",
|
| 477 |
-
" <td>C</td>\n",
|
| 478 |
-
" <td>9/10/2020</td>\n",
|
| 479 |
-
" </tr>\n",
|
| 480 |
-
" <tr>\n",
|
| 481 |
-
" <th>3</th>\n",
|
| 482 |
-
" <td>d1a9f56adc4a</td>\n",
|
| 483 |
-
" <td>5.80</td>\n",
|
| 484 |
-
" <td>6079.58</td>\n",
|
| 485 |
-
" <td>685.73</td>\n",
|
| 486 |
-
" <td>78.97</td>\n",
|
| 487 |
-
" <td>77.56</td>\n",
|
| 488 |
-
" <td>34.61</td>\n",
|
| 489 |
-
" <td>0.47</td>\n",
|
| 490 |
-
" <td>32.46</td>\n",
|
| 491 |
-
" <td>1115.36</td>\n",
|
| 492 |
-
" <td>...</td>\n",
|
| 493 |
-
" <td>102436.56</td>\n",
|
| 494 |
-
" <td>35.03</td>\n",
|
| 495 |
-
" <td>111.92</td>\n",
|
| 496 |
-
" <td>4.96</td>\n",
|
| 497 |
-
" <td>0</td>\n",
|
| 498 |
-
" <td>A</td>\n",
|
| 499 |
-
" <td>B</td>\n",
|
| 500 |
-
" <td>H</td>\n",
|
| 501 |
-
" <td>B</td>\n",
|
| 502 |
-
" <td>3/11/2019</td>\n",
|
| 503 |
-
" </tr>\n",
|
| 504 |
-
" <tr>\n",
|
| 505 |
-
" <th>4</th>\n",
|
| 506 |
-
" <td>b874e25c20aa</td>\n",
|
| 507 |
-
" <td>5.93</td>\n",
|
| 508 |
-
" <td>12025.87</td>\n",
|
| 509 |
-
" <td>1306.31</td>\n",
|
| 510 |
-
" <td>219.60</td>\n",
|
| 511 |
-
" <td>144.74</td>\n",
|
| 512 |
-
" <td>18.83</td>\n",
|
| 513 |
-
" <td>8.25</td>\n",
|
| 514 |
-
" <td>27.70</td>\n",
|
| 515 |
-
" <td>580.42</td>\n",
|
| 516 |
-
" <td>...</td>\n",
|
| 517 |
-
" <td>110162.30</td>\n",
|
| 518 |
-
" <td>17.34</td>\n",
|
| 519 |
-
" <td>29.21</td>\n",
|
| 520 |
-
" <td>19.07</td>\n",
|
| 521 |
-
" <td>1</td>\n",
|
| 522 |
-
" <td>B</td>\n",
|
| 523 |
-
" <td>C</td>\n",
|
| 524 |
-
" <td>E</td>\n",
|
| 525 |
-
" <td>D</td>\n",
|
| 526 |
-
" <td>7/27/2020</td>\n",
|
| 527 |
-
" </tr>\n",
|
| 528 |
-
" <tr>\n",
|
| 529 |
-
" <th>...</th>\n",
|
| 530 |
-
" <td>...</td>\n",
|
| 531 |
-
" <td>...</td>\n",
|
| 532 |
-
" <td>...</td>\n",
|
| 533 |
-
" <td>...</td>\n",
|
| 534 |
-
" <td>...</td>\n",
|
| 535 |
-
" <td>...</td>\n",
|
| 536 |
-
" <td>...</td>\n",
|
| 537 |
-
" <td>...</td>\n",
|
| 538 |
-
" <td>...</td>\n",
|
| 539 |
-
" <td>...</td>\n",
|
| 540 |
-
" <td>...</td>\n",
|
| 541 |
-
" <td>...</td>\n",
|
| 542 |
-
" <td>...</td>\n",
|
| 543 |
-
" <td>...</td>\n",
|
| 544 |
-
" <td>...</td>\n",
|
| 545 |
-
" <td>...</td>\n",
|
| 546 |
-
" <td>...</td>\n",
|
| 547 |
-
" <td>...</td>\n",
|
| 548 |
-
" <td>...</td>\n",
|
| 549 |
-
" <td>...</td>\n",
|
| 550 |
-
" <td>...</td>\n",
|
| 551 |
-
" </tr>\n",
|
| 552 |
-
" <tr>\n",
|
| 553 |
-
" <th>619</th>\n",
|
| 554 |
-
" <td>6bf666677588</td>\n",
|
| 555 |
-
" <td>2.80</td>\n",
|
| 556 |
-
" <td>23687.98</td>\n",
|
| 557 |
-
" <td>225.53</td>\n",
|
| 558 |
-
" <td>385.78</td>\n",
|
| 559 |
-
" <td>47.02</td>\n",
|
| 560 |
-
" <td>17.05</td>\n",
|
| 561 |
-
" <td>7.37</td>\n",
|
| 562 |
-
" <td>35.40</td>\n",
|
| 563 |
-
" <td>831.98</td>\n",
|
| 564 |
-
" <td>...</td>\n",
|
| 565 |
-
" <td>113853.10</td>\n",
|
| 566 |
-
" <td>76.47</td>\n",
|
| 567 |
-
" <td>162.43</td>\n",
|
| 568 |
-
" <td>8.92</td>\n",
|
| 569 |
-
" <td>0</td>\n",
|
| 570 |
-
" <td>G</td>\n",
|
| 571 |
-
" <td>B</td>\n",
|
| 572 |
-
" <td>A</td>\n",
|
| 573 |
-
" <td>A</td>\n",
|
| 574 |
-
" <td>12/20/2019</td>\n",
|
| 575 |
-
" </tr>\n",
|
| 576 |
-
" <tr>\n",
|
| 577 |
-
" <th>620</th>\n",
|
| 578 |
-
" <td>4e6477903aa3</td>\n",
|
| 579 |
-
" <td>5.65</td>\n",
|
| 580 |
-
" <td>5118.03</td>\n",
|
| 581 |
-
" <td>1630.33</td>\n",
|
| 582 |
-
" <td>176.64</td>\n",
|
| 583 |
-
" <td>151.55</td>\n",
|
| 584 |
-
" <td>10.58</td>\n",
|
| 585 |
-
" <td>2.68</td>\n",
|
| 586 |
-
" <td>25.15</td>\n",
|
| 587 |
-
" <td>956.36</td>\n",
|
| 588 |
-
" <td>...</td>\n",
|
| 589 |
-
" <td>125353.53</td>\n",
|
| 590 |
-
" <td>49.12</td>\n",
|
| 591 |
-
" <td>34.51</td>\n",
|
| 592 |
-
" <td>15.82</td>\n",
|
| 593 |
-
" <td>1</td>\n",
|
| 594 |
-
" <td>B</td>\n",
|
| 595 |
-
" <td>A</td>\n",
|
| 596 |
-
" <td>A</td>\n",
|
| 597 |
-
" <td>A</td>\n",
|
| 598 |
-
" <td>4/19/2019</td>\n",
|
| 599 |
-
" </tr>\n",
|
| 600 |
-
" <tr>\n",
|
| 601 |
-
" <th>621</th>\n",
|
| 602 |
-
" <td>4e6477903aa3</td>\n",
|
| 603 |
-
" <td>5.65</td>\n",
|
| 604 |
-
" <td>5118.03</td>\n",
|
| 605 |
-
" <td>1630.33</td>\n",
|
| 606 |
-
" <td>176.64</td>\n",
|
| 607 |
-
" <td>151.55</td>\n",
|
| 608 |
-
" <td>10.58</td>\n",
|
| 609 |
-
" <td>2.68</td>\n",
|
| 610 |
-
" <td>25.15</td>\n",
|
| 611 |
-
" <td>956.36</td>\n",
|
| 612 |
-
" <td>...</td>\n",
|
| 613 |
-
" <td>125353.53</td>\n",
|
| 614 |
-
" <td>49.12</td>\n",
|
| 615 |
-
" <td>34.51</td>\n",
|
| 616 |
-
" <td>15.82</td>\n",
|
| 617 |
-
" <td>1</td>\n",
|
| 618 |
-
" <td>D</td>\n",
|
| 619 |
-
" <td>C</td>\n",
|
| 620 |
-
" <td>H</td>\n",
|
| 621 |
-
" <td>B</td>\n",
|
| 622 |
-
" <td>12/31/2019</td>\n",
|
| 623 |
-
" </tr>\n",
|
| 624 |
-
" <tr>\n",
|
| 625 |
-
" <th>622</th>\n",
|
| 626 |
-
" <td>9949a1749e2c</td>\n",
|
| 627 |
-
" <td>3.08</td>\n",
|
| 628 |
-
" <td>5687.86</td>\n",
|
| 629 |
-
" <td>690.00</td>\n",
|
| 630 |
-
" <td>573.70</td>\n",
|
| 631 |
-
" <td>89.60</td>\n",
|
| 632 |
-
" <td>25.03</td>\n",
|
| 633 |
-
" <td>3.85</td>\n",
|
| 634 |
-
" <td>22.61</td>\n",
|
| 635 |
-
" <td>1124.93</td>\n",
|
| 636 |
-
" <td>...</td>\n",
|
| 637 |
-
" <td>2026.66</td>\n",
|
| 638 |
-
" <td>11.16</td>\n",
|
| 639 |
-
" <td>17.13</td>\n",
|
| 640 |
-
" <td>21.33</td>\n",
|
| 641 |
-
" <td>1</td>\n",
|
| 642 |
-
" <td>D</td>\n",
|
| 643 |
-
" <td>C</td>\n",
|
| 644 |
-
" <td>A</td>\n",
|
| 645 |
-
" <td>B</td>\n",
|
| 646 |
-
" <td>4/19/2019</td>\n",
|
| 647 |
-
" </tr>\n",
|
| 648 |
-
" <tr>\n",
|
| 649 |
-
" <th>623</th>\n",
|
| 650 |
-
" <td>9949a1749e2c</td>\n",
|
| 651 |
-
" <td>3.08</td>\n",
|
| 652 |
-
" <td>5687.86</td>\n",
|
| 653 |
-
" <td>690.00</td>\n",
|
| 654 |
-
" <td>573.70</td>\n",
|
| 655 |
-
" <td>89.60</td>\n",
|
| 656 |
-
" <td>25.03</td>\n",
|
| 657 |
-
" <td>3.85</td>\n",
|
| 658 |
-
" <td>22.61</td>\n",
|
| 659 |
-
" <td>1124.93</td>\n",
|
| 660 |
-
" <td>...</td>\n",
|
| 661 |
-
" <td>2026.66</td>\n",
|
| 662 |
-
" <td>11.16</td>\n",
|
| 663 |
-
" <td>17.13</td>\n",
|
| 664 |
-
" <td>21.33</td>\n",
|
| 665 |
-
" <td>1</td>\n",
|
| 666 |
-
" <td>A</td>\n",
|
| 667 |
-
" <td>A</td>\n",
|
| 668 |
-
" <td>B</td>\n",
|
| 669 |
-
" <td>A</td>\n",
|
| 670 |
-
" <td>3/25/2019</td>\n",
|
| 671 |
-
" </tr>\n",
|
| 672 |
-
" </tbody>\n",
|
| 673 |
-
"</table>\n",
|
| 674 |
-
"<p>624 rows × 63 columns</p>\n",
|
| 675 |
-
"</div>"
|
| 676 |
-
],
|
| 677 |
-
"text/plain": [
|
| 678 |
-
" Id AB AF AH AM AR AX AY \\\n",
|
| 679 |
-
"0 d1a9f56adc4a 3.81 12809.52 1084.70 261.90 168.68 35.95 6.13 \n",
|
| 680 |
-
"1 d1a9f56adc4a 3.81 12809.52 1084.70 261.90 168.68 35.95 6.13 \n",
|
| 681 |
-
"2 d1a9f56adc4a 5.80 6079.58 685.73 78.97 77.56 34.61 0.47 \n",
|
| 682 |
-
"3 d1a9f56adc4a 5.80 6079.58 685.73 78.97 77.56 34.61 0.47 \n",
|
| 683 |
-
"4 b874e25c20aa 5.93 12025.87 1306.31 219.60 144.74 18.83 8.25 \n",
|
| 684 |
-
".. ... ... ... ... ... ... ... ... \n",
|
| 685 |
-
"619 6bf666677588 2.80 23687.98 225.53 385.78 47.02 17.05 7.37 \n",
|
| 686 |
-
"620 4e6477903aa3 5.65 5118.03 1630.33 176.64 151.55 10.58 2.68 \n",
|
| 687 |
-
"621 4e6477903aa3 5.65 5118.03 1630.33 176.64 151.55 10.58 2.68 \n",
|
| 688 |
-
"622 9949a1749e2c 3.08 5687.86 690.00 573.70 89.60 25.03 3.85 \n",
|
| 689 |
-
"623 9949a1749e2c 3.08 5687.86 690.00 573.70 89.60 25.03 3.85 \n",
|
| 690 |
-
"\n",
|
| 691 |
-
" AZ BC ... GF GH GI GL Class Alpha Beta \\\n",
|
| 692 |
-
"0 13.42 87.12 ... 81425.75 42.81 83.53 6.02 1 D B \n",
|
| 693 |
-
"1 13.42 87.12 ... 81425.75 42.81 83.53 6.02 1 A B \n",
|
| 694 |
-
"2 32.46 1115.36 ... 102436.56 35.03 111.92 4.96 0 D B \n",
|
| 695 |
-
"3 32.46 1115.36 ... 102436.56 35.03 111.92 4.96 0 A B \n",
|
| 696 |
-
"4 27.70 580.42 ... 110162.30 17.34 29.21 19.07 1 B C \n",
|
| 697 |
-
".. ... ... ... ... ... ... ... ... ... ... \n",
|
| 698 |
-
"619 35.40 831.98 ... 113853.10 76.47 162.43 8.92 0 G B \n",
|
| 699 |
-
"620 25.15 956.36 ... 125353.53 49.12 34.51 15.82 1 B A \n",
|
| 700 |
-
"621 25.15 956.36 ... 125353.53 49.12 34.51 15.82 1 D C \n",
|
| 701 |
-
"622 22.61 1124.93 ... 2026.66 11.16 17.13 21.33 1 D C \n",
|
| 702 |
-
"623 22.61 1124.93 ... 2026.66 11.16 17.13 21.33 1 A A \n",
|
| 703 |
-
"\n",
|
| 704 |
-
" Gamma Delta Epsilon \n",
|
| 705 |
-
"0 E C 9/10/2020 \n",
|
| 706 |
-
"1 H B 3/11/2019 \n",
|
| 707 |
-
"2 E C 9/10/2020 \n",
|
| 708 |
-
"3 H B 3/11/2019 \n",
|
| 709 |
-
"4 E D 7/27/2020 \n",
|
| 710 |
-
".. ... ... ... \n",
|
| 711 |
-
"619 A A 12/20/2019 \n",
|
| 712 |
-
"620 A A 4/19/2019 \n",
|
| 713 |
-
"621 H B 12/31/2019 \n",
|
| 714 |
-
"622 A B 4/19/2019 \n",
|
| 715 |
-
"623 B A 3/25/2019 \n",
|
| 716 |
-
"\n",
|
| 717 |
-
"[624 rows x 63 columns]"
|
| 718 |
-
]
|
| 719 |
-
},
|
| 720 |
-
"execution_count": 5,
|
| 721 |
-
"metadata": {},
|
| 722 |
-
"output_type": "execute_result"
|
| 723 |
-
}
|
| 724 |
-
],
|
| 725 |
"source": [
|
| 726 |
"train_df"
|
| 727 |
]
|
| 728 |
},
|
| 729 |
{
|
| 730 |
"cell_type": "code",
|
| 731 |
-
"execution_count":
|
| 732 |
"metadata": {
|
| 733 |
"execution": {
|
| 734 |
"iopub.execute_input": "2023-07-23T04:58:48.649931Z",
|
|
@@ -738,31 +176,14 @@
|
|
| 738 |
"shell.execute_reply.started": "2023-07-23T04:58:48.649901Z"
|
| 739 |
}
|
| 740 |
},
|
| 741 |
-
"outputs": [
|
| 742 |
-
{
|
| 743 |
-
"data": {
|
| 744 |
-
"text/plain": [
|
| 745 |
-
"Index(['Id', 'AB', 'AF', 'AH', 'AM', 'AR', 'AX', 'AY', 'AZ', 'BC', 'BD ', 'BN',\n",
|
| 746 |
-
" 'BP', 'BQ', 'BR', 'BZ', 'CB', 'CC', 'CD ', 'CF', 'CH', 'CL', 'CR', 'CS',\n",
|
| 747 |
-
" 'CU', 'CW ', 'DA', 'DE', 'DF', 'DH', 'DI', 'DL', 'DN', 'DU', 'DV', 'DY',\n",
|
| 748 |
-
" 'EB', 'EE', 'EG', 'EH', 'EJ', 'EL', 'EP', 'EU', 'FC', 'FD ', 'FE', 'FI',\n",
|
| 749 |
-
" 'FL', 'FR', 'FS', 'GB', 'GE', 'GF', 'GH', 'GI', 'GL', 'Class', 'Alpha',\n",
|
| 750 |
-
" 'Beta', 'Gamma', 'Delta', 'Epsilon'],\n",
|
| 751 |
-
" dtype='object')"
|
| 752 |
-
]
|
| 753 |
-
},
|
| 754 |
-
"execution_count": 6,
|
| 755 |
-
"metadata": {},
|
| 756 |
-
"output_type": "execute_result"
|
| 757 |
-
}
|
| 758 |
-
],
|
| 759 |
"source": [
|
| 760 |
"train_df.columns"
|
| 761 |
]
|
| 762 |
},
|
| 763 |
{
|
| 764 |
"cell_type": "code",
|
| 765 |
-
"execution_count":
|
| 766 |
"metadata": {
|
| 767 |
"execution": {
|
| 768 |
"iopub.execute_input": "2023-07-23T04:58:48.660111Z",
|
|
@@ -781,7 +202,7 @@
|
|
| 781 |
},
|
| 782 |
{
|
| 783 |
"cell_type": "code",
|
| 784 |
-
"execution_count":
|
| 785 |
"metadata": {
|
| 786 |
"execution": {
|
| 787 |
"iopub.execute_input": "2023-07-23T04:58:48.676200Z",
|
|
@@ -791,298 +212,7 @@
|
|
| 791 |
"shell.execute_reply.started": "2023-07-23T04:58:48.676155Z"
|
| 792 |
}
|
| 793 |
},
|
| 794 |
-
"outputs": [
|
| 795 |
-
{
|
| 796 |
-
"data": {
|
| 797 |
-
"text/html": [
|
| 798 |
-
"<div>\n",
|
| 799 |
-
"<style scoped>\n",
|
| 800 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 801 |
-
" vertical-align: middle;\n",
|
| 802 |
-
" }\n",
|
| 803 |
-
"\n",
|
| 804 |
-
" .dataframe tbody tr th {\n",
|
| 805 |
-
" vertical-align: top;\n",
|
| 806 |
-
" }\n",
|
| 807 |
-
"\n",
|
| 808 |
-
" .dataframe thead th {\n",
|
| 809 |
-
" text-align: right;\n",
|
| 810 |
-
" }\n",
|
| 811 |
-
"</style>\n",
|
| 812 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 813 |
-
" <thead>\n",
|
| 814 |
-
" <tr style=\"text-align: right;\">\n",
|
| 815 |
-
" <th></th>\n",
|
| 816 |
-
" <th>AB</th>\n",
|
| 817 |
-
" <th>AF</th>\n",
|
| 818 |
-
" <th>AH</th>\n",
|
| 819 |
-
" <th>AM</th>\n",
|
| 820 |
-
" <th>AR</th>\n",
|
| 821 |
-
" <th>AX</th>\n",
|
| 822 |
-
" <th>AY</th>\n",
|
| 823 |
-
" <th>AZ</th>\n",
|
| 824 |
-
" <th>BC</th>\n",
|
| 825 |
-
" <th>BD</th>\n",
|
| 826 |
-
" <th>...</th>\n",
|
| 827 |
-
" <th>FL</th>\n",
|
| 828 |
-
" <th>FR</th>\n",
|
| 829 |
-
" <th>FS</th>\n",
|
| 830 |
-
" <th>GB</th>\n",
|
| 831 |
-
" <th>GE</th>\n",
|
| 832 |
-
" <th>GF</th>\n",
|
| 833 |
-
" <th>GH</th>\n",
|
| 834 |
-
" <th>GI</th>\n",
|
| 835 |
-
" <th>GL</th>\n",
|
| 836 |
-
" <th>Class</th>\n",
|
| 837 |
-
" </tr>\n",
|
| 838 |
-
" </thead>\n",
|
| 839 |
-
" <tbody>\n",
|
| 840 |
-
" <tr>\n",
|
| 841 |
-
" <th>count</th>\n",
|
| 842 |
-
" <td>624.000000</td>\n",
|
| 843 |
-
" <td>624.000000</td>\n",
|
| 844 |
-
" <td>624.000000</td>\n",
|
| 845 |
-
" <td>624.000000</td>\n",
|
| 846 |
-
" <td>624.000000</td>\n",
|
| 847 |
-
" <td>624.000000</td>\n",
|
| 848 |
-
" <td>624.000000</td>\n",
|
| 849 |
-
" <td>624.000000</td>\n",
|
| 850 |
-
" <td>624.000000</td>\n",
|
| 851 |
-
" <td>624.000000</td>\n",
|
| 852 |
-
" <td>...</td>\n",
|
| 853 |
-
" <td>622.000000</td>\n",
|
| 854 |
-
" <td>624.000000</td>\n",
|
| 855 |
-
" <td>624.000000</td>\n",
|
| 856 |
-
" <td>624.000000</td>\n",
|
| 857 |
-
" <td>624.000000</td>\n",
|
| 858 |
-
" <td>624.000000</td>\n",
|
| 859 |
-
" <td>624.000000</td>\n",
|
| 860 |
-
" <td>624.000000</td>\n",
|
| 861 |
-
" <td>622.000000</td>\n",
|
| 862 |
-
" <td>624.000000</td>\n",
|
| 863 |
-
" </tr>\n",
|
| 864 |
-
" <tr>\n",
|
| 865 |
-
" <th>mean</th>\n",
|
| 866 |
-
" <td>3.331410</td>\n",
|
| 867 |
-
" <td>15023.696474</td>\n",
|
| 868 |
-
" <td>972.617708</td>\n",
|
| 869 |
-
" <td>318.833654</td>\n",
|
| 870 |
-
" <td>90.042917</td>\n",
|
| 871 |
-
" <td>18.377372</td>\n",
|
| 872 |
-
" <td>5.560593</td>\n",
|
| 873 |
-
" <td>20.193718</td>\n",
|
| 874 |
-
" <td>720.309952</td>\n",
|
| 875 |
-
" <td>28718.190561</td>\n",
|
| 876 |
-
" <td>...</td>\n",
|
| 877 |
-
" <td>67.503842</td>\n",
|
| 878 |
-
" <td>630.024744</td>\n",
|
| 879 |
-
" <td>15.683365</td>\n",
|
| 880 |
-
" <td>66.341186</td>\n",
|
| 881 |
-
" <td>787.298157</td>\n",
|
| 882 |
-
" <td>71318.176202</td>\n",
|
| 883 |
-
" <td>43.711234</td>\n",
|
| 884 |
-
" <td>102.983349</td>\n",
|
| 885 |
-
" <td>11.356543</td>\n",
|
| 886 |
-
" <td>0.496795</td>\n",
|
| 887 |
-
" </tr>\n",
|
| 888 |
-
" <tr>\n",
|
| 889 |
-
" <th>std</th>\n",
|
| 890 |
-
" <td>1.784369</td>\n",
|
| 891 |
-
" <td>8099.910282</td>\n",
|
| 892 |
-
" <td>501.276008</td>\n",
|
| 893 |
-
" <td>182.267948</td>\n",
|
| 894 |
-
" <td>49.079931</td>\n",
|
| 895 |
-
" <td>10.861119</td>\n",
|
| 896 |
-
" <td>3.022239</td>\n",
|
| 897 |
-
" <td>10.518280</td>\n",
|
| 898 |
-
" <td>409.346413</td>\n",
|
| 899 |
-
" <td>14575.219789</td>\n",
|
| 900 |
-
" <td>...</td>\n",
|
| 901 |
-
" <td>39.551407</td>\n",
|
| 902 |
-
" <td>351.153355</td>\n",
|
| 903 |
-
" <td>9.269900</td>\n",
|
| 904 |
-
" <td>38.620867</td>\n",
|
| 905 |
-
" <td>402.352248</td>\n",
|
| 906 |
-
" <td>40659.240539</td>\n",
|
| 907 |
-
" <td>21.527950</td>\n",
|
| 908 |
-
" <td>55.244275</td>\n",
|
| 909 |
-
" <td>6.138769</td>\n",
|
| 910 |
-
" <td>0.500391</td>\n",
|
| 911 |
-
" </tr>\n",
|
| 912 |
-
" <tr>\n",
|
| 913 |
-
" <th>min</th>\n",
|
| 914 |
-
" <td>0.110000</td>\n",
|
| 915 |
-
" <td>444.140000</td>\n",
|
| 916 |
-
" <td>86.660000</td>\n",
|
| 917 |
-
" <td>5.670000</td>\n",
|
| 918 |
-
" <td>8.450000</td>\n",
|
| 919 |
-
" <td>0.730000</td>\n",
|
| 920 |
-
" <td>0.040000</td>\n",
|
| 921 |
-
" <td>3.420000</td>\n",
|
| 922 |
-
" <td>6.220000</td>\n",
|
| 923 |
-
" <td>1788.080000</td>\n",
|
| 924 |
-
" <td>...</td>\n",
|
| 925 |
-
" <td>0.490000</td>\n",
|
| 926 |
-
" <td>1.530000</td>\n",
|
| 927 |
-
" <td>0.170000</td>\n",
|
| 928 |
-
" <td>4.290000</td>\n",
|
| 929 |
-
" <td>73.610000</td>\n",
|
| 930 |
-
" <td>47.440000</td>\n",
|
| 931 |
-
" <td>9.630000</td>\n",
|
| 932 |
-
" <td>1.170000</td>\n",
|
| 933 |
-
" <td>0.150000</td>\n",
|
| 934 |
-
" <td>0.000000</td>\n",
|
| 935 |
-
" </tr>\n",
|
| 936 |
-
" <tr>\n",
|
| 937 |
-
" <th>25%</th>\n",
|
| 938 |
-
" <td>1.930000</td>\n",
|
| 939 |
-
" <td>8020.057500</td>\n",
|
| 940 |
-
" <td>633.655000</td>\n",
|
| 941 |
-
" <td>166.800000</td>\n",
|
| 942 |
-
" <td>45.900000</td>\n",
|
| 943 |
-
" <td>8.280000</td>\n",
|
| 944 |
-
" <td>2.745000</td>\n",
|
| 945 |
-
" <td>10.080000</td>\n",
|
| 946 |
-
" <td>389.367500</td>\n",
|
| 947 |
-
" <td>16813.697500</td>\n",
|
| 948 |
-
" <td>...</td>\n",
|
| 949 |
-
" <td>32.460000</td>\n",
|
| 950 |
-
" <td>352.037500</td>\n",
|
| 951 |
-
" <td>7.927500</td>\n",
|
| 952 |
-
" <td>33.160000</td>\n",
|
| 953 |
-
" <td>438.525000</td>\n",
|
| 954 |
-
" <td>35309.655000</td>\n",
|
| 955 |
-
" <td>23.800000</td>\n",
|
| 956 |
-
" <td>58.370000</td>\n",
|
| 957 |
-
" <td>6.390000</td>\n",
|
| 958 |
-
" <td>0.000000</td>\n",
|
| 959 |
-
" </tr>\n",
|
| 960 |
-
" <tr>\n",
|
| 961 |
-
" <th>50%</th>\n",
|
| 962 |
-
" <td>3.450000</td>\n",
|
| 963 |
-
" <td>15299.995000</td>\n",
|
| 964 |
-
" <td>953.360000</td>\n",
|
| 965 |
-
" <td>320.825000</td>\n",
|
| 966 |
-
" <td>87.850000</td>\n",
|
| 967 |
-
" <td>18.425000</td>\n",
|
| 968 |
-
" <td>5.690000</td>\n",
|
| 969 |
-
" <td>19.970000</td>\n",
|
| 970 |
-
" <td>721.745000</td>\n",
|
| 971 |
-
" <td>28466.135000</td>\n",
|
| 972 |
-
" <td>...</td>\n",
|
| 973 |
-
" <td>69.860000</td>\n",
|
| 974 |
-
" <td>629.570000</td>\n",
|
| 975 |
-
" <td>15.010000</td>\n",
|
| 976 |
-
" <td>62.775000</td>\n",
|
| 977 |
-
" <td>793.775000</td>\n",
|
| 978 |
-
" <td>75004.455000</td>\n",
|
| 979 |
-
" <td>42.740000</td>\n",
|
| 980 |
-
" <td>106.140000</td>\n",
|
| 981 |
-
" <td>11.810000</td>\n",
|
| 982 |
-
" <td>0.000000</td>\n",
|
| 983 |
-
" </tr>\n",
|
| 984 |
-
" <tr>\n",
|
| 985 |
-
" <th>75%</th>\n",
|
| 986 |
-
" <td>4.822500</td>\n",
|
| 987 |
-
" <td>21668.440000</td>\n",
|
| 988 |
-
" <td>1355.027500</td>\n",
|
| 989 |
-
" <td>471.287500</td>\n",
|
| 990 |
-
" <td>132.477500</td>\n",
|
| 991 |
-
" <td>27.870000</td>\n",
|
| 992 |
-
" <td>8.262500</td>\n",
|
| 993 |
-
" <td>29.080000</td>\n",
|
| 994 |
-
" <td>1064.500000</td>\n",
|
| 995 |
-
" <td>41966.227500</td>\n",
|
| 996 |
-
" <td>...</td>\n",
|
| 997 |
-
" <td>100.925000</td>\n",
|
| 998 |
-
" <td>950.790000</td>\n",
|
| 999 |
-
" <td>24.000000</td>\n",
|
| 1000 |
-
" <td>101.565000</td>\n",
|
| 1001 |
-
" <td>1124.700000</td>\n",
|
| 1002 |
-
" <td>106254.267500</td>\n",
|
| 1003 |
-
" <td>63.340000</td>\n",
|
| 1004 |
-
" <td>150.492500</td>\n",
|
| 1005 |
-
" <td>16.187500</td>\n",
|
| 1006 |
-
" <td>1.000000</td>\n",
|
| 1007 |
-
" </tr>\n",
|
| 1008 |
-
" <tr>\n",
|
| 1009 |
-
" <th>max</th>\n",
|
| 1010 |
-
" <td>6.130000</td>\n",
|
| 1011 |
-
" <td>28574.960000</td>\n",
|
| 1012 |
-
" <td>1901.600000</td>\n",
|
| 1013 |
-
" <td>629.650000</td>\n",
|
| 1014 |
-
" <td>177.880000</td>\n",
|
| 1015 |
-
" <td>38.050000</td>\n",
|
| 1016 |
-
" <td>10.310000</td>\n",
|
| 1017 |
-
" <td>38.890000</td>\n",
|
| 1018 |
-
" <td>1457.100000</td>\n",
|
| 1019 |
-
" <td>53048.600000</td>\n",
|
| 1020 |
-
" <td>...</td>\n",
|
| 1021 |
-
" <td>136.990000</td>\n",
|
| 1022 |
-
" <td>1234.980000</td>\n",
|
| 1023 |
-
" <td>31.330000</td>\n",
|
| 1024 |
-
" <td>135.750000</td>\n",
|
| 1025 |
-
" <td>1495.470000</td>\n",
|
| 1026 |
-
" <td>143536.700000</td>\n",
|
| 1027 |
-
" <td>81.160000</td>\n",
|
| 1028 |
-
" <td>191.150000</td>\n",
|
| 1029 |
-
" <td>21.830000</td>\n",
|
| 1030 |
-
" <td>1.000000</td>\n",
|
| 1031 |
-
" </tr>\n",
|
| 1032 |
-
" </tbody>\n",
|
| 1033 |
-
"</table>\n",
|
| 1034 |
-
"<p>8 rows × 56 columns</p>\n",
|
| 1035 |
-
"</div>"
|
| 1036 |
-
],
|
| 1037 |
-
"text/plain": [
|
| 1038 |
-
" AB AF AH AM AR \\\n",
|
| 1039 |
-
"count 624.000000 624.000000 624.000000 624.000000 624.000000 \n",
|
| 1040 |
-
"mean 3.331410 15023.696474 972.617708 318.833654 90.042917 \n",
|
| 1041 |
-
"std 1.784369 8099.910282 501.276008 182.267948 49.079931 \n",
|
| 1042 |
-
"min 0.110000 444.140000 86.660000 5.670000 8.450000 \n",
|
| 1043 |
-
"25% 1.930000 8020.057500 633.655000 166.800000 45.900000 \n",
|
| 1044 |
-
"50% 3.450000 15299.995000 953.360000 320.825000 87.850000 \n",
|
| 1045 |
-
"75% 4.822500 21668.440000 1355.027500 471.287500 132.477500 \n",
|
| 1046 |
-
"max 6.130000 28574.960000 1901.600000 629.650000 177.880000 \n",
|
| 1047 |
-
"\n",
|
| 1048 |
-
" AX AY AZ BC BD ... \\\n",
|
| 1049 |
-
"count 624.000000 624.000000 624.000000 624.000000 624.000000 ... \n",
|
| 1050 |
-
"mean 18.377372 5.560593 20.193718 720.309952 28718.190561 ... \n",
|
| 1051 |
-
"std 10.861119 3.022239 10.518280 409.346413 14575.219789 ... \n",
|
| 1052 |
-
"min 0.730000 0.040000 3.420000 6.220000 1788.080000 ... \n",
|
| 1053 |
-
"25% 8.280000 2.745000 10.080000 389.367500 16813.697500 ... \n",
|
| 1054 |
-
"50% 18.425000 5.690000 19.970000 721.745000 28466.135000 ... \n",
|
| 1055 |
-
"75% 27.870000 8.262500 29.080000 1064.500000 41966.227500 ... \n",
|
| 1056 |
-
"max 38.050000 10.310000 38.890000 1457.100000 53048.600000 ... \n",
|
| 1057 |
-
"\n",
|
| 1058 |
-
" FL FR FS GB GE \\\n",
|
| 1059 |
-
"count 622.000000 624.000000 624.000000 624.000000 624.000000 \n",
|
| 1060 |
-
"mean 67.503842 630.024744 15.683365 66.341186 787.298157 \n",
|
| 1061 |
-
"std 39.551407 351.153355 9.269900 38.620867 402.352248 \n",
|
| 1062 |
-
"min 0.490000 1.530000 0.170000 4.290000 73.610000 \n",
|
| 1063 |
-
"25% 32.460000 352.037500 7.927500 33.160000 438.525000 \n",
|
| 1064 |
-
"50% 69.860000 629.570000 15.010000 62.775000 793.775000 \n",
|
| 1065 |
-
"75% 100.925000 950.790000 24.000000 101.565000 1124.700000 \n",
|
| 1066 |
-
"max 136.990000 1234.980000 31.330000 135.750000 1495.470000 \n",
|
| 1067 |
-
"\n",
|
| 1068 |
-
" GF GH GI GL Class \n",
|
| 1069 |
-
"count 624.000000 624.000000 624.000000 622.000000 624.000000 \n",
|
| 1070 |
-
"mean 71318.176202 43.711234 102.983349 11.356543 0.496795 \n",
|
| 1071 |
-
"std 40659.240539 21.527950 55.244275 6.138769 0.500391 \n",
|
| 1072 |
-
"min 47.440000 9.630000 1.170000 0.150000 0.000000 \n",
|
| 1073 |
-
"25% 35309.655000 23.800000 58.370000 6.390000 0.000000 \n",
|
| 1074 |
-
"50% 75004.455000 42.740000 106.140000 11.810000 0.000000 \n",
|
| 1075 |
-
"75% 106254.267500 63.340000 150.492500 16.187500 1.000000 \n",
|
| 1076 |
-
"max 143536.700000 81.160000 191.150000 21.830000 1.000000 \n",
|
| 1077 |
-
"\n",
|
| 1078 |
-
"[8 rows x 56 columns]"
|
| 1079 |
-
]
|
| 1080 |
-
},
|
| 1081 |
-
"execution_count": 8,
|
| 1082 |
-
"metadata": {},
|
| 1083 |
-
"output_type": "execute_result"
|
| 1084 |
-
}
|
| 1085 |
-
],
|
| 1086 |
"source": [
|
| 1087 |
"train_df.describe()"
|
| 1088 |
]
|
|
@@ -1106,7 +236,7 @@
|
|
| 1106 |
},
|
| 1107 |
{
|
| 1108 |
"cell_type": "code",
|
| 1109 |
-
"execution_count":
|
| 1110 |
"metadata": {
|
| 1111 |
"execution": {
|
| 1112 |
"iopub.execute_input": "2023-07-23T05:05:03.040447Z",
|
|
@@ -1126,629 +256,7 @@
|
|
| 1126 |
},
|
| 1127 |
{
|
| 1128 |
"cell_type": "code",
|
| 1129 |
-
"execution_count":
|
| 1130 |
-
"metadata": {
|
| 1131 |
-
"execution": {
|
| 1132 |
-
"iopub.execute_input": "2023-07-23T05:07:20.524513Z",
|
| 1133 |
-
"iopub.status.busy": "2023-07-23T05:07:20.523866Z",
|
| 1134 |
-
"iopub.status.idle": "2023-07-23T05:07:20.746978Z",
|
| 1135 |
-
"shell.execute_reply": "2023-07-23T05:07:20.745797Z",
|
| 1136 |
-
"shell.execute_reply.started": "2023-07-23T05:07:20.524480Z"
|
| 1137 |
-
}
|
| 1138 |
-
},
|
| 1139 |
-
"outputs": [
|
| 1140 |
-
{
|
| 1141 |
-
"data": {
|
| 1142 |
-
"text/html": [
|
| 1143 |
-
"<div>\n",
|
| 1144 |
-
"<style scoped>\n",
|
| 1145 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 1146 |
-
" vertical-align: middle;\n",
|
| 1147 |
-
" }\n",
|
| 1148 |
-
"\n",
|
| 1149 |
-
" .dataframe tbody tr th {\n",
|
| 1150 |
-
" vertical-align: top;\n",
|
| 1151 |
-
" }\n",
|
| 1152 |
-
"\n",
|
| 1153 |
-
" .dataframe thead th {\n",
|
| 1154 |
-
" text-align: right;\n",
|
| 1155 |
-
" }\n",
|
| 1156 |
-
"</style>\n",
|
| 1157 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 1158 |
-
" <thead>\n",
|
| 1159 |
-
" <tr style=\"text-align: right;\">\n",
|
| 1160 |
-
" <th></th>\n",
|
| 1161 |
-
" <th>AB_0.11</th>\n",
|
| 1162 |
-
" <th>AB_0.12</th>\n",
|
| 1163 |
-
" <th>AB_0.16</th>\n",
|
| 1164 |
-
" <th>AB_0.18</th>\n",
|
| 1165 |
-
" <th>AB_0.19</th>\n",
|
| 1166 |
-
" <th>AB_0.2</th>\n",
|
| 1167 |
-
" <th>AB_0.21</th>\n",
|
| 1168 |
-
" <th>AB_0.24</th>\n",
|
| 1169 |
-
" <th>AB_0.25</th>\n",
|
| 1170 |
-
" <th>AB_0.28</th>\n",
|
| 1171 |
-
" <th>...</th>\n",
|
| 1172 |
-
" <th>Epsilon_9/19/2018</th>\n",
|
| 1173 |
-
" <th>Epsilon_9/20/2018</th>\n",
|
| 1174 |
-
" <th>Epsilon_9/20/2019</th>\n",
|
| 1175 |
-
" <th>Epsilon_9/27/2019</th>\n",
|
| 1176 |
-
" <th>Epsilon_9/29/2020</th>\n",
|
| 1177 |
-
" <th>Epsilon_9/3/2014</th>\n",
|
| 1178 |
-
" <th>Epsilon_9/7/2020</th>\n",
|
| 1179 |
-
" <th>Epsilon_9/8/2020</th>\n",
|
| 1180 |
-
" <th>Epsilon_9/9/2014</th>\n",
|
| 1181 |
-
" <th>Epsilon_Unknown</th>\n",
|
| 1182 |
-
" </tr>\n",
|
| 1183 |
-
" </thead>\n",
|
| 1184 |
-
" <tbody>\n",
|
| 1185 |
-
" <tr>\n",
|
| 1186 |
-
" <th>0</th>\n",
|
| 1187 |
-
" <td>False</td>\n",
|
| 1188 |
-
" <td>False</td>\n",
|
| 1189 |
-
" <td>False</td>\n",
|
| 1190 |
-
" <td>False</td>\n",
|
| 1191 |
-
" <td>False</td>\n",
|
| 1192 |
-
" <td>False</td>\n",
|
| 1193 |
-
" <td>False</td>\n",
|
| 1194 |
-
" <td>False</td>\n",
|
| 1195 |
-
" <td>False</td>\n",
|
| 1196 |
-
" <td>False</td>\n",
|
| 1197 |
-
" <td>...</td>\n",
|
| 1198 |
-
" <td>False</td>\n",
|
| 1199 |
-
" <td>False</td>\n",
|
| 1200 |
-
" <td>False</td>\n",
|
| 1201 |
-
" <td>False</td>\n",
|
| 1202 |
-
" <td>False</td>\n",
|
| 1203 |
-
" <td>False</td>\n",
|
| 1204 |
-
" <td>False</td>\n",
|
| 1205 |
-
" <td>False</td>\n",
|
| 1206 |
-
" <td>False</td>\n",
|
| 1207 |
-
" <td>False</td>\n",
|
| 1208 |
-
" </tr>\n",
|
| 1209 |
-
" <tr>\n",
|
| 1210 |
-
" <th>1</th>\n",
|
| 1211 |
-
" <td>False</td>\n",
|
| 1212 |
-
" <td>False</td>\n",
|
| 1213 |
-
" <td>False</td>\n",
|
| 1214 |
-
" <td>False</td>\n",
|
| 1215 |
-
" <td>False</td>\n",
|
| 1216 |
-
" <td>False</td>\n",
|
| 1217 |
-
" <td>False</td>\n",
|
| 1218 |
-
" <td>False</td>\n",
|
| 1219 |
-
" <td>False</td>\n",
|
| 1220 |
-
" <td>False</td>\n",
|
| 1221 |
-
" <td>...</td>\n",
|
| 1222 |
-
" <td>False</td>\n",
|
| 1223 |
-
" <td>False</td>\n",
|
| 1224 |
-
" <td>False</td>\n",
|
| 1225 |
-
" <td>False</td>\n",
|
| 1226 |
-
" <td>False</td>\n",
|
| 1227 |
-
" <td>False</td>\n",
|
| 1228 |
-
" <td>False</td>\n",
|
| 1229 |
-
" <td>False</td>\n",
|
| 1230 |
-
" <td>False</td>\n",
|
| 1231 |
-
" <td>False</td>\n",
|
| 1232 |
-
" </tr>\n",
|
| 1233 |
-
" <tr>\n",
|
| 1234 |
-
" <th>2</th>\n",
|
| 1235 |
-
" <td>False</td>\n",
|
| 1236 |
-
" <td>False</td>\n",
|
| 1237 |
-
" <td>False</td>\n",
|
| 1238 |
-
" <td>False</td>\n",
|
| 1239 |
-
" <td>False</td>\n",
|
| 1240 |
-
" <td>False</td>\n",
|
| 1241 |
-
" <td>False</td>\n",
|
| 1242 |
-
" <td>False</td>\n",
|
| 1243 |
-
" <td>False</td>\n",
|
| 1244 |
-
" <td>False</td>\n",
|
| 1245 |
-
" <td>...</td>\n",
|
| 1246 |
-
" <td>False</td>\n",
|
| 1247 |
-
" <td>False</td>\n",
|
| 1248 |
-
" <td>False</td>\n",
|
| 1249 |
-
" <td>False</td>\n",
|
| 1250 |
-
" <td>False</td>\n",
|
| 1251 |
-
" <td>False</td>\n",
|
| 1252 |
-
" <td>False</td>\n",
|
| 1253 |
-
" <td>False</td>\n",
|
| 1254 |
-
" <td>False</td>\n",
|
| 1255 |
-
" <td>False</td>\n",
|
| 1256 |
-
" </tr>\n",
|
| 1257 |
-
" <tr>\n",
|
| 1258 |
-
" <th>3</th>\n",
|
| 1259 |
-
" <td>False</td>\n",
|
| 1260 |
-
" <td>False</td>\n",
|
| 1261 |
-
" <td>False</td>\n",
|
| 1262 |
-
" <td>False</td>\n",
|
| 1263 |
-
" <td>False</td>\n",
|
| 1264 |
-
" <td>False</td>\n",
|
| 1265 |
-
" <td>False</td>\n",
|
| 1266 |
-
" <td>False</td>\n",
|
| 1267 |
-
" <td>False</td>\n",
|
| 1268 |
-
" <td>False</td>\n",
|
| 1269 |
-
" <td>...</td>\n",
|
| 1270 |
-
" <td>False</td>\n",
|
| 1271 |
-
" <td>False</td>\n",
|
| 1272 |
-
" <td>False</td>\n",
|
| 1273 |
-
" <td>False</td>\n",
|
| 1274 |
-
" <td>False</td>\n",
|
| 1275 |
-
" <td>False</td>\n",
|
| 1276 |
-
" <td>False</td>\n",
|
| 1277 |
-
" <td>False</td>\n",
|
| 1278 |
-
" <td>False</td>\n",
|
| 1279 |
-
" <td>False</td>\n",
|
| 1280 |
-
" </tr>\n",
|
| 1281 |
-
" <tr>\n",
|
| 1282 |
-
" <th>4</th>\n",
|
| 1283 |
-
" <td>False</td>\n",
|
| 1284 |
-
" <td>False</td>\n",
|
| 1285 |
-
" <td>False</td>\n",
|
| 1286 |
-
" <td>False</td>\n",
|
| 1287 |
-
" <td>False</td>\n",
|
| 1288 |
-
" <td>False</td>\n",
|
| 1289 |
-
" <td>False</td>\n",
|
| 1290 |
-
" <td>False</td>\n",
|
| 1291 |
-
" <td>False</td>\n",
|
| 1292 |
-
" <td>False</td>\n",
|
| 1293 |
-
" <td>...</td>\n",
|
| 1294 |
-
" <td>False</td>\n",
|
| 1295 |
-
" <td>False</td>\n",
|
| 1296 |
-
" <td>False</td>\n",
|
| 1297 |
-
" <td>False</td>\n",
|
| 1298 |
-
" <td>False</td>\n",
|
| 1299 |
-
" <td>False</td>\n",
|
| 1300 |
-
" <td>False</td>\n",
|
| 1301 |
-
" <td>False</td>\n",
|
| 1302 |
-
" <td>False</td>\n",
|
| 1303 |
-
" <td>False</td>\n",
|
| 1304 |
-
" </tr>\n",
|
| 1305 |
-
" <tr>\n",
|
| 1306 |
-
" <th>...</th>\n",
|
| 1307 |
-
" <td>...</td>\n",
|
| 1308 |
-
" <td>...</td>\n",
|
| 1309 |
-
" <td>...</td>\n",
|
| 1310 |
-
" <td>...</td>\n",
|
| 1311 |
-
" <td>...</td>\n",
|
| 1312 |
-
" <td>...</td>\n",
|
| 1313 |
-
" <td>...</td>\n",
|
| 1314 |
-
" <td>...</td>\n",
|
| 1315 |
-
" <td>...</td>\n",
|
| 1316 |
-
" <td>...</td>\n",
|
| 1317 |
-
" <td>...</td>\n",
|
| 1318 |
-
" <td>...</td>\n",
|
| 1319 |
-
" <td>...</td>\n",
|
| 1320 |
-
" <td>...</td>\n",
|
| 1321 |
-
" <td>...</td>\n",
|
| 1322 |
-
" <td>...</td>\n",
|
| 1323 |
-
" <td>...</td>\n",
|
| 1324 |
-
" <td>...</td>\n",
|
| 1325 |
-
" <td>...</td>\n",
|
| 1326 |
-
" <td>...</td>\n",
|
| 1327 |
-
" <td>...</td>\n",
|
| 1328 |
-
" </tr>\n",
|
| 1329 |
-
" <tr>\n",
|
| 1330 |
-
" <th>619</th>\n",
|
| 1331 |
-
" <td>False</td>\n",
|
| 1332 |
-
" <td>False</td>\n",
|
| 1333 |
-
" <td>False</td>\n",
|
| 1334 |
-
" <td>False</td>\n",
|
| 1335 |
-
" <td>False</td>\n",
|
| 1336 |
-
" <td>False</td>\n",
|
| 1337 |
-
" <td>False</td>\n",
|
| 1338 |
-
" <td>False</td>\n",
|
| 1339 |
-
" <td>False</td>\n",
|
| 1340 |
-
" <td>False</td>\n",
|
| 1341 |
-
" <td>...</td>\n",
|
| 1342 |
-
" <td>False</td>\n",
|
| 1343 |
-
" <td>False</td>\n",
|
| 1344 |
-
" <td>False</td>\n",
|
| 1345 |
-
" <td>False</td>\n",
|
| 1346 |
-
" <td>False</td>\n",
|
| 1347 |
-
" <td>False</td>\n",
|
| 1348 |
-
" <td>False</td>\n",
|
| 1349 |
-
" <td>False</td>\n",
|
| 1350 |
-
" <td>False</td>\n",
|
| 1351 |
-
" <td>False</td>\n",
|
| 1352 |
-
" </tr>\n",
|
| 1353 |
-
" <tr>\n",
|
| 1354 |
-
" <th>620</th>\n",
|
| 1355 |
-
" <td>False</td>\n",
|
| 1356 |
-
" <td>False</td>\n",
|
| 1357 |
-
" <td>False</td>\n",
|
| 1358 |
-
" <td>False</td>\n",
|
| 1359 |
-
" <td>False</td>\n",
|
| 1360 |
-
" <td>False</td>\n",
|
| 1361 |
-
" <td>False</td>\n",
|
| 1362 |
-
" <td>False</td>\n",
|
| 1363 |
-
" <td>False</td>\n",
|
| 1364 |
-
" <td>False</td>\n",
|
| 1365 |
-
" <td>...</td>\n",
|
| 1366 |
-
" <td>False</td>\n",
|
| 1367 |
-
" <td>False</td>\n",
|
| 1368 |
-
" <td>False</td>\n",
|
| 1369 |
-
" <td>False</td>\n",
|
| 1370 |
-
" <td>False</td>\n",
|
| 1371 |
-
" <td>False</td>\n",
|
| 1372 |
-
" <td>False</td>\n",
|
| 1373 |
-
" <td>False</td>\n",
|
| 1374 |
-
" <td>False</td>\n",
|
| 1375 |
-
" <td>False</td>\n",
|
| 1376 |
-
" </tr>\n",
|
| 1377 |
-
" <tr>\n",
|
| 1378 |
-
" <th>621</th>\n",
|
| 1379 |
-
" <td>False</td>\n",
|
| 1380 |
-
" <td>False</td>\n",
|
| 1381 |
-
" <td>False</td>\n",
|
| 1382 |
-
" <td>False</td>\n",
|
| 1383 |
-
" <td>False</td>\n",
|
| 1384 |
-
" <td>False</td>\n",
|
| 1385 |
-
" <td>False</td>\n",
|
| 1386 |
-
" <td>False</td>\n",
|
| 1387 |
-
" <td>False</td>\n",
|
| 1388 |
-
" <td>False</td>\n",
|
| 1389 |
-
" <td>...</td>\n",
|
| 1390 |
-
" <td>False</td>\n",
|
| 1391 |
-
" <td>False</td>\n",
|
| 1392 |
-
" <td>False</td>\n",
|
| 1393 |
-
" <td>False</td>\n",
|
| 1394 |
-
" <td>False</td>\n",
|
| 1395 |
-
" <td>False</td>\n",
|
| 1396 |
-
" <td>False</td>\n",
|
| 1397 |
-
" <td>False</td>\n",
|
| 1398 |
-
" <td>False</td>\n",
|
| 1399 |
-
" <td>False</td>\n",
|
| 1400 |
-
" </tr>\n",
|
| 1401 |
-
" <tr>\n",
|
| 1402 |
-
" <th>622</th>\n",
|
| 1403 |
-
" <td>False</td>\n",
|
| 1404 |
-
" <td>False</td>\n",
|
| 1405 |
-
" <td>False</td>\n",
|
| 1406 |
-
" <td>False</td>\n",
|
| 1407 |
-
" <td>False</td>\n",
|
| 1408 |
-
" <td>False</td>\n",
|
| 1409 |
-
" <td>False</td>\n",
|
| 1410 |
-
" <td>False</td>\n",
|
| 1411 |
-
" <td>False</td>\n",
|
| 1412 |
-
" <td>False</td>\n",
|
| 1413 |
-
" <td>...</td>\n",
|
| 1414 |
-
" <td>False</td>\n",
|
| 1415 |
-
" <td>False</td>\n",
|
| 1416 |
-
" <td>False</td>\n",
|
| 1417 |
-
" <td>False</td>\n",
|
| 1418 |
-
" <td>False</td>\n",
|
| 1419 |
-
" <td>False</td>\n",
|
| 1420 |
-
" <td>False</td>\n",
|
| 1421 |
-
" <td>False</td>\n",
|
| 1422 |
-
" <td>False</td>\n",
|
| 1423 |
-
" <td>False</td>\n",
|
| 1424 |
-
" </tr>\n",
|
| 1425 |
-
" <tr>\n",
|
| 1426 |
-
" <th>623</th>\n",
|
| 1427 |
-
" <td>False</td>\n",
|
| 1428 |
-
" <td>False</td>\n",
|
| 1429 |
-
" <td>False</td>\n",
|
| 1430 |
-
" <td>False</td>\n",
|
| 1431 |
-
" <td>False</td>\n",
|
| 1432 |
-
" <td>False</td>\n",
|
| 1433 |
-
" <td>False</td>\n",
|
| 1434 |
-
" <td>False</td>\n",
|
| 1435 |
-
" <td>False</td>\n",
|
| 1436 |
-
" <td>False</td>\n",
|
| 1437 |
-
" <td>...</td>\n",
|
| 1438 |
-
" <td>False</td>\n",
|
| 1439 |
-
" <td>False</td>\n",
|
| 1440 |
-
" <td>False</td>\n",
|
| 1441 |
-
" <td>False</td>\n",
|
| 1442 |
-
" <td>False</td>\n",
|
| 1443 |
-
" <td>False</td>\n",
|
| 1444 |
-
" <td>False</td>\n",
|
| 1445 |
-
" <td>False</td>\n",
|
| 1446 |
-
" <td>False</td>\n",
|
| 1447 |
-
" <td>False</td>\n",
|
| 1448 |
-
" </tr>\n",
|
| 1449 |
-
" </tbody>\n",
|
| 1450 |
-
"</table>\n",
|
| 1451 |
-
"<p>624 rows × 18532 columns</p>\n",
|
| 1452 |
-
"</div>"
|
| 1453 |
-
],
|
| 1454 |
-
"text/plain": [
|
| 1455 |
-
" AB_0.11 AB_0.12 AB_0.16 AB_0.18 AB_0.19 AB_0.2 AB_0.21 AB_0.24 \\\n",
|
| 1456 |
-
"0 False False False False False False False False \n",
|
| 1457 |
-
"1 False False False False False False False False \n",
|
| 1458 |
-
"2 False False False False False False False False \n",
|
| 1459 |
-
"3 False False False False False False False False \n",
|
| 1460 |
-
"4 False False False False False False False False \n",
|
| 1461 |
-
".. ... ... ... ... ... ... ... ... \n",
|
| 1462 |
-
"619 False False False False False False False False \n",
|
| 1463 |
-
"620 False False False False False False False False \n",
|
| 1464 |
-
"621 False False False False False False False False \n",
|
| 1465 |
-
"622 False False False False False False False False \n",
|
| 1466 |
-
"623 False False False False False False False False \n",
|
| 1467 |
-
"\n",
|
| 1468 |
-
" AB_0.25 AB_0.28 ... Epsilon_9/19/2018 Epsilon_9/20/2018 \\\n",
|
| 1469 |
-
"0 False False ... False False \n",
|
| 1470 |
-
"1 False False ... False False \n",
|
| 1471 |
-
"2 False False ... False False \n",
|
| 1472 |
-
"3 False False ... False False \n",
|
| 1473 |
-
"4 False False ... False False \n",
|
| 1474 |
-
".. ... ... ... ... ... \n",
|
| 1475 |
-
"619 False False ... False False \n",
|
| 1476 |
-
"620 False False ... False False \n",
|
| 1477 |
-
"621 False False ... False False \n",
|
| 1478 |
-
"622 False False ... False False \n",
|
| 1479 |
-
"623 False False ... False False \n",
|
| 1480 |
-
"\n",
|
| 1481 |
-
" Epsilon_9/20/2019 Epsilon_9/27/2019 Epsilon_9/29/2020 \\\n",
|
| 1482 |
-
"0 False False False \n",
|
| 1483 |
-
"1 False False False \n",
|
| 1484 |
-
"2 False False False \n",
|
| 1485 |
-
"3 False False False \n",
|
| 1486 |
-
"4 False False False \n",
|
| 1487 |
-
".. ... ... ... \n",
|
| 1488 |
-
"619 False False False \n",
|
| 1489 |
-
"620 False False False \n",
|
| 1490 |
-
"621 False False False \n",
|
| 1491 |
-
"622 False False False \n",
|
| 1492 |
-
"623 False False False \n",
|
| 1493 |
-
"\n",
|
| 1494 |
-
" Epsilon_9/3/2014 Epsilon_9/7/2020 Epsilon_9/8/2020 Epsilon_9/9/2014 \\\n",
|
| 1495 |
-
"0 False False False False \n",
|
| 1496 |
-
"1 False False False False \n",
|
| 1497 |
-
"2 False False False False \n",
|
| 1498 |
-
"3 False False False False \n",
|
| 1499 |
-
"4 False False False False \n",
|
| 1500 |
-
".. ... ... ... ... \n",
|
| 1501 |
-
"619 False False False False \n",
|
| 1502 |
-
"620 False False False False \n",
|
| 1503 |
-
"621 False False False False \n",
|
| 1504 |
-
"622 False False False False \n",
|
| 1505 |
-
"623 False False False False \n",
|
| 1506 |
-
"\n",
|
| 1507 |
-
" Epsilon_Unknown \n",
|
| 1508 |
-
"0 False \n",
|
| 1509 |
-
"1 False \n",
|
| 1510 |
-
"2 False \n",
|
| 1511 |
-
"3 False \n",
|
| 1512 |
-
"4 False \n",
|
| 1513 |
-
".. ... \n",
|
| 1514 |
-
"619 False \n",
|
| 1515 |
-
"620 False \n",
|
| 1516 |
-
"621 False \n",
|
| 1517 |
-
"622 False \n",
|
| 1518 |
-
"623 False \n",
|
| 1519 |
-
"\n",
|
| 1520 |
-
"[624 rows x 18532 columns]"
|
| 1521 |
-
]
|
| 1522 |
-
},
|
| 1523 |
-
"execution_count": 10,
|
| 1524 |
-
"metadata": {},
|
| 1525 |
-
"output_type": "execute_result"
|
| 1526 |
-
}
|
| 1527 |
-
],
|
| 1528 |
-
"source": [
|
| 1529 |
-
"train_df"
|
| 1530 |
-
]
|
| 1531 |
-
},
|
| 1532 |
-
{
|
| 1533 |
-
"cell_type": "code",
|
| 1534 |
-
"execution_count": 11,
|
| 1535 |
-
"metadata": {
|
| 1536 |
-
"execution": {
|
| 1537 |
-
"iopub.execute_input": "2023-07-23T05:07:31.553497Z",
|
| 1538 |
-
"iopub.status.busy": "2023-07-23T05:07:31.553072Z",
|
| 1539 |
-
"iopub.status.idle": "2023-07-23T05:07:31.576077Z",
|
| 1540 |
-
"shell.execute_reply": "2023-07-23T05:07:31.575058Z",
|
| 1541 |
-
"shell.execute_reply.started": "2023-07-23T05:07:31.553466Z"
|
| 1542 |
-
}
|
| 1543 |
-
},
|
| 1544 |
-
"outputs": [
|
| 1545 |
-
{
|
| 1546 |
-
"data": {
|
| 1547 |
-
"text/html": [
|
| 1548 |
-
"<div>\n",
|
| 1549 |
-
"<style scoped>\n",
|
| 1550 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 1551 |
-
" vertical-align: middle;\n",
|
| 1552 |
-
" }\n",
|
| 1553 |
-
"\n",
|
| 1554 |
-
" .dataframe tbody tr th {\n",
|
| 1555 |
-
" vertical-align: top;\n",
|
| 1556 |
-
" }\n",
|
| 1557 |
-
"\n",
|
| 1558 |
-
" .dataframe thead th {\n",
|
| 1559 |
-
" text-align: right;\n",
|
| 1560 |
-
" }\n",
|
| 1561 |
-
"</style>\n",
|
| 1562 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 1563 |
-
" <thead>\n",
|
| 1564 |
-
" <tr style=\"text-align: right;\">\n",
|
| 1565 |
-
" <th></th>\n",
|
| 1566 |
-
" <th>AB_0.0</th>\n",
|
| 1567 |
-
" <th>AF_0.0</th>\n",
|
| 1568 |
-
" <th>AH_0.0</th>\n",
|
| 1569 |
-
" <th>AM_0.0</th>\n",
|
| 1570 |
-
" <th>AR_0.0</th>\n",
|
| 1571 |
-
" <th>AX_0.0</th>\n",
|
| 1572 |
-
" <th>AY_0.0</th>\n",
|
| 1573 |
-
" <th>AZ_0.0</th>\n",
|
| 1574 |
-
" <th>BC_0.0</th>\n",
|
| 1575 |
-
" <th>BD _0.0</th>\n",
|
| 1576 |
-
" <th>...</th>\n",
|
| 1577 |
-
" <th>FI_0.0</th>\n",
|
| 1578 |
-
" <th>FL_0.0</th>\n",
|
| 1579 |
-
" <th>FR_0.0</th>\n",
|
| 1580 |
-
" <th>FS_0.0</th>\n",
|
| 1581 |
-
" <th>GB_0.0</th>\n",
|
| 1582 |
-
" <th>GE_0.0</th>\n",
|
| 1583 |
-
" <th>GF_0.0</th>\n",
|
| 1584 |
-
" <th>GH_0.0</th>\n",
|
| 1585 |
-
" <th>GI_0.0</th>\n",
|
| 1586 |
-
" <th>GL_0.0</th>\n",
|
| 1587 |
-
" </tr>\n",
|
| 1588 |
-
" </thead>\n",
|
| 1589 |
-
" <tbody>\n",
|
| 1590 |
-
" <tr>\n",
|
| 1591 |
-
" <th>0</th>\n",
|
| 1592 |
-
" <td>True</td>\n",
|
| 1593 |
-
" <td>True</td>\n",
|
| 1594 |
-
" <td>True</td>\n",
|
| 1595 |
-
" <td>True</td>\n",
|
| 1596 |
-
" <td>True</td>\n",
|
| 1597 |
-
" <td>True</td>\n",
|
| 1598 |
-
" <td>True</td>\n",
|
| 1599 |
-
" <td>True</td>\n",
|
| 1600 |
-
" <td>True</td>\n",
|
| 1601 |
-
" <td>True</td>\n",
|
| 1602 |
-
" <td>...</td>\n",
|
| 1603 |
-
" <td>True</td>\n",
|
| 1604 |
-
" <td>True</td>\n",
|
| 1605 |
-
" <td>True</td>\n",
|
| 1606 |
-
" <td>True</td>\n",
|
| 1607 |
-
" <td>True</td>\n",
|
| 1608 |
-
" <td>True</td>\n",
|
| 1609 |
-
" <td>True</td>\n",
|
| 1610 |
-
" <td>True</td>\n",
|
| 1611 |
-
" <td>True</td>\n",
|
| 1612 |
-
" <td>True</td>\n",
|
| 1613 |
-
" </tr>\n",
|
| 1614 |
-
" <tr>\n",
|
| 1615 |
-
" <th>1</th>\n",
|
| 1616 |
-
" <td>True</td>\n",
|
| 1617 |
-
" <td>True</td>\n",
|
| 1618 |
-
" <td>True</td>\n",
|
| 1619 |
-
" <td>True</td>\n",
|
| 1620 |
-
" <td>True</td>\n",
|
| 1621 |
-
" <td>True</td>\n",
|
| 1622 |
-
" <td>True</td>\n",
|
| 1623 |
-
" <td>True</td>\n",
|
| 1624 |
-
" <td>True</td>\n",
|
| 1625 |
-
" <td>True</td>\n",
|
| 1626 |
-
" <td>...</td>\n",
|
| 1627 |
-
" <td>True</td>\n",
|
| 1628 |
-
" <td>True</td>\n",
|
| 1629 |
-
" <td>True</td>\n",
|
| 1630 |
-
" <td>True</td>\n",
|
| 1631 |
-
" <td>True</td>\n",
|
| 1632 |
-
" <td>True</td>\n",
|
| 1633 |
-
" <td>True</td>\n",
|
| 1634 |
-
" <td>True</td>\n",
|
| 1635 |
-
" <td>True</td>\n",
|
| 1636 |
-
" <td>True</td>\n",
|
| 1637 |
-
" </tr>\n",
|
| 1638 |
-
" <tr>\n",
|
| 1639 |
-
" <th>2</th>\n",
|
| 1640 |
-
" <td>True</td>\n",
|
| 1641 |
-
" <td>True</td>\n",
|
| 1642 |
-
" <td>True</td>\n",
|
| 1643 |
-
" <td>True</td>\n",
|
| 1644 |
-
" <td>True</td>\n",
|
| 1645 |
-
" <td>True</td>\n",
|
| 1646 |
-
" <td>True</td>\n",
|
| 1647 |
-
" <td>True</td>\n",
|
| 1648 |
-
" <td>True</td>\n",
|
| 1649 |
-
" <td>True</td>\n",
|
| 1650 |
-
" <td>...</td>\n",
|
| 1651 |
-
" <td>True</td>\n",
|
| 1652 |
-
" <td>True</td>\n",
|
| 1653 |
-
" <td>True</td>\n",
|
| 1654 |
-
" <td>True</td>\n",
|
| 1655 |
-
" <td>True</td>\n",
|
| 1656 |
-
" <td>True</td>\n",
|
| 1657 |
-
" <td>True</td>\n",
|
| 1658 |
-
" <td>True</td>\n",
|
| 1659 |
-
" <td>True</td>\n",
|
| 1660 |
-
" <td>True</td>\n",
|
| 1661 |
-
" </tr>\n",
|
| 1662 |
-
" <tr>\n",
|
| 1663 |
-
" <th>3</th>\n",
|
| 1664 |
-
" <td>True</td>\n",
|
| 1665 |
-
" <td>True</td>\n",
|
| 1666 |
-
" <td>True</td>\n",
|
| 1667 |
-
" <td>True</td>\n",
|
| 1668 |
-
" <td>True</td>\n",
|
| 1669 |
-
" <td>True</td>\n",
|
| 1670 |
-
" <td>True</td>\n",
|
| 1671 |
-
" <td>True</td>\n",
|
| 1672 |
-
" <td>True</td>\n",
|
| 1673 |
-
" <td>True</td>\n",
|
| 1674 |
-
" <td>...</td>\n",
|
| 1675 |
-
" <td>True</td>\n",
|
| 1676 |
-
" <td>True</td>\n",
|
| 1677 |
-
" <td>True</td>\n",
|
| 1678 |
-
" <td>True</td>\n",
|
| 1679 |
-
" <td>True</td>\n",
|
| 1680 |
-
" <td>True</td>\n",
|
| 1681 |
-
" <td>True</td>\n",
|
| 1682 |
-
" <td>True</td>\n",
|
| 1683 |
-
" <td>True</td>\n",
|
| 1684 |
-
" <td>True</td>\n",
|
| 1685 |
-
" </tr>\n",
|
| 1686 |
-
" <tr>\n",
|
| 1687 |
-
" <th>4</th>\n",
|
| 1688 |
-
" <td>True</td>\n",
|
| 1689 |
-
" <td>True</td>\n",
|
| 1690 |
-
" <td>True</td>\n",
|
| 1691 |
-
" <td>True</td>\n",
|
| 1692 |
-
" <td>True</td>\n",
|
| 1693 |
-
" <td>True</td>\n",
|
| 1694 |
-
" <td>True</td>\n",
|
| 1695 |
-
" <td>True</td>\n",
|
| 1696 |
-
" <td>True</td>\n",
|
| 1697 |
-
" <td>True</td>\n",
|
| 1698 |
-
" <td>...</td>\n",
|
| 1699 |
-
" <td>True</td>\n",
|
| 1700 |
-
" <td>True</td>\n",
|
| 1701 |
-
" <td>True</td>\n",
|
| 1702 |
-
" <td>True</td>\n",
|
| 1703 |
-
" <td>True</td>\n",
|
| 1704 |
-
" <td>True</td>\n",
|
| 1705 |
-
" <td>True</td>\n",
|
| 1706 |
-
" <td>True</td>\n",
|
| 1707 |
-
" <td>True</td>\n",
|
| 1708 |
-
" <td>True</td>\n",
|
| 1709 |
-
" </tr>\n",
|
| 1710 |
-
" </tbody>\n",
|
| 1711 |
-
"</table>\n",
|
| 1712 |
-
"<p>5 rows × 56 columns</p>\n",
|
| 1713 |
-
"</div>"
|
| 1714 |
-
],
|
| 1715 |
-
"text/plain": [
|
| 1716 |
-
" AB_0.0 AF_0.0 AH_0.0 AM_0.0 AR_0.0 AX_0.0 AY_0.0 AZ_0.0 BC_0.0 \\\n",
|
| 1717 |
-
"0 True True True True True True True True True \n",
|
| 1718 |
-
"1 True True True True True True True True True \n",
|
| 1719 |
-
"2 True True True True True True True True True \n",
|
| 1720 |
-
"3 True True True True True True True True True \n",
|
| 1721 |
-
"4 True True True True True True True True True \n",
|
| 1722 |
-
"\n",
|
| 1723 |
-
" BD _0.0 ... FI_0.0 FL_0.0 FR_0.0 FS_0.0 GB_0.0 GE_0.0 GF_0.0 \\\n",
|
| 1724 |
-
"0 True ... True True True True True True True \n",
|
| 1725 |
-
"1 True ... True True True True True True True \n",
|
| 1726 |
-
"2 True ... True True True True True True True \n",
|
| 1727 |
-
"3 True ... True True True True True True True \n",
|
| 1728 |
-
"4 True ... True True True True True True True \n",
|
| 1729 |
-
"\n",
|
| 1730 |
-
" GH_0.0 GI_0.0 GL_0.0 \n",
|
| 1731 |
-
"0 True True True \n",
|
| 1732 |
-
"1 True True True \n",
|
| 1733 |
-
"2 True True True \n",
|
| 1734 |
-
"3 True True True \n",
|
| 1735 |
-
"4 True True True \n",
|
| 1736 |
-
"\n",
|
| 1737 |
-
"[5 rows x 56 columns]"
|
| 1738 |
-
]
|
| 1739 |
-
},
|
| 1740 |
-
"execution_count": 11,
|
| 1741 |
-
"metadata": {},
|
| 1742 |
-
"output_type": "execute_result"
|
| 1743 |
-
}
|
| 1744 |
-
],
|
| 1745 |
-
"source": [
|
| 1746 |
-
"test_df"
|
| 1747 |
-
]
|
| 1748 |
-
},
|
| 1749 |
-
{
|
| 1750 |
-
"cell_type": "code",
|
| 1751 |
-
"execution_count": 12,
|
| 1752 |
"metadata": {
|
| 1753 |
"execution": {
|
| 1754 |
"iopub.execute_input": "2023-07-23T05:09:17.792882Z",
|
|
@@ -1766,7 +274,7 @@
|
|
| 1766 |
"traceback": [
|
| 1767 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1768 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 1769 |
-
"\u001b[0;32m<ipython-input-
|
| 1770 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/_set_output.py\u001b[0m in \u001b[0;36mwrapped\u001b[0;34m(self, X, *args, **kwargs)\u001b[0m\n\u001b[1;32m 138\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mwraps\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 139\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mwrapped\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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--> 140\u001b[0;31m \u001b[0mdata_to_wrap\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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 141\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata_to_wrap\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtuple\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 142\u001b[0m \u001b[0;31m# only wrap the first output for cross decomposition\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1771 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_data.py\u001b[0m in \u001b[0;36mtransform\u001b[0;34m(self, X, copy)\u001b[0m\n\u001b[1;32m 990\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 991\u001b[0m \u001b[0mcopy\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcopy\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mcopy\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32melse\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcopy\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 992\u001b[0;31m X = self._validate_data(\n\u001b[0m\u001b[1;32m 993\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 994\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1772 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 546\u001b[0m \u001b[0mvalidated\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 547\u001b[0m \"\"\"\n\u001b[0;32m--> 548\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_check_feature_names\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mreset\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 549\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 550\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_tags\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"requires_y\"\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",
|
|
|
|
| 106 |
},
|
| 107 |
{
|
| 108 |
"cell_type": "code",
|
| 109 |
+
"execution_count": null,
|
| 110 |
"metadata": {
|
| 111 |
"execution": {
|
| 112 |
"iopub.execute_input": "2023-07-23T04:58:48.511496Z",
|
|
|
|
| 116 |
"shell.execute_reply.started": "2023-07-23T04:58:48.511450Z"
|
| 117 |
}
|
| 118 |
},
|
| 119 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
"source": [
|
| 121 |
"train_df.head()"
|
| 122 |
]
|
| 123 |
},
|
| 124 |
{
|
| 125 |
"cell_type": "code",
|
| 126 |
+
"execution_count": 3,
|
| 127 |
"metadata": {
|
| 128 |
"execution": {
|
| 129 |
"iopub.execute_input": "2023-07-23T04:58:48.542550Z",
|
|
|
|
| 157 |
},
|
| 158 |
{
|
| 159 |
"cell_type": "code",
|
| 160 |
+
"execution_count": null,
|
| 161 |
"metadata": {},
|
| 162 |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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
"source": [
|
| 164 |
"train_df"
|
| 165 |
]
|
| 166 |
},
|
| 167 |
{
|
| 168 |
"cell_type": "code",
|
| 169 |
+
"execution_count": null,
|
| 170 |
"metadata": {
|
| 171 |
"execution": {
|
| 172 |
"iopub.execute_input": "2023-07-23T04:58:48.649931Z",
|
|
|
|
| 176 |
"shell.execute_reply.started": "2023-07-23T04:58:48.649901Z"
|
| 177 |
}
|
| 178 |
},
|
| 179 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
"source": [
|
| 181 |
"train_df.columns"
|
| 182 |
]
|
| 183 |
},
|
| 184 |
{
|
| 185 |
"cell_type": "code",
|
| 186 |
+
"execution_count": 4,
|
| 187 |
"metadata": {
|
| 188 |
"execution": {
|
| 189 |
"iopub.execute_input": "2023-07-23T04:58:48.660111Z",
|
|
|
|
| 202 |
},
|
| 203 |
{
|
| 204 |
"cell_type": "code",
|
| 205 |
+
"execution_count": null,
|
| 206 |
"metadata": {
|
| 207 |
"execution": {
|
| 208 |
"iopub.execute_input": "2023-07-23T04:58:48.676200Z",
|
|
|
|
| 212 |
"shell.execute_reply.started": "2023-07-23T04:58:48.676155Z"
|
| 213 |
}
|
| 214 |
},
|
| 215 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
"source": [
|
| 217 |
"train_df.describe()"
|
| 218 |
]
|
|
|
|
| 236 |
},
|
| 237 |
{
|
| 238 |
"cell_type": "code",
|
| 239 |
+
"execution_count": 5,
|
| 240 |
"metadata": {
|
| 241 |
"execution": {
|
| 242 |
"iopub.execute_input": "2023-07-23T05:05:03.040447Z",
|
|
|
|
| 256 |
},
|
| 257 |
{
|
| 258 |
"cell_type": "code",
|
| 259 |
+
"execution_count": 6,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
"metadata": {
|
| 261 |
"execution": {
|
| 262 |
"iopub.execute_input": "2023-07-23T05:09:17.792882Z",
|
|
|
|
| 274 |
"traceback": [
|
| 275 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 276 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 277 |
+
"\u001b[0;32m<ipython-input-6-3ea0965a5d70>\u001b[0m in \u001b[0;36m<cell line: 4>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mscaler\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mStandardScaler\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[0mtrain_df\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscaler\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit_transform\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrain_df\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[0mtest_df\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscaler\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransform\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtest_df\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
| 278 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/_set_output.py\u001b[0m in \u001b[0;36mwrapped\u001b[0;34m(self, X, *args, **kwargs)\u001b[0m\n\u001b[1;32m 138\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mwraps\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 139\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mwrapped\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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--> 140\u001b[0;31m \u001b[0mdata_to_wrap\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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 141\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata_to_wrap\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtuple\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 142\u001b[0m \u001b[0;31m# only wrap the first output for cross decomposition\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 279 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_data.py\u001b[0m in \u001b[0;36mtransform\u001b[0;34m(self, X, copy)\u001b[0m\n\u001b[1;32m 990\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 991\u001b[0m \u001b[0mcopy\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcopy\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mcopy\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32melse\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcopy\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 992\u001b[0;31m X = self._validate_data(\n\u001b[0m\u001b[1;32m 993\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 994\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 280 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 546\u001b[0m \u001b[0mvalidated\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 547\u001b[0m \"\"\"\n\u001b[0;32m--> 548\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_check_feature_names\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mreset\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 549\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 550\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_tags\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"requires_y\"\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",
|
benchmark/sklearn_4/sklearn_4_fixed.ipynb
CHANGED
|
@@ -3115,18 +3115,9 @@
|
|
| 3115 |
"shell.execute_reply.started": "2023-04-04T16:48:34.188967Z"
|
| 3116 |
}
|
| 3117 |
},
|
| 3118 |
-
"outputs": [
|
| 3119 |
-
{
|
| 3120 |
-
"name": "stdout",
|
| 3121 |
-
"output_type": "stream",
|
| 3122 |
-
"text": [
|
| 3123 |
-
"CPU times: user 48.5 ms, sys: 29.2 ms, total: 77.7 ms\n",
|
| 3124 |
-
"Wall time: 127 ms\n"
|
| 3125 |
-
]
|
| 3126 |
-
}
|
| 3127 |
-
],
|
| 3128 |
"source": [
|
| 3129 |
-
"%%time\n",
|
| 3130 |
"# Adaboost (Boosting of multiple Decision Trees)\n",
|
| 3131 |
"from sklearn.ensemble import AdaBoostRegressor\n",
|
| 3132 |
"ml_support_obj = ml_support()\n",
|
|
@@ -3171,18 +3162,10 @@
|
|
| 3171 |
"/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py:424: FutureWarning: `max_features='auto'` has been deprecated in 1.1 and will be removed in 1.3. To keep the past behaviour, explicitly set `max_features='sqrt'` or remove this parameter as it is also the default value for RandomForestClassifiers and ExtraTreesClassifiers.\n",
|
| 3172 |
" warn(\n"
|
| 3173 |
]
|
| 3174 |
-
},
|
| 3175 |
-
{
|
| 3176 |
-
"name": "stdout",
|
| 3177 |
-
"output_type": "stream",
|
| 3178 |
-
"text": [
|
| 3179 |
-
"CPU times: user 31.6 s, sys: 3.01 s, total: 34.7 s\n",
|
| 3180 |
-
"Wall time: 32 s\n"
|
| 3181 |
-
]
|
| 3182 |
}
|
| 3183 |
],
|
| 3184 |
"source": [
|
| 3185 |
-
"%%time\n",
|
| 3186 |
"preds = ml_support_obj.predit_with_pipeline(finalized_pipeline,X_train,X_test,y_train)"
|
| 3187 |
]
|
| 3188 |
},
|
|
@@ -3214,7 +3197,7 @@
|
|
| 3214 |
},
|
| 3215 |
{
|
| 3216 |
"cell_type": "code",
|
| 3217 |
-
"execution_count":
|
| 3218 |
"metadata": {
|
| 3219 |
"execution": {
|
| 3220 |
"iopub.execute_input": "2023-04-04T16:49:05.359095Z",
|
|
@@ -3224,18 +3207,7 @@
|
|
| 3224 |
"shell.execute_reply.started": "2023-04-04T16:49:05.359050Z"
|
| 3225 |
}
|
| 3226 |
},
|
| 3227 |
-
"outputs": [
|
| 3228 |
-
{
|
| 3229 |
-
"data": {
|
| 3230 |
-
"image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roz5w/nteE8rKypSTZ9f321rJFnH23xWFJxxq2e0752/pVSZPnqwpU6acMr579+5KTU1Vu3btdOTIEU2dOlU9e/bUzp07lZOTI6vVqgYNGricExMTo5ycHElSTk7OKe9V9fpMYwoLC3Xy5EmFhoZW67Od18lAVWvAFh7g1f/BwLksyFKvrkMAao5R+T+10eoNj7AoPOLs38ehynOzs7Nls9mc+4ODg087vm/fvs4/d+rUSd27d1fLli21bNmyan9J1xa+QQEApmA3HF5vkmSz2Vw2d8nAbzVo0EAXX3yx9u7dq9jYWJWVlSk/P99lTG5urmJjYyVJsbGxp6wuqHp9pjE2m82jhINkAABgCg4ZXm/eKCoq0r59+9S0aVN169ZN9erV05o1a5zHMzMzlZWVpYSEBElSQkKCduzYoby8POeYtLQ02Ww2xcfHO8f8+hpVY6quUV0kAwAA1IBHHnlE69ev13fffadNmzbp1ltvVWBgoO644w5FRkZq6NChGjNmjD755BNt27ZN9957rxISEtSjRw9JUp8+fRQfH6+77rpLX331lVavXq3HHntMycnJzmrE8OHDtX//fo0bN0579uzR/PnztWzZMqWkpHgU63k9ZwAAgOpyyCGHl+d74uDBg7rjjjv0448/qkmTJrrqqqv0+eefq0mTJpKk2bNnKyAgQAMHDlRpaakSExM1f/585/mBgYFauXKlRowYoYSEBIWFhSkpKUnTpk1zjmndurVWrVqllJQUzZkzR82aNdPChQuVmJjoUazn9X0GCgsLFRkZqePftGECIfxWYlyXug4BqDEVRrnW6T0VFBS4TMrzparviuw9F3i9mqB5+0M1Gmtd4RsUAACTo00AADAFbycBejuB8FxGMgAAMAWHDNlJBk6LNgEAACZHZQAAYAq0CdwjGQAAmILdMGT3YgGdN+ee62gTAABgclQGAACm4Ph58+Z8f0UyAAAwBbuXqwm8OfdcRzIAADAFu1G5eXO+v2LOAAAAJkdlAABgCswZcI9kAABgCg5ZZJfFq/P9FW0CAABMjsoAAMAUHEbl5s35/opkAABgCnYv2wTenHuuo00AAIDJURkAAJgClQH3SAYAAKbgMCxyGF6sJvDi3HM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luGIYmTZqkpk2bKjQ0VL1799a3337rMubYsWMaPHiwbDabGjRooKFDh6qoqMhlzH//+1/17NlTISEhat68uWbOnOnx3w3JAADAHAwfbB4oLi5W586dNW/evNMenzlzpubOnasFCxZo8+bNCgsLU2JiokpKSpxjBg8erF27diktLU0rV67Uhg0bdP/99zuPFxYWqk+fPmrZsqW2bdump556SlOmTNFLL73kUazMGQAAmIOP7kBYWFjosjs4OFjBwcGnDO/bt6/69u3r5lKGnn32WT322GO65ZZbJEmLFi1STEyMli9frttvv127d+/WRx99pC+++EKXX365JOm5557TH//4Rz399NOKi4vT4sWLVVZWpldffVVWq1WXXHKJMjIyNGvWLJek4UyoDAAA4IHmzZsrMjLSuc2YMcPjaxw4cEA5OTnq3bu3c19kZKS6d++u9PR0SVJ6eroaNGjgTAQkqXfv3goICNDmzZudY66++mpZrVbnmMTERGVmZur48ePVjofKAADAFHx1B8Ls7GzZbDbn/tNVBc4kJydHkhQTE+OyPyYmxnksJydH0dHRLseDgoIUFRXlMqZ169anXKPqWMOGDasVD8kAAMAcfNQmsNlsLsmAP6BNAABALYuNjZUk5ebmuuzPzc11HouNjVVeXp7L8YqKCh07dsxlzOmu8ev3qA6SAQCAKVgc3m++0rp1a8XGxmrNmjXOfYWFhdq8ebMSEhIkSQkJCcrPz9e2bducY9auXSuHw6Hu3bs7x2zYsEHl5eXOMWlpaWrXrl21WwQSyQAAwCyq2gTebB4oKipSRkaGMjIyJFVOGszIyFBWVpYsFotGjx6tf/zjH3r//fe1Y8cO3X333YqLi1P//v0lSR06dNANN9yg++67T1u2bNFnn32mkSNH6vbbb1dcXJwk6S9/+YusVquGDh2qXbt2aenSpZozZ47GjBnjUazMGQAAoAZs3bpVvXr1cr6u+oJOSkpSamqqxo0bp+LiYt1///3Kz8/XVVddpY8++kghISHOcxYvXqyRI0fquuuuU0BAgAYOHKi5c+c6j0dGRurjjz9WcnKyunXrpsaNG2vSpEkeLSuUJIthnL9PXigsLFRkZKR6x9ynoADrmU8AzkN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ZLPZ+McSfouf79pVUxWBXwsJCfHLL3FfYWkhAAAmRzIAAIDJkQzAI8HBwZo8ebKCg4PrOhTA5/j5hlmd1xMIAQCA96gMAABgciQDAACYHMkAAAAmRzIAAIDJkQyg2ubNm6dWrVopJCRE3bt315YtW+o6JMAnNmzYoJtuuklxcXGyWCxavnx5XYcE1CqSAVTL0qVLNWbMGE2ePFnbt29X586dlZiYqLy8vLoODfBacXGxOnfurHnz5tV1KECdYGkhqqV79+664oor9Pzzz0uqfC5E8+bNNWrUKE2YMKGOowN8x2Kx6N1331X//v3rOhSg1lAZwBmVlZVp27Zt6t27t3NfQECAevfurfT09DqMDADgCyQDOKMffvhBdrtdMTExLvtjYmKUk5NTR1EBAHyFZAAAAJMjGcAZNW7cWIGBgcrNzXXZn5ubq9jY2DqKCgDgKyQDOCOr1apu3bppzZo1zn0Oh0Nr1qxRQkJCHUYGAPCFoLoOAOeHMWPGKCkpSZdffrmuvPJKPfvssyouLta9995b16EBXisqKtLevXudrw8cOKCMjAxFRUWpRYsWdRgZUDtYWohqe/755/XUU08pJydHXbp00dy5c9W9e/e6Dgvw2rp169SrV69T9iclJSk1NbX2AwJqGckAAAAmx5wBAABMjmQAAACTIxkAAMDkSAYAADA5kgEAAEyOZAAAAJMjGQAAwORIBgAAMDmSAcBL99xzj/r37+98fe2112r06NG1Hse6detksViUn5/vdozFYtHy5curfc0pU6aoS5cuXsX13XffyWKxKCMjw6vrAKg5JAPwS/fcc48sFossFousVqvatm2radOmqaKiosbf+9///remT59erbHV+QIHgJrGg4rgt2644Qa99tprKi0t1QcffKDk5GTVq1dPjz766Cljy8rKZLVaffK+UVFRPrkOANQWKgPwW8HBwYqNjVXLli01YsQI9e7dW++//76kX0r7jz/+uOLi4tSuXTtJUnZ2tm677TY1aNBAUVFRuuWWW/Tdd985r2m32zVmzBg1aNBAjRo10rhx4/Tbx3v8tk1QWlqq8ePHq3nz5goODlbbtm31yiuv6LvvvnM+HKdhw4ayWCy65557JFU+InrGjBlq3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48SnXatKkyVnFEBoa6vE5RUVFkqRVq1a5fAlLlfMgfCU9PV2DBw/W1KlTlZiYqMjISL355pt65plnPI715ZdfPiU5CQwM9FmsAGoWyQD8VlhYmNq2bVvt8V27dtXSpUsVHR19ym/HVZo2barNmzfr6quvllT5G/C2bdvUtWvX047v2LGjHA6H1q9fr969e59yvKoyYbfbnfvi4+MVHBysrKwstxWFDh06OCdDVvn888/P/CF/ZdOmTWrZsqX+/ve/O/d9//33p4zLysrS4cOHFRcX53yfgIAAtWvXTjExMYqLi9P+/fs1ePBgj94fwLmDCYTAzwYPHqzGjRvrlltu0aeffqoDBw5o3bp1evDBB3Xw4EFJ0kMPPaQnn3xSy5cv1549e/TAAw/8z3sEtGrVSklJSRoyZIiWL1/uvOayZcskSS1btpTFYtHKlSt19OhRFRUVKSIiQo888ohSUlL0+uuva9++fdq+fbuee+4556S84cOH69tvv9XYsWOVmZmpJUuWKDU11aPPe9FFFykrK0tvvvmm9u3bp7lz5552MmRISIiSkpL01Vdf6dNPP9WDDz6o2267TbGxsZKkqVOnasaMGZo7d66++eYb7dixQ6+99ppmzZrlUTwA6g7JAPCz+vXra8OGDWrRooUGDBigDh06aOjQoSopKXFWCh5++GHdddddSkpKUkJCgiIiInTrrbf+z+u+8MILGjRokB544AG1b99e9913n4qLiyVJF1xwgaZOnaoJEyYoJiZGI0eOlCRNnz5dEydO1IwZM9ShQwfdcMMNWrVqlVq3bi2pso//zjvvaPny5ercubMWLFigJ554wqPPe/PNNyslJUUjR45Uly5dtGnTJk2cOPGUcW3bttWAAQP0xz/+UX369FGnTp1clg4OGzZMCxcu1GuvvaaOHTvqmmuuUWpqqjNWAOc+i+Fu5hMAADAFKgMAAJgcyQAAACZHMgAAgMmRDAAAYHIkAwAAmBzJAAAAJkcyAACAyZEMAABgciQDAACYHMkAAAAmRzIAAIDJ/T8zrd8KjmlJZgAAAABJRU5ErkJggg==\n",
|
| 3231 |
-
"text/plain": [
|
| 3232 |
-
"<Figure size 640x480 with 2 Axes>"
|
| 3233 |
-
]
|
| 3234 |
-
},
|
| 3235 |
-
"metadata": {},
|
| 3236 |
-
"output_type": "display_data"
|
| 3237 |
-
}
|
| 3238 |
-
],
|
| 3239 |
"source": [
|
| 3240 |
"ml_support_obj.plot_confusion_matrix(y_test, preds, finalized_pipeline)"
|
| 3241 |
]
|
|
|
|
| 3115 |
"shell.execute_reply.started": "2023-04-04T16:48:34.188967Z"
|
| 3116 |
}
|
| 3117 |
},
|
| 3118 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3119 |
"source": [
|
| 3120 |
+
"# %%time\n",
|
| 3121 |
"# Adaboost (Boosting of multiple Decision Trees)\n",
|
| 3122 |
"from sklearn.ensemble import AdaBoostRegressor\n",
|
| 3123 |
"ml_support_obj = ml_support()\n",
|
|
|
|
| 3162 |
"/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py:424: FutureWarning: `max_features='auto'` has been deprecated in 1.1 and will be removed in 1.3. To keep the past behaviour, explicitly set `max_features='sqrt'` or remove this parameter as it is also the default value for RandomForestClassifiers and ExtraTreesClassifiers.\n",
|
| 3163 |
" warn(\n"
|
| 3164 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3165 |
}
|
| 3166 |
],
|
| 3167 |
"source": [
|
| 3168 |
+
"# %%time\n",
|
| 3169 |
"preds = ml_support_obj.predit_with_pipeline(finalized_pipeline,X_train,X_test,y_train)"
|
| 3170 |
]
|
| 3171 |
},
|
|
|
|
| 3197 |
},
|
| 3198 |
{
|
| 3199 |
"cell_type": "code",
|
| 3200 |
+
"execution_count": null,
|
| 3201 |
"metadata": {
|
| 3202 |
"execution": {
|
| 3203 |
"iopub.execute_input": "2023-04-04T16:49:05.359095Z",
|
|
|
|
| 3207 |
"shell.execute_reply.started": "2023-04-04T16:49:05.359050Z"
|
| 3208 |
}
|
| 3209 |
},
|
| 3210 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3211 |
"source": [
|
| 3212 |
"ml_support_obj.plot_confusion_matrix(y_test, preds, finalized_pipeline)"
|
| 3213 |
]
|
benchmark/sklearn_4/sklearn_4_fixed1.ipynb
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/sklearn_4/sklearn_4_fixed2.ipynb
CHANGED
|
@@ -3115,18 +3115,9 @@
|
|
| 3115 |
"shell.execute_reply.started": "2023-04-04T16:48:34.188967Z"
|
| 3116 |
}
|
| 3117 |
},
|
| 3118 |
-
"outputs": [
|
| 3119 |
-
{
|
| 3120 |
-
"name": "stdout",
|
| 3121 |
-
"output_type": "stream",
|
| 3122 |
-
"text": [
|
| 3123 |
-
"CPU times: user 46.7 ms, sys: 28.3 ms, total: 75 ms\n",
|
| 3124 |
-
"Wall time: 85.1 ms\n"
|
| 3125 |
-
]
|
| 3126 |
-
}
|
| 3127 |
-
],
|
| 3128 |
"source": [
|
| 3129 |
-
"%%time\n",
|
| 3130 |
"# Adaboost (Boosting of multiple Decision Trees)\n",
|
| 3131 |
"from sklearn.ensemble import AdaBoostRegressor\n",
|
| 3132 |
"ml_support_obj = ml_support()\n",
|
|
@@ -3168,18 +3159,10 @@
|
|
| 3168 |
"/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_encoders.py:868: FutureWarning: `sparse` was renamed to `sparse_output` in version 1.2 and will be removed in 1.4. `sparse_output` is ignored unless you leave `sparse` to its default value.\n",
|
| 3169 |
" warnings.warn(\n"
|
| 3170 |
]
|
| 3171 |
-
},
|
| 3172 |
-
{
|
| 3173 |
-
"name": "stdout",
|
| 3174 |
-
"output_type": "stream",
|
| 3175 |
-
"text": [
|
| 3176 |
-
"CPU times: user 1.13 s, sys: 3.46 s, total: 4.59 s\n",
|
| 3177 |
-
"Wall time: 738 ms\n"
|
| 3178 |
-
]
|
| 3179 |
}
|
| 3180 |
],
|
| 3181 |
"source": [
|
| 3182 |
-
"%%time\n",
|
| 3183 |
"preds = ml_support_obj.predit_with_pipeline(finalized_pipeline,X_train,X_test,y_train)"
|
| 3184 |
]
|
| 3185 |
},
|
|
@@ -3200,7 +3183,7 @@
|
|
| 3200 |
"name": "stdout",
|
| 3201 |
"output_type": "stream",
|
| 3202 |
"text": [
|
| 3203 |
-
"Balenced Accuracy Score : 0.
|
| 3204 |
]
|
| 3205 |
}
|
| 3206 |
],
|
|
@@ -3226,13 +3209,6 @@
|
|
| 3226 |
"source": [
|
| 3227 |
"ml_support_obj.plot_confusion_matrix(y_test, preds, finalized_pipeline)"
|
| 3228 |
]
|
| 3229 |
-
},
|
| 3230 |
-
{
|
| 3231 |
-
"cell_type": "code",
|
| 3232 |
-
"execution_count": null,
|
| 3233 |
-
"metadata": {},
|
| 3234 |
-
"outputs": [],
|
| 3235 |
-
"source": []
|
| 3236 |
}
|
| 3237 |
],
|
| 3238 |
"metadata": {
|
|
|
|
| 3115 |
"shell.execute_reply.started": "2023-04-04T16:48:34.188967Z"
|
| 3116 |
}
|
| 3117 |
},
|
| 3118 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3119 |
"source": [
|
| 3120 |
+
"# %%time\n",
|
| 3121 |
"# Adaboost (Boosting of multiple Decision Trees)\n",
|
| 3122 |
"from sklearn.ensemble import AdaBoostRegressor\n",
|
| 3123 |
"ml_support_obj = ml_support()\n",
|
|
|
|
| 3159 |
"/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_encoders.py:868: FutureWarning: `sparse` was renamed to `sparse_output` in version 1.2 and will be removed in 1.4. `sparse_output` is ignored unless you leave `sparse` to its default value.\n",
|
| 3160 |
" warnings.warn(\n"
|
| 3161 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3162 |
}
|
| 3163 |
],
|
| 3164 |
"source": [
|
| 3165 |
+
"# %%time\n",
|
| 3166 |
"preds = ml_support_obj.predit_with_pipeline(finalized_pipeline,X_train,X_test,y_train)"
|
| 3167 |
]
|
| 3168 |
},
|
|
|
|
| 3183 |
"name": "stdout",
|
| 3184 |
"output_type": "stream",
|
| 3185 |
"text": [
|
| 3186 |
+
"Balenced Accuracy Score : 0.7168414747090788\n"
|
| 3187 |
]
|
| 3188 |
}
|
| 3189 |
],
|
|
|
|
| 3209 |
"source": [
|
| 3210 |
"ml_support_obj.plot_confusion_matrix(y_test, preds, finalized_pipeline)"
|
| 3211 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3212 |
}
|
| 3213 |
],
|
| 3214 |
"metadata": {
|
benchmark/sklearn_4/sklearn_4_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",
|
|
@@ -1443,7 +1443,7 @@
|
|
| 1443 |
},
|
| 1444 |
{
|
| 1445 |
"cell_type": "code",
|
| 1446 |
-
"execution_count":
|
| 1447 |
"metadata": {
|
| 1448 |
"execution": {
|
| 1449 |
"iopub.execute_input": "2023-04-04T14:38:10.693599Z",
|
|
@@ -1460,7 +1460,7 @@
|
|
| 1460 |
"{'divide': 'warn', 'over': 'warn', 'under': 'ignore', 'invalid': 'warn'}"
|
| 1461 |
]
|
| 1462 |
},
|
| 1463 |
-
"execution_count":
|
| 1464 |
"metadata": {},
|
| 1465 |
"output_type": "execute_result"
|
| 1466 |
}
|
|
@@ -1489,7 +1489,7 @@
|
|
| 1489 |
},
|
| 1490 |
{
|
| 1491 |
"cell_type": "code",
|
| 1492 |
-
"execution_count":
|
| 1493 |
"metadata": {
|
| 1494 |
"execution": {
|
| 1495 |
"iopub.execute_input": "2023-04-04T14:38:16.904566Z",
|
|
@@ -1517,7 +1517,7 @@
|
|
| 1517 |
},
|
| 1518 |
{
|
| 1519 |
"cell_type": "code",
|
| 1520 |
-
"execution_count":
|
| 1521 |
"metadata": {
|
| 1522 |
"execution": {
|
| 1523 |
"iopub.execute_input": "2023-04-04T14:38:24.473921Z",
|
|
@@ -1542,7 +1542,7 @@
|
|
| 1542 |
},
|
| 1543 |
{
|
| 1544 |
"cell_type": "code",
|
| 1545 |
-
"execution_count":
|
| 1546 |
"metadata": {
|
| 1547 |
"execution": {
|
| 1548 |
"iopub.execute_input": "2023-04-04T14:38:40.543668Z",
|
|
@@ -1699,7 +1699,7 @@
|
|
| 1699 |
},
|
| 1700 |
{
|
| 1701 |
"cell_type": "code",
|
| 1702 |
-
"execution_count":
|
| 1703 |
"metadata": {
|
| 1704 |
"execution": {
|
| 1705 |
"iopub.execute_input": "2023-04-04T14:38:47.909112Z",
|
|
@@ -1773,7 +1773,7 @@
|
|
| 1773 |
},
|
| 1774 |
{
|
| 1775 |
"cell_type": "code",
|
| 1776 |
-
"execution_count":
|
| 1777 |
"metadata": {
|
| 1778 |
"execution": {
|
| 1779 |
"iopub.execute_input": "2023-04-04T14:39:00.436449Z",
|
|
@@ -3105,7 +3105,7 @@
|
|
| 3105 |
},
|
| 3106 |
{
|
| 3107 |
"cell_type": "code",
|
| 3108 |
-
"execution_count":
|
| 3109 |
"metadata": {
|
| 3110 |
"execution": {
|
| 3111 |
"iopub.execute_input": "2023-04-04T16:48:34.189023Z",
|
|
@@ -3115,18 +3115,9 @@
|
|
| 3115 |
"shell.execute_reply.started": "2023-04-04T16:48:34.188967Z"
|
| 3116 |
}
|
| 3117 |
},
|
| 3118 |
-
"outputs": [
|
| 3119 |
-
{
|
| 3120 |
-
"name": "stdout",
|
| 3121 |
-
"output_type": "stream",
|
| 3122 |
-
"text": [
|
| 3123 |
-
"CPU times: user 67.7 ms, sys: 14 ms, total: 81.7 ms\n",
|
| 3124 |
-
"Wall time: 127 ms\n"
|
| 3125 |
-
]
|
| 3126 |
-
}
|
| 3127 |
-
],
|
| 3128 |
"source": [
|
| 3129 |
-
"%%time\n",
|
| 3130 |
"# Adaboost (Boosting of multiple Decision Trees)\n",
|
| 3131 |
"from sklearn.ensemble import AdaBoostRegressor\n",
|
| 3132 |
"ml_support_obj = ml_support()\n",
|
|
@@ -3150,7 +3141,7 @@
|
|
| 3150 |
},
|
| 3151 |
{
|
| 3152 |
"cell_type": "code",
|
| 3153 |
-
"execution_count":
|
| 3154 |
"metadata": {
|
| 3155 |
"execution": {
|
| 3156 |
"iopub.execute_input": "2023-04-04T16:48:38.209713Z",
|
|
@@ -3168,24 +3159,16 @@
|
|
| 3168 |
"/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_encoders.py:868: FutureWarning: `sparse` was renamed to `sparse_output` in version 1.2 and will be removed in 1.4. `sparse_output` is ignored unless you leave `sparse` to its default value.\n",
|
| 3169 |
" warnings.warn(\n"
|
| 3170 |
]
|
| 3171 |
-
},
|
| 3172 |
-
{
|
| 3173 |
-
"name": "stdout",
|
| 3174 |
-
"output_type": "stream",
|
| 3175 |
-
"text": [
|
| 3176 |
-
"CPU times: user 1.13 s, sys: 4.03 s, total: 5.16 s\n",
|
| 3177 |
-
"Wall time: 780 ms\n"
|
| 3178 |
-
]
|
| 3179 |
}
|
| 3180 |
],
|
| 3181 |
"source": [
|
| 3182 |
-
"%%time\n",
|
| 3183 |
"preds = ml_support_obj.predit_with_pipeline(finalized_pipeline,X_train,X_test,y_train)"
|
| 3184 |
]
|
| 3185 |
},
|
| 3186 |
{
|
| 3187 |
"cell_type": "code",
|
| 3188 |
-
"execution_count":
|
| 3189 |
"metadata": {
|
| 3190 |
"execution": {
|
| 3191 |
"iopub.execute_input": "2023-04-04T16:50:39.236636Z",
|
|
@@ -3203,7 +3186,7 @@
|
|
| 3203 |
"traceback": [
|
| 3204 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 3205 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 3206 |
-
"\u001b[0;32m<ipython-input-
|
| 3207 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36mbalanced_accuracy_score\u001b[0;34m(y_true, y_pred, sample_weight, adjusted)\u001b[0m\n\u001b[1;32m 2178\u001b[0m \u001b[0;36m0.625\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2179\u001b[0m \"\"\"\n\u001b[0;32m-> 2180\u001b[0;31m \u001b[0mC\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mconfusion_matrix\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0msample_weight\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 2181\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0merrstate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdivide\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"ignore\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minvalid\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"ignore\"\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 2182\u001b[0m \u001b[0mper_class\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdiag\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mC\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m/\u001b[0m \u001b[0mC\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msum\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0maxis\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",
|
| 3208 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36mconfusion_matrix\u001b[0;34m(y_true, y_pred, labels, sample_weight, normalize)\u001b[0m\n\u001b[1;32m 315\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m1\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[1;32m 316\u001b[0m \"\"\"\n\u001b[0;32m--> 317\u001b[0;31m \u001b[0my_type\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_check_targets\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\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 318\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my_type\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32min\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;34m\"binary\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"multiclass\"\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 319\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"%s is not supported\"\u001b[0m \u001b[0;34m%\u001b[0m \u001b[0my_type\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 3209 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36m_check_targets\u001b[0;34m(y_true, y_pred)\u001b[0m\n\u001b[1;32m 93\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 94\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_type\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---> 95\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 96\u001b[0m \"Classification metrics can't handle a mix of {0} and {1} targets\".format(\n\u001b[1;32m 97\u001b[0m \u001b[0mtype_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtype_pred\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
|
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
"metadata": {
|
| 7 |
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
|
| 8 |
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
|
|
|
|
| 1443 |
},
|
| 1444 |
{
|
| 1445 |
"cell_type": "code",
|
| 1446 |
+
"execution_count": 2,
|
| 1447 |
"metadata": {
|
| 1448 |
"execution": {
|
| 1449 |
"iopub.execute_input": "2023-04-04T14:38:10.693599Z",
|
|
|
|
| 1460 |
"{'divide': 'warn', 'over': 'warn', 'under': 'ignore', 'invalid': 'warn'}"
|
| 1461 |
]
|
| 1462 |
},
|
| 1463 |
+
"execution_count": 2,
|
| 1464 |
"metadata": {},
|
| 1465 |
"output_type": "execute_result"
|
| 1466 |
}
|
|
|
|
| 1489 |
},
|
| 1490 |
{
|
| 1491 |
"cell_type": "code",
|
| 1492 |
+
"execution_count": 3,
|
| 1493 |
"metadata": {
|
| 1494 |
"execution": {
|
| 1495 |
"iopub.execute_input": "2023-04-04T14:38:16.904566Z",
|
|
|
|
| 1517 |
},
|
| 1518 |
{
|
| 1519 |
"cell_type": "code",
|
| 1520 |
+
"execution_count": 4,
|
| 1521 |
"metadata": {
|
| 1522 |
"execution": {
|
| 1523 |
"iopub.execute_input": "2023-04-04T14:38:24.473921Z",
|
|
|
|
| 1542 |
},
|
| 1543 |
{
|
| 1544 |
"cell_type": "code",
|
| 1545 |
+
"execution_count": 5,
|
| 1546 |
"metadata": {
|
| 1547 |
"execution": {
|
| 1548 |
"iopub.execute_input": "2023-04-04T14:38:40.543668Z",
|
|
|
|
| 1699 |
},
|
| 1700 |
{
|
| 1701 |
"cell_type": "code",
|
| 1702 |
+
"execution_count": 6,
|
| 1703 |
"metadata": {
|
| 1704 |
"execution": {
|
| 1705 |
"iopub.execute_input": "2023-04-04T14:38:47.909112Z",
|
|
|
|
| 1773 |
},
|
| 1774 |
{
|
| 1775 |
"cell_type": "code",
|
| 1776 |
+
"execution_count": 7,
|
| 1777 |
"metadata": {
|
| 1778 |
"execution": {
|
| 1779 |
"iopub.execute_input": "2023-04-04T14:39:00.436449Z",
|
|
|
|
| 3105 |
},
|
| 3106 |
{
|
| 3107 |
"cell_type": "code",
|
| 3108 |
+
"execution_count": 8,
|
| 3109 |
"metadata": {
|
| 3110 |
"execution": {
|
| 3111 |
"iopub.execute_input": "2023-04-04T16:48:34.189023Z",
|
|
|
|
| 3115 |
"shell.execute_reply.started": "2023-04-04T16:48:34.188967Z"
|
| 3116 |
}
|
| 3117 |
},
|
| 3118 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3119 |
"source": [
|
| 3120 |
+
"# %%time\n",
|
| 3121 |
"# Adaboost (Boosting of multiple Decision Trees)\n",
|
| 3122 |
"from sklearn.ensemble import AdaBoostRegressor\n",
|
| 3123 |
"ml_support_obj = ml_support()\n",
|
|
|
|
| 3141 |
},
|
| 3142 |
{
|
| 3143 |
"cell_type": "code",
|
| 3144 |
+
"execution_count": 9,
|
| 3145 |
"metadata": {
|
| 3146 |
"execution": {
|
| 3147 |
"iopub.execute_input": "2023-04-04T16:48:38.209713Z",
|
|
|
|
| 3159 |
"/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_encoders.py:868: FutureWarning: `sparse` was renamed to `sparse_output` in version 1.2 and will be removed in 1.4. `sparse_output` is ignored unless you leave `sparse` to its default value.\n",
|
| 3160 |
" warnings.warn(\n"
|
| 3161 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3162 |
}
|
| 3163 |
],
|
| 3164 |
"source": [
|
| 3165 |
+
"# %%time\n",
|
| 3166 |
"preds = ml_support_obj.predit_with_pipeline(finalized_pipeline,X_train,X_test,y_train)"
|
| 3167 |
]
|
| 3168 |
},
|
| 3169 |
{
|
| 3170 |
"cell_type": "code",
|
| 3171 |
+
"execution_count": 10,
|
| 3172 |
"metadata": {
|
| 3173 |
"execution": {
|
| 3174 |
"iopub.execute_input": "2023-04-04T16:50:39.236636Z",
|
|
|
|
| 3186 |
"traceback": [
|
| 3187 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 3188 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 3189 |
+
"\u001b[0;32m<ipython-input-10-3c705cb20ad9>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Balenced Accuracy Score : {0}\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mbalanced_accuracy_score\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_test\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpreds\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",
|
| 3190 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36mbalanced_accuracy_score\u001b[0;34m(y_true, y_pred, sample_weight, adjusted)\u001b[0m\n\u001b[1;32m 2178\u001b[0m \u001b[0;36m0.625\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2179\u001b[0m \"\"\"\n\u001b[0;32m-> 2180\u001b[0;31m \u001b[0mC\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mconfusion_matrix\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0msample_weight\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 2181\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0merrstate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdivide\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"ignore\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minvalid\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"ignore\"\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 2182\u001b[0m \u001b[0mper_class\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdiag\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mC\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m/\u001b[0m \u001b[0mC\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msum\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0maxis\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",
|
| 3191 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36mconfusion_matrix\u001b[0;34m(y_true, y_pred, labels, sample_weight, normalize)\u001b[0m\n\u001b[1;32m 315\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m1\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[1;32m 316\u001b[0m \"\"\"\n\u001b[0;32m--> 317\u001b[0;31m \u001b[0my_type\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_check_targets\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\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 318\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my_type\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32min\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;34m\"binary\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"multiclass\"\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 319\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"%s is not supported\"\u001b[0m \u001b[0;34m%\u001b[0m \u001b[0my_type\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 3192 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36m_check_targets\u001b[0;34m(y_true, y_pred)\u001b[0m\n\u001b[1;32m 93\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 94\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_type\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---> 95\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 96\u001b[0m \"Classification metrics can't handle a mix of {0} and {1} targets\".format(\n\u001b[1;32m 97\u001b[0m \u001b[0mtype_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtype_pred\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
benchmark/sklearn_5/sklearn_5_fixed.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/sklearn_5/sklearn_5_reproduced.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/sklearn_6/sklearn_6_fixed.ipynb
CHANGED
|
@@ -53,7 +53,7 @@
|
|
| 53 |
},
|
| 54 |
{
|
| 55 |
"cell_type": "code",
|
| 56 |
-
"execution_count":
|
| 57 |
"metadata": {
|
| 58 |
"execution": {
|
| 59 |
"iopub.execute_input": "2023-12-16T06:50:35.836273Z",
|
|
@@ -70,7 +70,7 @@
|
|
| 70 |
},
|
| 71 |
{
|
| 72 |
"cell_type": "code",
|
| 73 |
-
"execution_count":
|
| 74 |
"metadata": {
|
| 75 |
"execution": {
|
| 76 |
"iopub.execute_input": "2023-12-16T06:50:35.842441Z",
|
|
@@ -91,7 +91,7 @@
|
|
| 91 |
},
|
| 92 |
{
|
| 93 |
"cell_type": "code",
|
| 94 |
-
"execution_count":
|
| 95 |
"metadata": {
|
| 96 |
"execution": {
|
| 97 |
"iopub.execute_input": "2023-12-16T06:50:37.626444Z",
|
|
@@ -109,7 +109,7 @@
|
|
| 109 |
},
|
| 110 |
{
|
| 111 |
"cell_type": "code",
|
| 112 |
-
"execution_count":
|
| 113 |
"metadata": {
|
| 114 |
"execution": {
|
| 115 |
"iopub.execute_input": "2023-12-16T06:50:37.693279Z",
|
|
@@ -119,207 +119,7 @@
|
|
| 119 |
"shell.execute_reply.started": "2023-12-16T06:50:37.693254Z"
|
| 120 |
}
|
| 121 |
},
|
| 122 |
-
"outputs": [
|
| 123 |
-
{
|
| 124 |
-
"data": {
|
| 125 |
-
"text/html": [
|
| 126 |
-
"<div>\n",
|
| 127 |
-
"<style scoped>\n",
|
| 128 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 129 |
-
" vertical-align: middle;\n",
|
| 130 |
-
" }\n",
|
| 131 |
-
"\n",
|
| 132 |
-
" .dataframe tbody tr th {\n",
|
| 133 |
-
" vertical-align: top;\n",
|
| 134 |
-
" }\n",
|
| 135 |
-
"\n",
|
| 136 |
-
" .dataframe thead th {\n",
|
| 137 |
-
" text-align: right;\n",
|
| 138 |
-
" }\n",
|
| 139 |
-
"</style>\n",
|
| 140 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 141 |
-
" <thead>\n",
|
| 142 |
-
" <tr style=\"text-align: right;\">\n",
|
| 143 |
-
" <th></th>\n",
|
| 144 |
-
" <th>Id</th>\n",
|
| 145 |
-
" <th>MSSubClass</th>\n",
|
| 146 |
-
" <th>MSZoning</th>\n",
|
| 147 |
-
" <th>LotFrontage</th>\n",
|
| 148 |
-
" <th>LotArea</th>\n",
|
| 149 |
-
" <th>Street</th>\n",
|
| 150 |
-
" <th>Alley</th>\n",
|
| 151 |
-
" <th>LotShape</th>\n",
|
| 152 |
-
" <th>LandContour</th>\n",
|
| 153 |
-
" <th>Utilities</th>\n",
|
| 154 |
-
" <th>...</th>\n",
|
| 155 |
-
" <th>PoolArea</th>\n",
|
| 156 |
-
" <th>PoolQC</th>\n",
|
| 157 |
-
" <th>Fence</th>\n",
|
| 158 |
-
" <th>MiscFeature</th>\n",
|
| 159 |
-
" <th>MiscVal</th>\n",
|
| 160 |
-
" <th>MoSold</th>\n",
|
| 161 |
-
" <th>YrSold</th>\n",
|
| 162 |
-
" <th>SaleType</th>\n",
|
| 163 |
-
" <th>SaleCondition</th>\n",
|
| 164 |
-
" <th>SalePrice</th>\n",
|
| 165 |
-
" </tr>\n",
|
| 166 |
-
" </thead>\n",
|
| 167 |
-
" <tbody>\n",
|
| 168 |
-
" <tr>\n",
|
| 169 |
-
" <th>0</th>\n",
|
| 170 |
-
" <td>1</td>\n",
|
| 171 |
-
" <td>60</td>\n",
|
| 172 |
-
" <td>RL</td>\n",
|
| 173 |
-
" <td>65.0</td>\n",
|
| 174 |
-
" <td>8450</td>\n",
|
| 175 |
-
" <td>Pave</td>\n",
|
| 176 |
-
" <td>NaN</td>\n",
|
| 177 |
-
" <td>Reg</td>\n",
|
| 178 |
-
" <td>Lvl</td>\n",
|
| 179 |
-
" <td>AllPub</td>\n",
|
| 180 |
-
" <td>...</td>\n",
|
| 181 |
-
" <td>0</td>\n",
|
| 182 |
-
" <td>NaN</td>\n",
|
| 183 |
-
" <td>NaN</td>\n",
|
| 184 |
-
" <td>NaN</td>\n",
|
| 185 |
-
" <td>0</td>\n",
|
| 186 |
-
" <td>2</td>\n",
|
| 187 |
-
" <td>2008</td>\n",
|
| 188 |
-
" <td>WD</td>\n",
|
| 189 |
-
" <td>Normal</td>\n",
|
| 190 |
-
" <td>208500</td>\n",
|
| 191 |
-
" </tr>\n",
|
| 192 |
-
" <tr>\n",
|
| 193 |
-
" <th>1</th>\n",
|
| 194 |
-
" <td>2</td>\n",
|
| 195 |
-
" <td>20</td>\n",
|
| 196 |
-
" <td>RL</td>\n",
|
| 197 |
-
" <td>80.0</td>\n",
|
| 198 |
-
" <td>9600</td>\n",
|
| 199 |
-
" <td>Pave</td>\n",
|
| 200 |
-
" <td>NaN</td>\n",
|
| 201 |
-
" <td>Reg</td>\n",
|
| 202 |
-
" <td>Lvl</td>\n",
|
| 203 |
-
" <td>AllPub</td>\n",
|
| 204 |
-
" <td>...</td>\n",
|
| 205 |
-
" <td>0</td>\n",
|
| 206 |
-
" <td>NaN</td>\n",
|
| 207 |
-
" <td>NaN</td>\n",
|
| 208 |
-
" <td>NaN</td>\n",
|
| 209 |
-
" <td>0</td>\n",
|
| 210 |
-
" <td>5</td>\n",
|
| 211 |
-
" <td>2007</td>\n",
|
| 212 |
-
" <td>WD</td>\n",
|
| 213 |
-
" <td>Normal</td>\n",
|
| 214 |
-
" <td>181500</td>\n",
|
| 215 |
-
" </tr>\n",
|
| 216 |
-
" <tr>\n",
|
| 217 |
-
" <th>2</th>\n",
|
| 218 |
-
" <td>3</td>\n",
|
| 219 |
-
" <td>60</td>\n",
|
| 220 |
-
" <td>RL</td>\n",
|
| 221 |
-
" <td>68.0</td>\n",
|
| 222 |
-
" <td>11250</td>\n",
|
| 223 |
-
" <td>Pave</td>\n",
|
| 224 |
-
" <td>NaN</td>\n",
|
| 225 |
-
" <td>IR1</td>\n",
|
| 226 |
-
" <td>Lvl</td>\n",
|
| 227 |
-
" <td>AllPub</td>\n",
|
| 228 |
-
" <td>...</td>\n",
|
| 229 |
-
" <td>0</td>\n",
|
| 230 |
-
" <td>NaN</td>\n",
|
| 231 |
-
" <td>NaN</td>\n",
|
| 232 |
-
" <td>NaN</td>\n",
|
| 233 |
-
" <td>0</td>\n",
|
| 234 |
-
" <td>9</td>\n",
|
| 235 |
-
" <td>2008</td>\n",
|
| 236 |
-
" <td>WD</td>\n",
|
| 237 |
-
" <td>Normal</td>\n",
|
| 238 |
-
" <td>223500</td>\n",
|
| 239 |
-
" </tr>\n",
|
| 240 |
-
" <tr>\n",
|
| 241 |
-
" <th>3</th>\n",
|
| 242 |
-
" <td>4</td>\n",
|
| 243 |
-
" <td>70</td>\n",
|
| 244 |
-
" <td>RL</td>\n",
|
| 245 |
-
" <td>60.0</td>\n",
|
| 246 |
-
" <td>9550</td>\n",
|
| 247 |
-
" <td>Pave</td>\n",
|
| 248 |
-
" <td>NaN</td>\n",
|
| 249 |
-
" <td>IR1</td>\n",
|
| 250 |
-
" <td>Lvl</td>\n",
|
| 251 |
-
" <td>AllPub</td>\n",
|
| 252 |
-
" <td>...</td>\n",
|
| 253 |
-
" <td>0</td>\n",
|
| 254 |
-
" <td>NaN</td>\n",
|
| 255 |
-
" <td>NaN</td>\n",
|
| 256 |
-
" <td>NaN</td>\n",
|
| 257 |
-
" <td>0</td>\n",
|
| 258 |
-
" <td>2</td>\n",
|
| 259 |
-
" <td>2006</td>\n",
|
| 260 |
-
" <td>WD</td>\n",
|
| 261 |
-
" <td>Abnorml</td>\n",
|
| 262 |
-
" <td>140000</td>\n",
|
| 263 |
-
" </tr>\n",
|
| 264 |
-
" <tr>\n",
|
| 265 |
-
" <th>4</th>\n",
|
| 266 |
-
" <td>5</td>\n",
|
| 267 |
-
" <td>60</td>\n",
|
| 268 |
-
" <td>RL</td>\n",
|
| 269 |
-
" <td>84.0</td>\n",
|
| 270 |
-
" <td>14260</td>\n",
|
| 271 |
-
" <td>Pave</td>\n",
|
| 272 |
-
" <td>NaN</td>\n",
|
| 273 |
-
" <td>IR1</td>\n",
|
| 274 |
-
" <td>Lvl</td>\n",
|
| 275 |
-
" <td>AllPub</td>\n",
|
| 276 |
-
" <td>...</td>\n",
|
| 277 |
-
" <td>0</td>\n",
|
| 278 |
-
" <td>NaN</td>\n",
|
| 279 |
-
" <td>NaN</td>\n",
|
| 280 |
-
" <td>NaN</td>\n",
|
| 281 |
-
" <td>0</td>\n",
|
| 282 |
-
" <td>12</td>\n",
|
| 283 |
-
" <td>2008</td>\n",
|
| 284 |
-
" <td>WD</td>\n",
|
| 285 |
-
" <td>Normal</td>\n",
|
| 286 |
-
" <td>250000</td>\n",
|
| 287 |
-
" </tr>\n",
|
| 288 |
-
" </tbody>\n",
|
| 289 |
-
"</table>\n",
|
| 290 |
-
"<p>5 rows × 81 columns</p>\n",
|
| 291 |
-
"</div>"
|
| 292 |
-
],
|
| 293 |
-
"text/plain": [
|
| 294 |
-
" Id MSSubClass MSZoning LotFrontage LotArea Street Alley LotShape \\\n",
|
| 295 |
-
"0 1 60 RL 65.0 8450 Pave NaN Reg \n",
|
| 296 |
-
"1 2 20 RL 80.0 9600 Pave NaN Reg \n",
|
| 297 |
-
"2 3 60 RL 68.0 11250 Pave NaN IR1 \n",
|
| 298 |
-
"3 4 70 RL 60.0 9550 Pave NaN IR1 \n",
|
| 299 |
-
"4 5 60 RL 84.0 14260 Pave NaN IR1 \n",
|
| 300 |
-
"\n",
|
| 301 |
-
" LandContour Utilities ... PoolArea PoolQC Fence MiscFeature MiscVal MoSold \\\n",
|
| 302 |
-
"0 Lvl AllPub ... 0 NaN NaN NaN 0 2 \n",
|
| 303 |
-
"1 Lvl AllPub ... 0 NaN NaN NaN 0 5 \n",
|
| 304 |
-
"2 Lvl AllPub ... 0 NaN NaN NaN 0 9 \n",
|
| 305 |
-
"3 Lvl AllPub ... 0 NaN NaN NaN 0 2 \n",
|
| 306 |
-
"4 Lvl AllPub ... 0 NaN NaN NaN 0 12 \n",
|
| 307 |
-
"\n",
|
| 308 |
-
" YrSold SaleType SaleCondition SalePrice \n",
|
| 309 |
-
"0 2008 WD Normal 208500 \n",
|
| 310 |
-
"1 2007 WD Normal 181500 \n",
|
| 311 |
-
"2 2008 WD Normal 223500 \n",
|
| 312 |
-
"3 2006 WD Abnorml 140000 \n",
|
| 313 |
-
"4 2008 WD Normal 250000 \n",
|
| 314 |
-
"\n",
|
| 315 |
-
"[5 rows x 81 columns]"
|
| 316 |
-
]
|
| 317 |
-
},
|
| 318 |
-
"execution_count": 5,
|
| 319 |
-
"metadata": {},
|
| 320 |
-
"output_type": "execute_result"
|
| 321 |
-
}
|
| 322 |
-
],
|
| 323 |
"source": [
|
| 324 |
"train_ds.head(5)"
|
| 325 |
]
|
|
@@ -518,7 +318,7 @@
|
|
| 518 |
},
|
| 519 |
{
|
| 520 |
"cell_type": "code",
|
| 521 |
-
"execution_count":
|
| 522 |
"metadata": {
|
| 523 |
"execution": {
|
| 524 |
"iopub.execute_input": "2023-12-16T06:50:40.810650Z",
|
|
@@ -535,7 +335,7 @@
|
|
| 535 |
},
|
| 536 |
{
|
| 537 |
"cell_type": "code",
|
| 538 |
-
"execution_count":
|
| 539 |
"metadata": {
|
| 540 |
"execution": {
|
| 541 |
"iopub.execute_input": "2023-12-16T06:50:40.824313Z",
|
|
@@ -580,7 +380,7 @@
|
|
| 580 |
},
|
| 581 |
{
|
| 582 |
"cell_type": "code",
|
| 583 |
-
"execution_count":
|
| 584 |
"metadata": {
|
| 585 |
"execution": {
|
| 586 |
"iopub.execute_input": "2023-12-16T06:50:40.872330Z",
|
|
@@ -600,7 +400,7 @@
|
|
| 600 |
},
|
| 601 |
{
|
| 602 |
"cell_type": "code",
|
| 603 |
-
"execution_count":
|
| 604 |
"metadata": {
|
| 605 |
"execution": {
|
| 606 |
"iopub.execute_input": "2023-12-16T06:50:40.897767Z",
|
|
@@ -610,214 +410,7 @@
|
|
| 610 |
"shell.execute_reply.started": "2023-12-16T06:50:40.897743Z"
|
| 611 |
}
|
| 612 |
},
|
| 613 |
-
"outputs": [
|
| 614 |
-
{
|
| 615 |
-
"data": {
|
| 616 |
-
"text/html": [
|
| 617 |
-
"<div>\n",
|
| 618 |
-
"<style scoped>\n",
|
| 619 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 620 |
-
" vertical-align: middle;\n",
|
| 621 |
-
" }\n",
|
| 622 |
-
"\n",
|
| 623 |
-
" .dataframe tbody tr th {\n",
|
| 624 |
-
" vertical-align: top;\n",
|
| 625 |
-
" }\n",
|
| 626 |
-
"\n",
|
| 627 |
-
" .dataframe thead th {\n",
|
| 628 |
-
" text-align: right;\n",
|
| 629 |
-
" }\n",
|
| 630 |
-
"</style>\n",
|
| 631 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 632 |
-
" <thead>\n",
|
| 633 |
-
" <tr style=\"text-align: right;\">\n",
|
| 634 |
-
" <th></th>\n",
|
| 635 |
-
" <th>MSSubClass</th>\n",
|
| 636 |
-
" <th>MSZoning</th>\n",
|
| 637 |
-
" <th>LotArea</th>\n",
|
| 638 |
-
" <th>Street</th>\n",
|
| 639 |
-
" <th>LotShape</th>\n",
|
| 640 |
-
" <th>LandContour</th>\n",
|
| 641 |
-
" <th>Utilities</th>\n",
|
| 642 |
-
" <th>LotConfig</th>\n",
|
| 643 |
-
" <th>LandSlope</th>\n",
|
| 644 |
-
" <th>Neighborhood</th>\n",
|
| 645 |
-
" <th>...</th>\n",
|
| 646 |
-
" <th>OpenPorchSF</th>\n",
|
| 647 |
-
" <th>EnclosedPorch</th>\n",
|
| 648 |
-
" <th>3SsnPorch</th>\n",
|
| 649 |
-
" <th>ScreenPorch</th>\n",
|
| 650 |
-
" <th>PoolArea</th>\n",
|
| 651 |
-
" <th>MiscVal</th>\n",
|
| 652 |
-
" <th>YrSold</th>\n",
|
| 653 |
-
" <th>SaleType</th>\n",
|
| 654 |
-
" <th>SaleCondition</th>\n",
|
| 655 |
-
" <th>SalePrice</th>\n",
|
| 656 |
-
" </tr>\n",
|
| 657 |
-
" </thead>\n",
|
| 658 |
-
" <tbody>\n",
|
| 659 |
-
" <tr>\n",
|
| 660 |
-
" <th>0</th>\n",
|
| 661 |
-
" <td>60</td>\n",
|
| 662 |
-
" <td>3</td>\n",
|
| 663 |
-
" <td>8450</td>\n",
|
| 664 |
-
" <td>1</td>\n",
|
| 665 |
-
" <td>3</td>\n",
|
| 666 |
-
" <td>3</td>\n",
|
| 667 |
-
" <td>0</td>\n",
|
| 668 |
-
" <td>4</td>\n",
|
| 669 |
-
" <td>0</td>\n",
|
| 670 |
-
" <td>5</td>\n",
|
| 671 |
-
" <td>...</td>\n",
|
| 672 |
-
" <td>61</td>\n",
|
| 673 |
-
" <td>0</td>\n",
|
| 674 |
-
" <td>0</td>\n",
|
| 675 |
-
" <td>0</td>\n",
|
| 676 |
-
" <td>0</td>\n",
|
| 677 |
-
" <td>0</td>\n",
|
| 678 |
-
" <td>2008</td>\n",
|
| 679 |
-
" <td>8</td>\n",
|
| 680 |
-
" <td>4</td>\n",
|
| 681 |
-
" <td>208500</td>\n",
|
| 682 |
-
" </tr>\n",
|
| 683 |
-
" <tr>\n",
|
| 684 |
-
" <th>1</th>\n",
|
| 685 |
-
" <td>20</td>\n",
|
| 686 |
-
" <td>3</td>\n",
|
| 687 |
-
" <td>9600</td>\n",
|
| 688 |
-
" <td>1</td>\n",
|
| 689 |
-
" <td>3</td>\n",
|
| 690 |
-
" <td>3</td>\n",
|
| 691 |
-
" <td>0</td>\n",
|
| 692 |
-
" <td>2</td>\n",
|
| 693 |
-
" <td>0</td>\n",
|
| 694 |
-
" <td>24</td>\n",
|
| 695 |
-
" <td>...</td>\n",
|
| 696 |
-
" <td>0</td>\n",
|
| 697 |
-
" <td>0</td>\n",
|
| 698 |
-
" <td>0</td>\n",
|
| 699 |
-
" <td>0</td>\n",
|
| 700 |
-
" <td>0</td>\n",
|
| 701 |
-
" <td>0</td>\n",
|
| 702 |
-
" <td>2007</td>\n",
|
| 703 |
-
" <td>8</td>\n",
|
| 704 |
-
" <td>4</td>\n",
|
| 705 |
-
" <td>181500</td>\n",
|
| 706 |
-
" </tr>\n",
|
| 707 |
-
" <tr>\n",
|
| 708 |
-
" <th>2</th>\n",
|
| 709 |
-
" <td>60</td>\n",
|
| 710 |
-
" <td>3</td>\n",
|
| 711 |
-
" <td>11250</td>\n",
|
| 712 |
-
" <td>1</td>\n",
|
| 713 |
-
" <td>0</td>\n",
|
| 714 |
-
" <td>3</td>\n",
|
| 715 |
-
" <td>0</td>\n",
|
| 716 |
-
" <td>4</td>\n",
|
| 717 |
-
" <td>0</td>\n",
|
| 718 |
-
" <td>5</td>\n",
|
| 719 |
-
" <td>...</td>\n",
|
| 720 |
-
" <td>42</td>\n",
|
| 721 |
-
" <td>0</td>\n",
|
| 722 |
-
" <td>0</td>\n",
|
| 723 |
-
" <td>0</td>\n",
|
| 724 |
-
" <td>0</td>\n",
|
| 725 |
-
" <td>0</td>\n",
|
| 726 |
-
" <td>2008</td>\n",
|
| 727 |
-
" <td>8</td>\n",
|
| 728 |
-
" <td>4</td>\n",
|
| 729 |
-
" <td>223500</td>\n",
|
| 730 |
-
" </tr>\n",
|
| 731 |
-
" <tr>\n",
|
| 732 |
-
" <th>3</th>\n",
|
| 733 |
-
" <td>70</td>\n",
|
| 734 |
-
" <td>3</td>\n",
|
| 735 |
-
" <td>9550</td>\n",
|
| 736 |
-
" <td>1</td>\n",
|
| 737 |
-
" <td>0</td>\n",
|
| 738 |
-
" <td>3</td>\n",
|
| 739 |
-
" <td>0</td>\n",
|
| 740 |
-
" <td>0</td>\n",
|
| 741 |
-
" <td>0</td>\n",
|
| 742 |
-
" <td>6</td>\n",
|
| 743 |
-
" <td>...</td>\n",
|
| 744 |
-
" <td>35</td>\n",
|
| 745 |
-
" <td>272</td>\n",
|
| 746 |
-
" <td>0</td>\n",
|
| 747 |
-
" <td>0</td>\n",
|
| 748 |
-
" <td>0</td>\n",
|
| 749 |
-
" <td>0</td>\n",
|
| 750 |
-
" <td>2006</td>\n",
|
| 751 |
-
" <td>8</td>\n",
|
| 752 |
-
" <td>0</td>\n",
|
| 753 |
-
" <td>140000</td>\n",
|
| 754 |
-
" </tr>\n",
|
| 755 |
-
" <tr>\n",
|
| 756 |
-
" <th>4</th>\n",
|
| 757 |
-
" <td>60</td>\n",
|
| 758 |
-
" <td>3</td>\n",
|
| 759 |
-
" <td>14260</td>\n",
|
| 760 |
-
" <td>1</td>\n",
|
| 761 |
-
" <td>0</td>\n",
|
| 762 |
-
" <td>3</td>\n",
|
| 763 |
-
" <td>0</td>\n",
|
| 764 |
-
" <td>2</td>\n",
|
| 765 |
-
" <td>0</td>\n",
|
| 766 |
-
" <td>15</td>\n",
|
| 767 |
-
" <td>...</td>\n",
|
| 768 |
-
" <td>84</td>\n",
|
| 769 |
-
" <td>0</td>\n",
|
| 770 |
-
" <td>0</td>\n",
|
| 771 |
-
" <td>0</td>\n",
|
| 772 |
-
" <td>0</td>\n",
|
| 773 |
-
" <td>0</td>\n",
|
| 774 |
-
" <td>2008</td>\n",
|
| 775 |
-
" <td>8</td>\n",
|
| 776 |
-
" <td>4</td>\n",
|
| 777 |
-
" <td>250000</td>\n",
|
| 778 |
-
" </tr>\n",
|
| 779 |
-
" </tbody>\n",
|
| 780 |
-
"</table>\n",
|
| 781 |
-
"<p>5 rows × 59 columns</p>\n",
|
| 782 |
-
"</div>"
|
| 783 |
-
],
|
| 784 |
-
"text/plain": [
|
| 785 |
-
" MSSubClass MSZoning LotArea Street LotShape LandContour Utilities \\\n",
|
| 786 |
-
"0 60 3 8450 1 3 3 0 \n",
|
| 787 |
-
"1 20 3 9600 1 3 3 0 \n",
|
| 788 |
-
"2 60 3 11250 1 0 3 0 \n",
|
| 789 |
-
"3 70 3 9550 1 0 3 0 \n",
|
| 790 |
-
"4 60 3 14260 1 0 3 0 \n",
|
| 791 |
-
"\n",
|
| 792 |
-
" LotConfig LandSlope Neighborhood ... OpenPorchSF EnclosedPorch \\\n",
|
| 793 |
-
"0 4 0 5 ... 61 0 \n",
|
| 794 |
-
"1 2 0 24 ... 0 0 \n",
|
| 795 |
-
"2 4 0 5 ... 42 0 \n",
|
| 796 |
-
"3 0 0 6 ... 35 272 \n",
|
| 797 |
-
"4 2 0 15 ... 84 0 \n",
|
| 798 |
-
"\n",
|
| 799 |
-
" 3SsnPorch ScreenPorch PoolArea MiscVal YrSold SaleType SaleCondition \\\n",
|
| 800 |
-
"0 0 0 0 0 2008 8 4 \n",
|
| 801 |
-
"1 0 0 0 0 2007 8 4 \n",
|
| 802 |
-
"2 0 0 0 0 2008 8 4 \n",
|
| 803 |
-
"3 0 0 0 0 2006 8 0 \n",
|
| 804 |
-
"4 0 0 0 0 2008 8 4 \n",
|
| 805 |
-
"\n",
|
| 806 |
-
" SalePrice \n",
|
| 807 |
-
"0 208500 \n",
|
| 808 |
-
"1 181500 \n",
|
| 809 |
-
"2 223500 \n",
|
| 810 |
-
"3 140000 \n",
|
| 811 |
-
"4 250000 \n",
|
| 812 |
-
"\n",
|
| 813 |
-
"[5 rows x 59 columns]"
|
| 814 |
-
]
|
| 815 |
-
},
|
| 816 |
-
"execution_count": 9,
|
| 817 |
-
"metadata": {},
|
| 818 |
-
"output_type": "execute_result"
|
| 819 |
-
}
|
| 820 |
-
],
|
| 821 |
"source": [
|
| 822 |
"train_ds.head(5)\n",
|
| 823 |
"#train_ds.shape"
|
|
@@ -832,7 +425,7 @@
|
|
| 832 |
},
|
| 833 |
{
|
| 834 |
"cell_type": "code",
|
| 835 |
-
"execution_count":
|
| 836 |
"metadata": {
|
| 837 |
"execution": {
|
| 838 |
"iopub.execute_input": "2023-12-16T06:50:40.915490Z",
|
|
@@ -850,7 +443,7 @@
|
|
| 850 |
},
|
| 851 |
{
|
| 852 |
"cell_type": "code",
|
| 853 |
-
"execution_count":
|
| 854 |
"metadata": {
|
| 855 |
"execution": {
|
| 856 |
"iopub.execute_input": "2023-12-16T06:50:40.927551Z",
|
|
@@ -867,7 +460,7 @@
|
|
| 867 |
},
|
| 868 |
{
|
| 869 |
"cell_type": "code",
|
| 870 |
-
"execution_count":
|
| 871 |
"metadata": {
|
| 872 |
"execution": {
|
| 873 |
"iopub.execute_input": "2023-12-16T06:50:40.939501Z",
|
|
@@ -877,18 +470,7 @@
|
|
| 877 |
"shell.execute_reply.started": "2023-12-16T06:50:40.939455Z"
|
| 878 |
}
|
| 879 |
},
|
| 880 |
-
"outputs": [
|
| 881 |
-
{
|
| 882 |
-
"name": "stdout",
|
| 883 |
-
"output_type": "stream",
|
| 884 |
-
"text": [
|
| 885 |
-
"(1022, 58)\n",
|
| 886 |
-
"(1022,)\n",
|
| 887 |
-
"(438, 58)\n",
|
| 888 |
-
"(438,)\n"
|
| 889 |
-
]
|
| 890 |
-
}
|
| 891 |
-
],
|
| 892 |
"source": [
|
| 893 |
"print(X_train.shape)\n",
|
| 894 |
"print(y_train.shape)\n",
|
|
@@ -1138,7 +720,7 @@
|
|
| 1138 |
},
|
| 1139 |
{
|
| 1140 |
"cell_type": "code",
|
| 1141 |
-
"execution_count":
|
| 1142 |
"metadata": {
|
| 1143 |
"execution": {
|
| 1144 |
"iopub.execute_input": "2023-12-16T06:50:52.064844Z",
|
|
@@ -1156,7 +738,7 @@
|
|
| 1156 |
},
|
| 1157 |
{
|
| 1158 |
"cell_type": "code",
|
| 1159 |
-
"execution_count":
|
| 1160 |
"metadata": {
|
| 1161 |
"execution": {
|
| 1162 |
"iopub.execute_input": "2023-12-16T06:50:52.179739Z",
|
|
@@ -1176,7 +758,7 @@
|
|
| 1176 |
"RandomForestRegressor(random_state=42)"
|
| 1177 |
]
|
| 1178 |
},
|
| 1179 |
-
"execution_count":
|
| 1180 |
"metadata": {},
|
| 1181 |
"output_type": "execute_result"
|
| 1182 |
}
|
|
@@ -1187,7 +769,7 @@
|
|
| 1187 |
},
|
| 1188 |
{
|
| 1189 |
"cell_type": "code",
|
| 1190 |
-
"execution_count":
|
| 1191 |
"metadata": {
|
| 1192 |
"execution": {
|
| 1193 |
"iopub.execute_input": "2023-12-16T06:50:53.235721Z",
|
|
@@ -1322,7 +904,7 @@
|
|
| 1322 |
},
|
| 1323 |
{
|
| 1324 |
"cell_type": "code",
|
| 1325 |
-
"execution_count":
|
| 1326 |
"metadata": {
|
| 1327 |
"execution": {
|
| 1328 |
"iopub.execute_input": "2023-12-16T06:50:53.910943Z",
|
|
@@ -1358,7 +940,7 @@
|
|
| 1358 |
},
|
| 1359 |
{
|
| 1360 |
"cell_type": "code",
|
| 1361 |
-
"execution_count":
|
| 1362 |
"metadata": {
|
| 1363 |
"execution": {
|
| 1364 |
"iopub.execute_input": "2023-12-16T06:50:53.938225Z",
|
|
@@ -1388,7 +970,7 @@
|
|
| 1388 |
},
|
| 1389 |
{
|
| 1390 |
"cell_type": "code",
|
| 1391 |
-
"execution_count":
|
| 1392 |
"metadata": {
|
| 1393 |
"execution": {
|
| 1394 |
"iopub.execute_input": "2023-12-16T06:50:53.990542Z",
|
|
@@ -1432,7 +1014,7 @@
|
|
| 1432 |
},
|
| 1433 |
{
|
| 1434 |
"cell_type": "code",
|
| 1435 |
-
"execution_count":
|
| 1436 |
"metadata": {
|
| 1437 |
"execution": {
|
| 1438 |
"iopub.execute_input": "2023-12-16T06:50:54.032582Z",
|
|
|
|
| 53 |
},
|
| 54 |
{
|
| 55 |
"cell_type": "code",
|
| 56 |
+
"execution_count": null,
|
| 57 |
"metadata": {
|
| 58 |
"execution": {
|
| 59 |
"iopub.execute_input": "2023-12-16T06:50:35.836273Z",
|
|
|
|
| 70 |
},
|
| 71 |
{
|
| 72 |
"cell_type": "code",
|
| 73 |
+
"execution_count": 2,
|
| 74 |
"metadata": {
|
| 75 |
"execution": {
|
| 76 |
"iopub.execute_input": "2023-12-16T06:50:35.842441Z",
|
|
|
|
| 91 |
},
|
| 92 |
{
|
| 93 |
"cell_type": "code",
|
| 94 |
+
"execution_count": 3,
|
| 95 |
"metadata": {
|
| 96 |
"execution": {
|
| 97 |
"iopub.execute_input": "2023-12-16T06:50:37.626444Z",
|
|
|
|
| 109 |
},
|
| 110 |
{
|
| 111 |
"cell_type": "code",
|
| 112 |
+
"execution_count": null,
|
| 113 |
"metadata": {
|
| 114 |
"execution": {
|
| 115 |
"iopub.execute_input": "2023-12-16T06:50:37.693279Z",
|
|
|
|
| 119 |
"shell.execute_reply.started": "2023-12-16T06:50:37.693254Z"
|
| 120 |
}
|
| 121 |
},
|
| 122 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
"source": [
|
| 124 |
"train_ds.head(5)"
|
| 125 |
]
|
|
|
|
| 318 |
},
|
| 319 |
{
|
| 320 |
"cell_type": "code",
|
| 321 |
+
"execution_count": 4,
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
| 324 |
"iopub.execute_input": "2023-12-16T06:50:40.810650Z",
|
|
|
|
| 335 |
},
|
| 336 |
{
|
| 337 |
"cell_type": "code",
|
| 338 |
+
"execution_count": 5,
|
| 339 |
"metadata": {
|
| 340 |
"execution": {
|
| 341 |
"iopub.execute_input": "2023-12-16T06:50:40.824313Z",
|
|
|
|
| 380 |
},
|
| 381 |
{
|
| 382 |
"cell_type": "code",
|
| 383 |
+
"execution_count": 6,
|
| 384 |
"metadata": {
|
| 385 |
"execution": {
|
| 386 |
"iopub.execute_input": "2023-12-16T06:50:40.872330Z",
|
|
|
|
| 400 |
},
|
| 401 |
{
|
| 402 |
"cell_type": "code",
|
| 403 |
+
"execution_count": null,
|
| 404 |
"metadata": {
|
| 405 |
"execution": {
|
| 406 |
"iopub.execute_input": "2023-12-16T06:50:40.897767Z",
|
|
|
|
| 410 |
"shell.execute_reply.started": "2023-12-16T06:50:40.897743Z"
|
| 411 |
}
|
| 412 |
},
|
| 413 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
"source": [
|
| 415 |
"train_ds.head(5)\n",
|
| 416 |
"#train_ds.shape"
|
|
|
|
| 425 |
},
|
| 426 |
{
|
| 427 |
"cell_type": "code",
|
| 428 |
+
"execution_count": 7,
|
| 429 |
"metadata": {
|
| 430 |
"execution": {
|
| 431 |
"iopub.execute_input": "2023-12-16T06:50:40.915490Z",
|
|
|
|
| 443 |
},
|
| 444 |
{
|
| 445 |
"cell_type": "code",
|
| 446 |
+
"execution_count": 8,
|
| 447 |
"metadata": {
|
| 448 |
"execution": {
|
| 449 |
"iopub.execute_input": "2023-12-16T06:50:40.927551Z",
|
|
|
|
| 460 |
},
|
| 461 |
{
|
| 462 |
"cell_type": "code",
|
| 463 |
+
"execution_count": null,
|
| 464 |
"metadata": {
|
| 465 |
"execution": {
|
| 466 |
"iopub.execute_input": "2023-12-16T06:50:40.939501Z",
|
|
|
|
| 470 |
"shell.execute_reply.started": "2023-12-16T06:50:40.939455Z"
|
| 471 |
}
|
| 472 |
},
|
| 473 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
"source": [
|
| 475 |
"print(X_train.shape)\n",
|
| 476 |
"print(y_train.shape)\n",
|
|
|
|
| 720 |
},
|
| 721 |
{
|
| 722 |
"cell_type": "code",
|
| 723 |
+
"execution_count": 9,
|
| 724 |
"metadata": {
|
| 725 |
"execution": {
|
| 726 |
"iopub.execute_input": "2023-12-16T06:50:52.064844Z",
|
|
|
|
| 738 |
},
|
| 739 |
{
|
| 740 |
"cell_type": "code",
|
| 741 |
+
"execution_count": 10,
|
| 742 |
"metadata": {
|
| 743 |
"execution": {
|
| 744 |
"iopub.execute_input": "2023-12-16T06:50:52.179739Z",
|
|
|
|
| 758 |
"RandomForestRegressor(random_state=42)"
|
| 759 |
]
|
| 760 |
},
|
| 761 |
+
"execution_count": 10,
|
| 762 |
"metadata": {},
|
| 763 |
"output_type": "execute_result"
|
| 764 |
}
|
|
|
|
| 769 |
},
|
| 770 |
{
|
| 771 |
"cell_type": "code",
|
| 772 |
+
"execution_count": 11,
|
| 773 |
"metadata": {
|
| 774 |
"execution": {
|
| 775 |
"iopub.execute_input": "2023-12-16T06:50:53.235721Z",
|
|
|
|
| 904 |
},
|
| 905 |
{
|
| 906 |
"cell_type": "code",
|
| 907 |
+
"execution_count": 12,
|
| 908 |
"metadata": {
|
| 909 |
"execution": {
|
| 910 |
"iopub.execute_input": "2023-12-16T06:50:53.910943Z",
|
|
|
|
| 940 |
},
|
| 941 |
{
|
| 942 |
"cell_type": "code",
|
| 943 |
+
"execution_count": 13,
|
| 944 |
"metadata": {
|
| 945 |
"execution": {
|
| 946 |
"iopub.execute_input": "2023-12-16T06:50:53.938225Z",
|
|
|
|
| 970 |
},
|
| 971 |
{
|
| 972 |
"cell_type": "code",
|
| 973 |
+
"execution_count": 14,
|
| 974 |
"metadata": {
|
| 975 |
"execution": {
|
| 976 |
"iopub.execute_input": "2023-12-16T06:50:53.990542Z",
|
|
|
|
| 1014 |
},
|
| 1015 |
{
|
| 1016 |
"cell_type": "code",
|
| 1017 |
+
"execution_count": 15,
|
| 1018 |
"metadata": {
|
| 1019 |
"execution": {
|
| 1020 |
"iopub.execute_input": "2023-12-16T06:50:54.032582Z",
|
benchmark/sklearn_6/sklearn_6_reproduced.ipynb
CHANGED
|
@@ -53,7 +53,7 @@
|
|
| 53 |
},
|
| 54 |
{
|
| 55 |
"cell_type": "code",
|
| 56 |
-
"execution_count":
|
| 57 |
"metadata": {
|
| 58 |
"execution": {
|
| 59 |
"iopub.execute_input": "2023-12-16T06:50:35.836273Z",
|
|
@@ -70,7 +70,7 @@
|
|
| 70 |
},
|
| 71 |
{
|
| 72 |
"cell_type": "code",
|
| 73 |
-
"execution_count":
|
| 74 |
"metadata": {
|
| 75 |
"execution": {
|
| 76 |
"iopub.execute_input": "2023-12-16T06:50:35.842441Z",
|
|
@@ -91,7 +91,7 @@
|
|
| 91 |
},
|
| 92 |
{
|
| 93 |
"cell_type": "code",
|
| 94 |
-
"execution_count":
|
| 95 |
"metadata": {
|
| 96 |
"execution": {
|
| 97 |
"iopub.execute_input": "2023-12-16T06:50:37.626444Z",
|
|
@@ -109,7 +109,7 @@
|
|
| 109 |
},
|
| 110 |
{
|
| 111 |
"cell_type": "code",
|
| 112 |
-
"execution_count":
|
| 113 |
"metadata": {
|
| 114 |
"execution": {
|
| 115 |
"iopub.execute_input": "2023-12-16T06:50:37.693279Z",
|
|
@@ -119,207 +119,7 @@
|
|
| 119 |
"shell.execute_reply.started": "2023-12-16T06:50:37.693254Z"
|
| 120 |
}
|
| 121 |
},
|
| 122 |
-
"outputs": [
|
| 123 |
-
{
|
| 124 |
-
"data": {
|
| 125 |
-
"text/html": [
|
| 126 |
-
"<div>\n",
|
| 127 |
-
"<style scoped>\n",
|
| 128 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 129 |
-
" vertical-align: middle;\n",
|
| 130 |
-
" }\n",
|
| 131 |
-
"\n",
|
| 132 |
-
" .dataframe tbody tr th {\n",
|
| 133 |
-
" vertical-align: top;\n",
|
| 134 |
-
" }\n",
|
| 135 |
-
"\n",
|
| 136 |
-
" .dataframe thead th {\n",
|
| 137 |
-
" text-align: right;\n",
|
| 138 |
-
" }\n",
|
| 139 |
-
"</style>\n",
|
| 140 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 141 |
-
" <thead>\n",
|
| 142 |
-
" <tr style=\"text-align: right;\">\n",
|
| 143 |
-
" <th></th>\n",
|
| 144 |
-
" <th>Id</th>\n",
|
| 145 |
-
" <th>MSSubClass</th>\n",
|
| 146 |
-
" <th>MSZoning</th>\n",
|
| 147 |
-
" <th>LotFrontage</th>\n",
|
| 148 |
-
" <th>LotArea</th>\n",
|
| 149 |
-
" <th>Street</th>\n",
|
| 150 |
-
" <th>Alley</th>\n",
|
| 151 |
-
" <th>LotShape</th>\n",
|
| 152 |
-
" <th>LandContour</th>\n",
|
| 153 |
-
" <th>Utilities</th>\n",
|
| 154 |
-
" <th>...</th>\n",
|
| 155 |
-
" <th>PoolArea</th>\n",
|
| 156 |
-
" <th>PoolQC</th>\n",
|
| 157 |
-
" <th>Fence</th>\n",
|
| 158 |
-
" <th>MiscFeature</th>\n",
|
| 159 |
-
" <th>MiscVal</th>\n",
|
| 160 |
-
" <th>MoSold</th>\n",
|
| 161 |
-
" <th>YrSold</th>\n",
|
| 162 |
-
" <th>SaleType</th>\n",
|
| 163 |
-
" <th>SaleCondition</th>\n",
|
| 164 |
-
" <th>SalePrice</th>\n",
|
| 165 |
-
" </tr>\n",
|
| 166 |
-
" </thead>\n",
|
| 167 |
-
" <tbody>\n",
|
| 168 |
-
" <tr>\n",
|
| 169 |
-
" <th>0</th>\n",
|
| 170 |
-
" <td>1</td>\n",
|
| 171 |
-
" <td>60</td>\n",
|
| 172 |
-
" <td>RL</td>\n",
|
| 173 |
-
" <td>65.0</td>\n",
|
| 174 |
-
" <td>8450</td>\n",
|
| 175 |
-
" <td>Pave</td>\n",
|
| 176 |
-
" <td>NaN</td>\n",
|
| 177 |
-
" <td>Reg</td>\n",
|
| 178 |
-
" <td>Lvl</td>\n",
|
| 179 |
-
" <td>AllPub</td>\n",
|
| 180 |
-
" <td>...</td>\n",
|
| 181 |
-
" <td>0</td>\n",
|
| 182 |
-
" <td>NaN</td>\n",
|
| 183 |
-
" <td>NaN</td>\n",
|
| 184 |
-
" <td>NaN</td>\n",
|
| 185 |
-
" <td>0</td>\n",
|
| 186 |
-
" <td>2</td>\n",
|
| 187 |
-
" <td>2008</td>\n",
|
| 188 |
-
" <td>WD</td>\n",
|
| 189 |
-
" <td>Normal</td>\n",
|
| 190 |
-
" <td>208500</td>\n",
|
| 191 |
-
" </tr>\n",
|
| 192 |
-
" <tr>\n",
|
| 193 |
-
" <th>1</th>\n",
|
| 194 |
-
" <td>2</td>\n",
|
| 195 |
-
" <td>20</td>\n",
|
| 196 |
-
" <td>RL</td>\n",
|
| 197 |
-
" <td>80.0</td>\n",
|
| 198 |
-
" <td>9600</td>\n",
|
| 199 |
-
" <td>Pave</td>\n",
|
| 200 |
-
" <td>NaN</td>\n",
|
| 201 |
-
" <td>Reg</td>\n",
|
| 202 |
-
" <td>Lvl</td>\n",
|
| 203 |
-
" <td>AllPub</td>\n",
|
| 204 |
-
" <td>...</td>\n",
|
| 205 |
-
" <td>0</td>\n",
|
| 206 |
-
" <td>NaN</td>\n",
|
| 207 |
-
" <td>NaN</td>\n",
|
| 208 |
-
" <td>NaN</td>\n",
|
| 209 |
-
" <td>0</td>\n",
|
| 210 |
-
" <td>5</td>\n",
|
| 211 |
-
" <td>2007</td>\n",
|
| 212 |
-
" <td>WD</td>\n",
|
| 213 |
-
" <td>Normal</td>\n",
|
| 214 |
-
" <td>181500</td>\n",
|
| 215 |
-
" </tr>\n",
|
| 216 |
-
" <tr>\n",
|
| 217 |
-
" <th>2</th>\n",
|
| 218 |
-
" <td>3</td>\n",
|
| 219 |
-
" <td>60</td>\n",
|
| 220 |
-
" <td>RL</td>\n",
|
| 221 |
-
" <td>68.0</td>\n",
|
| 222 |
-
" <td>11250</td>\n",
|
| 223 |
-
" <td>Pave</td>\n",
|
| 224 |
-
" <td>NaN</td>\n",
|
| 225 |
-
" <td>IR1</td>\n",
|
| 226 |
-
" <td>Lvl</td>\n",
|
| 227 |
-
" <td>AllPub</td>\n",
|
| 228 |
-
" <td>...</td>\n",
|
| 229 |
-
" <td>0</td>\n",
|
| 230 |
-
" <td>NaN</td>\n",
|
| 231 |
-
" <td>NaN</td>\n",
|
| 232 |
-
" <td>NaN</td>\n",
|
| 233 |
-
" <td>0</td>\n",
|
| 234 |
-
" <td>9</td>\n",
|
| 235 |
-
" <td>2008</td>\n",
|
| 236 |
-
" <td>WD</td>\n",
|
| 237 |
-
" <td>Normal</td>\n",
|
| 238 |
-
" <td>223500</td>\n",
|
| 239 |
-
" </tr>\n",
|
| 240 |
-
" <tr>\n",
|
| 241 |
-
" <th>3</th>\n",
|
| 242 |
-
" <td>4</td>\n",
|
| 243 |
-
" <td>70</td>\n",
|
| 244 |
-
" <td>RL</td>\n",
|
| 245 |
-
" <td>60.0</td>\n",
|
| 246 |
-
" <td>9550</td>\n",
|
| 247 |
-
" <td>Pave</td>\n",
|
| 248 |
-
" <td>NaN</td>\n",
|
| 249 |
-
" <td>IR1</td>\n",
|
| 250 |
-
" <td>Lvl</td>\n",
|
| 251 |
-
" <td>AllPub</td>\n",
|
| 252 |
-
" <td>...</td>\n",
|
| 253 |
-
" <td>0</td>\n",
|
| 254 |
-
" <td>NaN</td>\n",
|
| 255 |
-
" <td>NaN</td>\n",
|
| 256 |
-
" <td>NaN</td>\n",
|
| 257 |
-
" <td>0</td>\n",
|
| 258 |
-
" <td>2</td>\n",
|
| 259 |
-
" <td>2006</td>\n",
|
| 260 |
-
" <td>WD</td>\n",
|
| 261 |
-
" <td>Abnorml</td>\n",
|
| 262 |
-
" <td>140000</td>\n",
|
| 263 |
-
" </tr>\n",
|
| 264 |
-
" <tr>\n",
|
| 265 |
-
" <th>4</th>\n",
|
| 266 |
-
" <td>5</td>\n",
|
| 267 |
-
" <td>60</td>\n",
|
| 268 |
-
" <td>RL</td>\n",
|
| 269 |
-
" <td>84.0</td>\n",
|
| 270 |
-
" <td>14260</td>\n",
|
| 271 |
-
" <td>Pave</td>\n",
|
| 272 |
-
" <td>NaN</td>\n",
|
| 273 |
-
" <td>IR1</td>\n",
|
| 274 |
-
" <td>Lvl</td>\n",
|
| 275 |
-
" <td>AllPub</td>\n",
|
| 276 |
-
" <td>...</td>\n",
|
| 277 |
-
" <td>0</td>\n",
|
| 278 |
-
" <td>NaN</td>\n",
|
| 279 |
-
" <td>NaN</td>\n",
|
| 280 |
-
" <td>NaN</td>\n",
|
| 281 |
-
" <td>0</td>\n",
|
| 282 |
-
" <td>12</td>\n",
|
| 283 |
-
" <td>2008</td>\n",
|
| 284 |
-
" <td>WD</td>\n",
|
| 285 |
-
" <td>Normal</td>\n",
|
| 286 |
-
" <td>250000</td>\n",
|
| 287 |
-
" </tr>\n",
|
| 288 |
-
" </tbody>\n",
|
| 289 |
-
"</table>\n",
|
| 290 |
-
"<p>5 rows × 81 columns</p>\n",
|
| 291 |
-
"</div>"
|
| 292 |
-
],
|
| 293 |
-
"text/plain": [
|
| 294 |
-
" Id MSSubClass MSZoning LotFrontage LotArea Street Alley LotShape \\\n",
|
| 295 |
-
"0 1 60 RL 65.0 8450 Pave NaN Reg \n",
|
| 296 |
-
"1 2 20 RL 80.0 9600 Pave NaN Reg \n",
|
| 297 |
-
"2 3 60 RL 68.0 11250 Pave NaN IR1 \n",
|
| 298 |
-
"3 4 70 RL 60.0 9550 Pave NaN IR1 \n",
|
| 299 |
-
"4 5 60 RL 84.0 14260 Pave NaN IR1 \n",
|
| 300 |
-
"\n",
|
| 301 |
-
" LandContour Utilities ... PoolArea PoolQC Fence MiscFeature MiscVal MoSold \\\n",
|
| 302 |
-
"0 Lvl AllPub ... 0 NaN NaN NaN 0 2 \n",
|
| 303 |
-
"1 Lvl AllPub ... 0 NaN NaN NaN 0 5 \n",
|
| 304 |
-
"2 Lvl AllPub ... 0 NaN NaN NaN 0 9 \n",
|
| 305 |
-
"3 Lvl AllPub ... 0 NaN NaN NaN 0 2 \n",
|
| 306 |
-
"4 Lvl AllPub ... 0 NaN NaN NaN 0 12 \n",
|
| 307 |
-
"\n",
|
| 308 |
-
" YrSold SaleType SaleCondition SalePrice \n",
|
| 309 |
-
"0 2008 WD Normal 208500 \n",
|
| 310 |
-
"1 2007 WD Normal 181500 \n",
|
| 311 |
-
"2 2008 WD Normal 223500 \n",
|
| 312 |
-
"3 2006 WD Abnorml 140000 \n",
|
| 313 |
-
"4 2008 WD Normal 250000 \n",
|
| 314 |
-
"\n",
|
| 315 |
-
"[5 rows x 81 columns]"
|
| 316 |
-
]
|
| 317 |
-
},
|
| 318 |
-
"execution_count": 5,
|
| 319 |
-
"metadata": {},
|
| 320 |
-
"output_type": "execute_result"
|
| 321 |
-
}
|
| 322 |
-
],
|
| 323 |
"source": [
|
| 324 |
"train_ds.head(5)"
|
| 325 |
]
|
|
@@ -518,7 +318,7 @@
|
|
| 518 |
},
|
| 519 |
{
|
| 520 |
"cell_type": "code",
|
| 521 |
-
"execution_count":
|
| 522 |
"metadata": {
|
| 523 |
"execution": {
|
| 524 |
"iopub.execute_input": "2023-12-16T06:50:40.810650Z",
|
|
@@ -535,7 +335,7 @@
|
|
| 535 |
},
|
| 536 |
{
|
| 537 |
"cell_type": "code",
|
| 538 |
-
"execution_count":
|
| 539 |
"metadata": {
|
| 540 |
"execution": {
|
| 541 |
"iopub.execute_input": "2023-12-16T06:50:40.824313Z",
|
|
@@ -580,7 +380,7 @@
|
|
| 580 |
},
|
| 581 |
{
|
| 582 |
"cell_type": "code",
|
| 583 |
-
"execution_count":
|
| 584 |
"metadata": {
|
| 585 |
"execution": {
|
| 586 |
"iopub.execute_input": "2023-12-16T06:50:40.872330Z",
|
|
@@ -600,7 +400,7 @@
|
|
| 600 |
},
|
| 601 |
{
|
| 602 |
"cell_type": "code",
|
| 603 |
-
"execution_count":
|
| 604 |
"metadata": {
|
| 605 |
"execution": {
|
| 606 |
"iopub.execute_input": "2023-12-16T06:50:40.897767Z",
|
|
@@ -610,214 +410,7 @@
|
|
| 610 |
"shell.execute_reply.started": "2023-12-16T06:50:40.897743Z"
|
| 611 |
}
|
| 612 |
},
|
| 613 |
-
"outputs": [
|
| 614 |
-
{
|
| 615 |
-
"data": {
|
| 616 |
-
"text/html": [
|
| 617 |
-
"<div>\n",
|
| 618 |
-
"<style scoped>\n",
|
| 619 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 620 |
-
" vertical-align: middle;\n",
|
| 621 |
-
" }\n",
|
| 622 |
-
"\n",
|
| 623 |
-
" .dataframe tbody tr th {\n",
|
| 624 |
-
" vertical-align: top;\n",
|
| 625 |
-
" }\n",
|
| 626 |
-
"\n",
|
| 627 |
-
" .dataframe thead th {\n",
|
| 628 |
-
" text-align: right;\n",
|
| 629 |
-
" }\n",
|
| 630 |
-
"</style>\n",
|
| 631 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 632 |
-
" <thead>\n",
|
| 633 |
-
" <tr style=\"text-align: right;\">\n",
|
| 634 |
-
" <th></th>\n",
|
| 635 |
-
" <th>MSSubClass</th>\n",
|
| 636 |
-
" <th>MSZoning</th>\n",
|
| 637 |
-
" <th>LotArea</th>\n",
|
| 638 |
-
" <th>Street</th>\n",
|
| 639 |
-
" <th>LotShape</th>\n",
|
| 640 |
-
" <th>LandContour</th>\n",
|
| 641 |
-
" <th>Utilities</th>\n",
|
| 642 |
-
" <th>LotConfig</th>\n",
|
| 643 |
-
" <th>LandSlope</th>\n",
|
| 644 |
-
" <th>Neighborhood</th>\n",
|
| 645 |
-
" <th>...</th>\n",
|
| 646 |
-
" <th>OpenPorchSF</th>\n",
|
| 647 |
-
" <th>EnclosedPorch</th>\n",
|
| 648 |
-
" <th>3SsnPorch</th>\n",
|
| 649 |
-
" <th>ScreenPorch</th>\n",
|
| 650 |
-
" <th>PoolArea</th>\n",
|
| 651 |
-
" <th>MiscVal</th>\n",
|
| 652 |
-
" <th>YrSold</th>\n",
|
| 653 |
-
" <th>SaleType</th>\n",
|
| 654 |
-
" <th>SaleCondition</th>\n",
|
| 655 |
-
" <th>SalePrice</th>\n",
|
| 656 |
-
" </tr>\n",
|
| 657 |
-
" </thead>\n",
|
| 658 |
-
" <tbody>\n",
|
| 659 |
-
" <tr>\n",
|
| 660 |
-
" <th>0</th>\n",
|
| 661 |
-
" <td>60</td>\n",
|
| 662 |
-
" <td>3</td>\n",
|
| 663 |
-
" <td>8450</td>\n",
|
| 664 |
-
" <td>1</td>\n",
|
| 665 |
-
" <td>3</td>\n",
|
| 666 |
-
" <td>3</td>\n",
|
| 667 |
-
" <td>0</td>\n",
|
| 668 |
-
" <td>4</td>\n",
|
| 669 |
-
" <td>0</td>\n",
|
| 670 |
-
" <td>5</td>\n",
|
| 671 |
-
" <td>...</td>\n",
|
| 672 |
-
" <td>61</td>\n",
|
| 673 |
-
" <td>0</td>\n",
|
| 674 |
-
" <td>0</td>\n",
|
| 675 |
-
" <td>0</td>\n",
|
| 676 |
-
" <td>0</td>\n",
|
| 677 |
-
" <td>0</td>\n",
|
| 678 |
-
" <td>2008</td>\n",
|
| 679 |
-
" <td>8</td>\n",
|
| 680 |
-
" <td>4</td>\n",
|
| 681 |
-
" <td>208500</td>\n",
|
| 682 |
-
" </tr>\n",
|
| 683 |
-
" <tr>\n",
|
| 684 |
-
" <th>1</th>\n",
|
| 685 |
-
" <td>20</td>\n",
|
| 686 |
-
" <td>3</td>\n",
|
| 687 |
-
" <td>9600</td>\n",
|
| 688 |
-
" <td>1</td>\n",
|
| 689 |
-
" <td>3</td>\n",
|
| 690 |
-
" <td>3</td>\n",
|
| 691 |
-
" <td>0</td>\n",
|
| 692 |
-
" <td>2</td>\n",
|
| 693 |
-
" <td>0</td>\n",
|
| 694 |
-
" <td>24</td>\n",
|
| 695 |
-
" <td>...</td>\n",
|
| 696 |
-
" <td>0</td>\n",
|
| 697 |
-
" <td>0</td>\n",
|
| 698 |
-
" <td>0</td>\n",
|
| 699 |
-
" <td>0</td>\n",
|
| 700 |
-
" <td>0</td>\n",
|
| 701 |
-
" <td>0</td>\n",
|
| 702 |
-
" <td>2007</td>\n",
|
| 703 |
-
" <td>8</td>\n",
|
| 704 |
-
" <td>4</td>\n",
|
| 705 |
-
" <td>181500</td>\n",
|
| 706 |
-
" </tr>\n",
|
| 707 |
-
" <tr>\n",
|
| 708 |
-
" <th>2</th>\n",
|
| 709 |
-
" <td>60</td>\n",
|
| 710 |
-
" <td>3</td>\n",
|
| 711 |
-
" <td>11250</td>\n",
|
| 712 |
-
" <td>1</td>\n",
|
| 713 |
-
" <td>0</td>\n",
|
| 714 |
-
" <td>3</td>\n",
|
| 715 |
-
" <td>0</td>\n",
|
| 716 |
-
" <td>4</td>\n",
|
| 717 |
-
" <td>0</td>\n",
|
| 718 |
-
" <td>5</td>\n",
|
| 719 |
-
" <td>...</td>\n",
|
| 720 |
-
" <td>42</td>\n",
|
| 721 |
-
" <td>0</td>\n",
|
| 722 |
-
" <td>0</td>\n",
|
| 723 |
-
" <td>0</td>\n",
|
| 724 |
-
" <td>0</td>\n",
|
| 725 |
-
" <td>0</td>\n",
|
| 726 |
-
" <td>2008</td>\n",
|
| 727 |
-
" <td>8</td>\n",
|
| 728 |
-
" <td>4</td>\n",
|
| 729 |
-
" <td>223500</td>\n",
|
| 730 |
-
" </tr>\n",
|
| 731 |
-
" <tr>\n",
|
| 732 |
-
" <th>3</th>\n",
|
| 733 |
-
" <td>70</td>\n",
|
| 734 |
-
" <td>3</td>\n",
|
| 735 |
-
" <td>9550</td>\n",
|
| 736 |
-
" <td>1</td>\n",
|
| 737 |
-
" <td>0</td>\n",
|
| 738 |
-
" <td>3</td>\n",
|
| 739 |
-
" <td>0</td>\n",
|
| 740 |
-
" <td>0</td>\n",
|
| 741 |
-
" <td>0</td>\n",
|
| 742 |
-
" <td>6</td>\n",
|
| 743 |
-
" <td>...</td>\n",
|
| 744 |
-
" <td>35</td>\n",
|
| 745 |
-
" <td>272</td>\n",
|
| 746 |
-
" <td>0</td>\n",
|
| 747 |
-
" <td>0</td>\n",
|
| 748 |
-
" <td>0</td>\n",
|
| 749 |
-
" <td>0</td>\n",
|
| 750 |
-
" <td>2006</td>\n",
|
| 751 |
-
" <td>8</td>\n",
|
| 752 |
-
" <td>0</td>\n",
|
| 753 |
-
" <td>140000</td>\n",
|
| 754 |
-
" </tr>\n",
|
| 755 |
-
" <tr>\n",
|
| 756 |
-
" <th>4</th>\n",
|
| 757 |
-
" <td>60</td>\n",
|
| 758 |
-
" <td>3</td>\n",
|
| 759 |
-
" <td>14260</td>\n",
|
| 760 |
-
" <td>1</td>\n",
|
| 761 |
-
" <td>0</td>\n",
|
| 762 |
-
" <td>3</td>\n",
|
| 763 |
-
" <td>0</td>\n",
|
| 764 |
-
" <td>2</td>\n",
|
| 765 |
-
" <td>0</td>\n",
|
| 766 |
-
" <td>15</td>\n",
|
| 767 |
-
" <td>...</td>\n",
|
| 768 |
-
" <td>84</td>\n",
|
| 769 |
-
" <td>0</td>\n",
|
| 770 |
-
" <td>0</td>\n",
|
| 771 |
-
" <td>0</td>\n",
|
| 772 |
-
" <td>0</td>\n",
|
| 773 |
-
" <td>0</td>\n",
|
| 774 |
-
" <td>2008</td>\n",
|
| 775 |
-
" <td>8</td>\n",
|
| 776 |
-
" <td>4</td>\n",
|
| 777 |
-
" <td>250000</td>\n",
|
| 778 |
-
" </tr>\n",
|
| 779 |
-
" </tbody>\n",
|
| 780 |
-
"</table>\n",
|
| 781 |
-
"<p>5 rows × 59 columns</p>\n",
|
| 782 |
-
"</div>"
|
| 783 |
-
],
|
| 784 |
-
"text/plain": [
|
| 785 |
-
" MSSubClass MSZoning LotArea Street LotShape LandContour Utilities \\\n",
|
| 786 |
-
"0 60 3 8450 1 3 3 0 \n",
|
| 787 |
-
"1 20 3 9600 1 3 3 0 \n",
|
| 788 |
-
"2 60 3 11250 1 0 3 0 \n",
|
| 789 |
-
"3 70 3 9550 1 0 3 0 \n",
|
| 790 |
-
"4 60 3 14260 1 0 3 0 \n",
|
| 791 |
-
"\n",
|
| 792 |
-
" LotConfig LandSlope Neighborhood ... OpenPorchSF EnclosedPorch \\\n",
|
| 793 |
-
"0 4 0 5 ... 61 0 \n",
|
| 794 |
-
"1 2 0 24 ... 0 0 \n",
|
| 795 |
-
"2 4 0 5 ... 42 0 \n",
|
| 796 |
-
"3 0 0 6 ... 35 272 \n",
|
| 797 |
-
"4 2 0 15 ... 84 0 \n",
|
| 798 |
-
"\n",
|
| 799 |
-
" 3SsnPorch ScreenPorch PoolArea MiscVal YrSold SaleType SaleCondition \\\n",
|
| 800 |
-
"0 0 0 0 0 2008 8 4 \n",
|
| 801 |
-
"1 0 0 0 0 2007 8 4 \n",
|
| 802 |
-
"2 0 0 0 0 2008 8 4 \n",
|
| 803 |
-
"3 0 0 0 0 2006 8 0 \n",
|
| 804 |
-
"4 0 0 0 0 2008 8 4 \n",
|
| 805 |
-
"\n",
|
| 806 |
-
" SalePrice \n",
|
| 807 |
-
"0 208500 \n",
|
| 808 |
-
"1 181500 \n",
|
| 809 |
-
"2 223500 \n",
|
| 810 |
-
"3 140000 \n",
|
| 811 |
-
"4 250000 \n",
|
| 812 |
-
"\n",
|
| 813 |
-
"[5 rows x 59 columns]"
|
| 814 |
-
]
|
| 815 |
-
},
|
| 816 |
-
"execution_count": 9,
|
| 817 |
-
"metadata": {},
|
| 818 |
-
"output_type": "execute_result"
|
| 819 |
-
}
|
| 820 |
-
],
|
| 821 |
"source": [
|
| 822 |
"train_ds.head(5)\n",
|
| 823 |
"#train_ds.shape"
|
|
@@ -832,7 +425,7 @@
|
|
| 832 |
},
|
| 833 |
{
|
| 834 |
"cell_type": "code",
|
| 835 |
-
"execution_count":
|
| 836 |
"metadata": {
|
| 837 |
"execution": {
|
| 838 |
"iopub.execute_input": "2023-12-16T06:50:40.915490Z",
|
|
@@ -850,7 +443,7 @@
|
|
| 850 |
},
|
| 851 |
{
|
| 852 |
"cell_type": "code",
|
| 853 |
-
"execution_count":
|
| 854 |
"metadata": {
|
| 855 |
"execution": {
|
| 856 |
"iopub.execute_input": "2023-12-16T06:50:40.927551Z",
|
|
@@ -867,7 +460,7 @@
|
|
| 867 |
},
|
| 868 |
{
|
| 869 |
"cell_type": "code",
|
| 870 |
-
"execution_count":
|
| 871 |
"metadata": {
|
| 872 |
"execution": {
|
| 873 |
"iopub.execute_input": "2023-12-16T06:50:40.939501Z",
|
|
@@ -877,18 +470,7 @@
|
|
| 877 |
"shell.execute_reply.started": "2023-12-16T06:50:40.939455Z"
|
| 878 |
}
|
| 879 |
},
|
| 880 |
-
"outputs": [
|
| 881 |
-
{
|
| 882 |
-
"name": "stdout",
|
| 883 |
-
"output_type": "stream",
|
| 884 |
-
"text": [
|
| 885 |
-
"(1022, 58)\n",
|
| 886 |
-
"(1022,)\n",
|
| 887 |
-
"(438, 58)\n",
|
| 888 |
-
"(438,)\n"
|
| 889 |
-
]
|
| 890 |
-
}
|
| 891 |
-
],
|
| 892 |
"source": [
|
| 893 |
"print(X_train.shape)\n",
|
| 894 |
"print(y_train.shape)\n",
|
|
@@ -1138,7 +720,7 @@
|
|
| 1138 |
},
|
| 1139 |
{
|
| 1140 |
"cell_type": "code",
|
| 1141 |
-
"execution_count":
|
| 1142 |
"metadata": {
|
| 1143 |
"execution": {
|
| 1144 |
"iopub.execute_input": "2023-12-16T06:50:52.064844Z",
|
|
@@ -1156,7 +738,7 @@
|
|
| 1156 |
},
|
| 1157 |
{
|
| 1158 |
"cell_type": "code",
|
| 1159 |
-
"execution_count":
|
| 1160 |
"metadata": {
|
| 1161 |
"execution": {
|
| 1162 |
"iopub.execute_input": "2023-12-16T06:50:52.179739Z",
|
|
@@ -1176,7 +758,7 @@
|
|
| 1176 |
"RandomForestRegressor(random_state=42)"
|
| 1177 |
]
|
| 1178 |
},
|
| 1179 |
-
"execution_count":
|
| 1180 |
"metadata": {},
|
| 1181 |
"output_type": "execute_result"
|
| 1182 |
}
|
|
@@ -1187,7 +769,7 @@
|
|
| 1187 |
},
|
| 1188 |
{
|
| 1189 |
"cell_type": "code",
|
| 1190 |
-
"execution_count":
|
| 1191 |
"metadata": {
|
| 1192 |
"execution": {
|
| 1193 |
"iopub.execute_input": "2023-12-16T06:50:53.235721Z",
|
|
@@ -1322,7 +904,7 @@
|
|
| 1322 |
},
|
| 1323 |
{
|
| 1324 |
"cell_type": "code",
|
| 1325 |
-
"execution_count":
|
| 1326 |
"metadata": {
|
| 1327 |
"execution": {
|
| 1328 |
"iopub.execute_input": "2023-12-16T06:50:53.910943Z",
|
|
@@ -1357,7 +939,7 @@
|
|
| 1357 |
},
|
| 1358 |
{
|
| 1359 |
"cell_type": "code",
|
| 1360 |
-
"execution_count":
|
| 1361 |
"metadata": {
|
| 1362 |
"execution": {
|
| 1363 |
"iopub.execute_input": "2023-12-16T06:50:53.938225Z",
|
|
@@ -1407,7 +989,7 @@
|
|
| 1407 |
},
|
| 1408 |
{
|
| 1409 |
"cell_type": "code",
|
| 1410 |
-
"execution_count":
|
| 1411 |
"metadata": {
|
| 1412 |
"execution": {
|
| 1413 |
"iopub.execute_input": "2023-12-16T06:50:53.990542Z",
|
|
@@ -1451,7 +1033,7 @@
|
|
| 1451 |
},
|
| 1452 |
{
|
| 1453 |
"cell_type": "code",
|
| 1454 |
-
"execution_count":
|
| 1455 |
"metadata": {
|
| 1456 |
"execution": {
|
| 1457 |
"iopub.execute_input": "2023-12-16T06:50:54.032582Z",
|
|
@@ -1469,7 +1051,7 @@
|
|
| 1469 |
"traceback": [
|
| 1470 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1471 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 1472 |
-
"\u001b[0;32m<ipython-input-
|
| 1473 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py\u001b[0m in \u001b[0;36mpredict\u001b[0;34m(self, X)\u001b[0m\n\u001b[1;32m 979\u001b[0m \u001b[0mcheck_is_fitted\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 980\u001b[0m \u001b[0;31m# Check data\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 981\u001b[0;31m \u001b[0mX\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_validate_X_predict\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[0m\n\u001b[0m\u001b[1;32m 982\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 983\u001b[0m \u001b[0;31m# Assign chunk of trees to jobs\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1474 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py\u001b[0m in \u001b[0;36m_validate_X_predict\u001b[0;34m(self, X)\u001b[0m\n\u001b[1;32m 600\u001b[0m Validate X whenever one tries to predict, apply, predict_proba.\"\"\"\n\u001b[1;32m 601\u001b[0m \u001b[0mcheck_is_fitted\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 602\u001b[0;31m \u001b[0mX\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_validate_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mDTYPE\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"csr\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\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 603\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0missparse\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mindices\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdtype\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mintc\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mindptr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdtype\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mintc\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 604\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"No support for np.int64 index based sparse matrices\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1475 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 546\u001b[0m \u001b[0mvalidated\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 547\u001b[0m \"\"\"\n\u001b[0;32m--> 548\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_check_feature_names\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mreset\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 549\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 550\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_tags\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"requires_y\"\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",
|
|
|
|
| 53 |
},
|
| 54 |
{
|
| 55 |
"cell_type": "code",
|
| 56 |
+
"execution_count": null,
|
| 57 |
"metadata": {
|
| 58 |
"execution": {
|
| 59 |
"iopub.execute_input": "2023-12-16T06:50:35.836273Z",
|
|
|
|
| 70 |
},
|
| 71 |
{
|
| 72 |
"cell_type": "code",
|
| 73 |
+
"execution_count": 2,
|
| 74 |
"metadata": {
|
| 75 |
"execution": {
|
| 76 |
"iopub.execute_input": "2023-12-16T06:50:35.842441Z",
|
|
|
|
| 91 |
},
|
| 92 |
{
|
| 93 |
"cell_type": "code",
|
| 94 |
+
"execution_count": 3,
|
| 95 |
"metadata": {
|
| 96 |
"execution": {
|
| 97 |
"iopub.execute_input": "2023-12-16T06:50:37.626444Z",
|
|
|
|
| 109 |
},
|
| 110 |
{
|
| 111 |
"cell_type": "code",
|
| 112 |
+
"execution_count": null,
|
| 113 |
"metadata": {
|
| 114 |
"execution": {
|
| 115 |
"iopub.execute_input": "2023-12-16T06:50:37.693279Z",
|
|
|
|
| 119 |
"shell.execute_reply.started": "2023-12-16T06:50:37.693254Z"
|
| 120 |
}
|
| 121 |
},
|
| 122 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
"source": [
|
| 124 |
"train_ds.head(5)"
|
| 125 |
]
|
|
|
|
| 318 |
},
|
| 319 |
{
|
| 320 |
"cell_type": "code",
|
| 321 |
+
"execution_count": 4,
|
| 322 |
"metadata": {
|
| 323 |
"execution": {
|
| 324 |
"iopub.execute_input": "2023-12-16T06:50:40.810650Z",
|
|
|
|
| 335 |
},
|
| 336 |
{
|
| 337 |
"cell_type": "code",
|
| 338 |
+
"execution_count": 5,
|
| 339 |
"metadata": {
|
| 340 |
"execution": {
|
| 341 |
"iopub.execute_input": "2023-12-16T06:50:40.824313Z",
|
|
|
|
| 380 |
},
|
| 381 |
{
|
| 382 |
"cell_type": "code",
|
| 383 |
+
"execution_count": 6,
|
| 384 |
"metadata": {
|
| 385 |
"execution": {
|
| 386 |
"iopub.execute_input": "2023-12-16T06:50:40.872330Z",
|
|
|
|
| 400 |
},
|
| 401 |
{
|
| 402 |
"cell_type": "code",
|
| 403 |
+
"execution_count": null,
|
| 404 |
"metadata": {
|
| 405 |
"execution": {
|
| 406 |
"iopub.execute_input": "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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
"source": [
|
| 415 |
"train_ds.head(5)\n",
|
| 416 |
"#train_ds.shape"
|
|
|
|
| 425 |
},
|
| 426 |
{
|
| 427 |
"cell_type": "code",
|
| 428 |
+
"execution_count": 7,
|
| 429 |
"metadata": {
|
| 430 |
"execution": {
|
| 431 |
"iopub.execute_input": "2023-12-16T06:50:40.915490Z",
|
|
|
|
| 443 |
},
|
| 444 |
{
|
| 445 |
"cell_type": "code",
|
| 446 |
+
"execution_count": 8,
|
| 447 |
"metadata": {
|
| 448 |
"execution": {
|
| 449 |
"iopub.execute_input": "2023-12-16T06:50:40.927551Z",
|
|
|
|
| 460 |
},
|
| 461 |
{
|
| 462 |
"cell_type": "code",
|
| 463 |
+
"execution_count": null,
|
| 464 |
"metadata": {
|
| 465 |
"execution": {
|
| 466 |
"iopub.execute_input": "2023-12-16T06:50:40.939501Z",
|
|
|
|
| 470 |
"shell.execute_reply.started": "2023-12-16T06:50:40.939455Z"
|
| 471 |
}
|
| 472 |
},
|
| 473 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
"source": [
|
| 475 |
"print(X_train.shape)\n",
|
| 476 |
"print(y_train.shape)\n",
|
|
|
|
| 720 |
},
|
| 721 |
{
|
| 722 |
"cell_type": "code",
|
| 723 |
+
"execution_count": 9,
|
| 724 |
"metadata": {
|
| 725 |
"execution": {
|
| 726 |
"iopub.execute_input": "2023-12-16T06:50:52.064844Z",
|
|
|
|
| 738 |
},
|
| 739 |
{
|
| 740 |
"cell_type": "code",
|
| 741 |
+
"execution_count": 10,
|
| 742 |
"metadata": {
|
| 743 |
"execution": {
|
| 744 |
"iopub.execute_input": "2023-12-16T06:50:52.179739Z",
|
|
|
|
| 758 |
"RandomForestRegressor(random_state=42)"
|
| 759 |
]
|
| 760 |
},
|
| 761 |
+
"execution_count": 10,
|
| 762 |
"metadata": {},
|
| 763 |
"output_type": "execute_result"
|
| 764 |
}
|
|
|
|
| 769 |
},
|
| 770 |
{
|
| 771 |
"cell_type": "code",
|
| 772 |
+
"execution_count": 11,
|
| 773 |
"metadata": {
|
| 774 |
"execution": {
|
| 775 |
"iopub.execute_input": "2023-12-16T06:50:53.235721Z",
|
|
|
|
| 904 |
},
|
| 905 |
{
|
| 906 |
"cell_type": "code",
|
| 907 |
+
"execution_count": 12,
|
| 908 |
"metadata": {
|
| 909 |
"execution": {
|
| 910 |
"iopub.execute_input": "2023-12-16T06:50:53.910943Z",
|
|
|
|
| 939 |
},
|
| 940 |
{
|
| 941 |
"cell_type": "code",
|
| 942 |
+
"execution_count": 13,
|
| 943 |
"metadata": {
|
| 944 |
"execution": {
|
| 945 |
"iopub.execute_input": "2023-12-16T06:50:53.938225Z",
|
|
|
|
| 989 |
},
|
| 990 |
{
|
| 991 |
"cell_type": "code",
|
| 992 |
+
"execution_count": 14,
|
| 993 |
"metadata": {
|
| 994 |
"execution": {
|
| 995 |
"iopub.execute_input": "2023-12-16T06:50:53.990542Z",
|
|
|
|
| 1033 |
},
|
| 1034 |
{
|
| 1035 |
"cell_type": "code",
|
| 1036 |
+
"execution_count": 15,
|
| 1037 |
"metadata": {
|
| 1038 |
"execution": {
|
| 1039 |
"iopub.execute_input": "2023-12-16T06:50:54.032582Z",
|
|
|
|
| 1051 |
"traceback": [
|
| 1052 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1053 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 1054 |
+
"\u001b[0;32m<ipython-input-15-e055db40fbd5>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mpredictions\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mFReg\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpredict\u001b[0m\u001b[0;34m(\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[0m\u001b[1;32m 2\u001b[0m submissions_df = pd.DataFrame({\n\u001b[1;32m 3\u001b[0m \u001b[0;34m\"ID\"\u001b[0m \u001b[0;34m:\u001b[0m \u001b[0mtest_data\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'ID'\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 4\u001b[0m \u001b[0;34m\"Predictions\"\u001b[0m \u001b[0;34m:\u001b[0m \u001b[0mpredictions\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m })\n",
|
| 1055 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py\u001b[0m in \u001b[0;36mpredict\u001b[0;34m(self, X)\u001b[0m\n\u001b[1;32m 979\u001b[0m \u001b[0mcheck_is_fitted\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 980\u001b[0m \u001b[0;31m# Check data\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 981\u001b[0;31m \u001b[0mX\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_validate_X_predict\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[0m\n\u001b[0m\u001b[1;32m 982\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 983\u001b[0m \u001b[0;31m# Assign chunk of trees to jobs\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1056 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py\u001b[0m in \u001b[0;36m_validate_X_predict\u001b[0;34m(self, X)\u001b[0m\n\u001b[1;32m 600\u001b[0m Validate X whenever one tries to predict, apply, predict_proba.\"\"\"\n\u001b[1;32m 601\u001b[0m \u001b[0mcheck_is_fitted\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 602\u001b[0;31m \u001b[0mX\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_validate_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mDTYPE\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"csr\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\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 603\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0missparse\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mindices\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdtype\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mintc\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mindptr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdtype\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mintc\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 604\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"No support for np.int64 index based sparse matrices\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1057 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 546\u001b[0m \u001b[0mvalidated\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 547\u001b[0m \"\"\"\n\u001b[0;32m--> 548\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_check_feature_names\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreset\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mreset\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 549\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 550\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_tags\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"requires_y\"\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",
|
benchmark/sklearn_7/sklearn_7_fixed.ipynb
CHANGED
|
@@ -73,7 +73,7 @@
|
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"cell_type": "code",
|
| 76 |
-
"execution_count":
|
| 77 |
"metadata": {
|
| 78 |
"execution": {
|
| 79 |
"iopub.execute_input": "2023-03-10T14:04:15.325344Z",
|
|
@@ -83,119 +83,7 @@
|
|
| 83 |
"shell.execute_reply.started": "2023-03-10T14:04:15.325303Z"
|
| 84 |
}
|
| 85 |
},
|
| 86 |
-
"outputs": [
|
| 87 |
-
{
|
| 88 |
-
"data": {
|
| 89 |
-
"text/html": [
|
| 90 |
-
"<div>\n",
|
| 91 |
-
"<style scoped>\n",
|
| 92 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 93 |
-
" vertical-align: middle;\n",
|
| 94 |
-
" }\n",
|
| 95 |
-
"\n",
|
| 96 |
-
" .dataframe tbody tr th {\n",
|
| 97 |
-
" vertical-align: top;\n",
|
| 98 |
-
" }\n",
|
| 99 |
-
"\n",
|
| 100 |
-
" .dataframe thead th {\n",
|
| 101 |
-
" text-align: right;\n",
|
| 102 |
-
" }\n",
|
| 103 |
-
"</style>\n",
|
| 104 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 105 |
-
" <thead>\n",
|
| 106 |
-
" <tr style=\"text-align: right;\">\n",
|
| 107 |
-
" <th></th>\n",
|
| 108 |
-
" <th>CustomerID</th>\n",
|
| 109 |
-
" <th>Gender</th>\n",
|
| 110 |
-
" <th>Age</th>\n",
|
| 111 |
-
" <th>Annual Income ($)</th>\n",
|
| 112 |
-
" <th>Spending Score (1-100)</th>\n",
|
| 113 |
-
" <th>Profession</th>\n",
|
| 114 |
-
" <th>Work Experience</th>\n",
|
| 115 |
-
" <th>Family Size</th>\n",
|
| 116 |
-
" </tr>\n",
|
| 117 |
-
" </thead>\n",
|
| 118 |
-
" <tbody>\n",
|
| 119 |
-
" <tr>\n",
|
| 120 |
-
" <th>0</th>\n",
|
| 121 |
-
" <td>1</td>\n",
|
| 122 |
-
" <td>Male</td>\n",
|
| 123 |
-
" <td>19</td>\n",
|
| 124 |
-
" <td>15000</td>\n",
|
| 125 |
-
" <td>39</td>\n",
|
| 126 |
-
" <td>Healthcare</td>\n",
|
| 127 |
-
" <td>1</td>\n",
|
| 128 |
-
" <td>4</td>\n",
|
| 129 |
-
" </tr>\n",
|
| 130 |
-
" <tr>\n",
|
| 131 |
-
" <th>1</th>\n",
|
| 132 |
-
" <td>2</td>\n",
|
| 133 |
-
" <td>Male</td>\n",
|
| 134 |
-
" <td>21</td>\n",
|
| 135 |
-
" <td>35000</td>\n",
|
| 136 |
-
" <td>81</td>\n",
|
| 137 |
-
" <td>Engineer</td>\n",
|
| 138 |
-
" <td>3</td>\n",
|
| 139 |
-
" <td>3</td>\n",
|
| 140 |
-
" </tr>\n",
|
| 141 |
-
" <tr>\n",
|
| 142 |
-
" <th>2</th>\n",
|
| 143 |
-
" <td>3</td>\n",
|
| 144 |
-
" <td>Female</td>\n",
|
| 145 |
-
" <td>20</td>\n",
|
| 146 |
-
" <td>86000</td>\n",
|
| 147 |
-
" <td>6</td>\n",
|
| 148 |
-
" <td>Engineer</td>\n",
|
| 149 |
-
" <td>1</td>\n",
|
| 150 |
-
" <td>1</td>\n",
|
| 151 |
-
" </tr>\n",
|
| 152 |
-
" <tr>\n",
|
| 153 |
-
" <th>3</th>\n",
|
| 154 |
-
" <td>4</td>\n",
|
| 155 |
-
" <td>Female</td>\n",
|
| 156 |
-
" <td>23</td>\n",
|
| 157 |
-
" <td>59000</td>\n",
|
| 158 |
-
" <td>77</td>\n",
|
| 159 |
-
" <td>Lawyer</td>\n",
|
| 160 |
-
" <td>0</td>\n",
|
| 161 |
-
" <td>2</td>\n",
|
| 162 |
-
" </tr>\n",
|
| 163 |
-
" <tr>\n",
|
| 164 |
-
" <th>4</th>\n",
|
| 165 |
-
" <td>5</td>\n",
|
| 166 |
-
" <td>Female</td>\n",
|
| 167 |
-
" <td>31</td>\n",
|
| 168 |
-
" <td>38000</td>\n",
|
| 169 |
-
" <td>40</td>\n",
|
| 170 |
-
" <td>Entertainment</td>\n",
|
| 171 |
-
" <td>2</td>\n",
|
| 172 |
-
" <td>6</td>\n",
|
| 173 |
-
" </tr>\n",
|
| 174 |
-
" </tbody>\n",
|
| 175 |
-
"</table>\n",
|
| 176 |
-
"</div>"
|
| 177 |
-
],
|
| 178 |
-
"text/plain": [
|
| 179 |
-
" CustomerID Gender Age Annual Income ($) Spending Score (1-100) \\\n",
|
| 180 |
-
"0 1 Male 19 15000 39 \n",
|
| 181 |
-
"1 2 Male 21 35000 81 \n",
|
| 182 |
-
"2 3 Female 20 86000 6 \n",
|
| 183 |
-
"3 4 Female 23 59000 77 \n",
|
| 184 |
-
"4 5 Female 31 38000 40 \n",
|
| 185 |
-
"\n",
|
| 186 |
-
" Profession Work Experience Family Size \n",
|
| 187 |
-
"0 Healthcare 1 4 \n",
|
| 188 |
-
"1 Engineer 3 3 \n",
|
| 189 |
-
"2 Engineer 1 1 \n",
|
| 190 |
-
"3 Lawyer 0 2 \n",
|
| 191 |
-
"4 Entertainment 2 6 "
|
| 192 |
-
]
|
| 193 |
-
},
|
| 194 |
-
"execution_count": 2,
|
| 195 |
-
"metadata": {},
|
| 196 |
-
"output_type": "execute_result"
|
| 197 |
-
}
|
| 198 |
-
],
|
| 199 |
"source": [
|
| 200 |
"df.head()"
|
| 201 |
]
|
|
@@ -257,7 +145,7 @@
|
|
| 257 |
},
|
| 258 |
{
|
| 259 |
"cell_type": "code",
|
| 260 |
-
"execution_count":
|
| 261 |
"metadata": {
|
| 262 |
"execution": {
|
| 263 |
"iopub.execute_input": "2023-03-10T15:20:49.266918Z",
|
|
@@ -267,26 +155,7 @@
|
|
| 267 |
"shell.execute_reply.started": "2023-03-10T15:20:49.266850Z"
|
| 268 |
}
|
| 269 |
},
|
| 270 |
-
"outputs": [
|
| 271 |
-
{
|
| 272 |
-
"data": {
|
| 273 |
-
"text/plain": [
|
| 274 |
-
"CustomerID 0\n",
|
| 275 |
-
"Gender 0\n",
|
| 276 |
-
"Age 0\n",
|
| 277 |
-
"Annual Income ($) 0\n",
|
| 278 |
-
"Spending Score (1-100) 0\n",
|
| 279 |
-
"Profession 35\n",
|
| 280 |
-
"Work Experience 0\n",
|
| 281 |
-
"Family Size 0\n",
|
| 282 |
-
"dtype: int64"
|
| 283 |
-
]
|
| 284 |
-
},
|
| 285 |
-
"execution_count": 3,
|
| 286 |
-
"metadata": {},
|
| 287 |
-
"output_type": "execute_result"
|
| 288 |
-
}
|
| 289 |
-
],
|
| 290 |
"source": [
|
| 291 |
"df.isna().sum()"
|
| 292 |
]
|
|
@@ -840,7 +709,7 @@
|
|
| 840 |
},
|
| 841 |
{
|
| 842 |
"cell_type": "code",
|
| 843 |
-
"execution_count":
|
| 844 |
"metadata": {
|
| 845 |
"execution": {
|
| 846 |
"iopub.execute_input": "2023-03-10T16:23:09.735556Z",
|
|
@@ -879,7 +748,7 @@
|
|
| 879 |
},
|
| 880 |
{
|
| 881 |
"cell_type": "code",
|
| 882 |
-
"execution_count":
|
| 883 |
"metadata": {
|
| 884 |
"execution": {
|
| 885 |
"iopub.execute_input": "2023-03-09T18:36:44.186155Z",
|
|
|
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"cell_type": "code",
|
| 76 |
+
"execution_count": null,
|
| 77 |
"metadata": {
|
| 78 |
"execution": {
|
| 79 |
"iopub.execute_input": "2023-03-10T14:04:15.325344Z",
|
|
|
|
| 83 |
"shell.execute_reply.started": "2023-03-10T14:04:15.325303Z"
|
| 84 |
}
|
| 85 |
},
|
| 86 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
"source": [
|
| 88 |
"df.head()"
|
| 89 |
]
|
|
|
|
| 145 |
},
|
| 146 |
{
|
| 147 |
"cell_type": "code",
|
| 148 |
+
"execution_count": null,
|
| 149 |
"metadata": {
|
| 150 |
"execution": {
|
| 151 |
"iopub.execute_input": "2023-03-10T15:20:49.266918Z",
|
|
|
|
| 155 |
"shell.execute_reply.started": "2023-03-10T15:20:49.266850Z"
|
| 156 |
}
|
| 157 |
},
|
| 158 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
"source": [
|
| 160 |
"df.isna().sum()"
|
| 161 |
]
|
|
|
|
| 709 |
},
|
| 710 |
{
|
| 711 |
"cell_type": "code",
|
| 712 |
+
"execution_count": 2,
|
| 713 |
"metadata": {
|
| 714 |
"execution": {
|
| 715 |
"iopub.execute_input": "2023-03-10T16:23:09.735556Z",
|
|
|
|
| 748 |
},
|
| 749 |
{
|
| 750 |
"cell_type": "code",
|
| 751 |
+
"execution_count": 3,
|
| 752 |
"metadata": {
|
| 753 |
"execution": {
|
| 754 |
"iopub.execute_input": "2023-03-09T18:36:44.186155Z",
|
benchmark/sklearn_7/sklearn_7_reproduced.ipynb
CHANGED
|
@@ -73,7 +73,7 @@
|
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"cell_type": "code",
|
| 76 |
-
"execution_count":
|
| 77 |
"metadata": {
|
| 78 |
"execution": {
|
| 79 |
"iopub.execute_input": "2023-03-10T14:04:15.325344Z",
|
|
@@ -83,119 +83,7 @@
|
|
| 83 |
"shell.execute_reply.started": "2023-03-10T14:04:15.325303Z"
|
| 84 |
}
|
| 85 |
},
|
| 86 |
-
"outputs": [
|
| 87 |
-
{
|
| 88 |
-
"data": {
|
| 89 |
-
"text/html": [
|
| 90 |
-
"<div>\n",
|
| 91 |
-
"<style scoped>\n",
|
| 92 |
-
" .dataframe tbody tr th:only-of-type {\n",
|
| 93 |
-
" vertical-align: middle;\n",
|
| 94 |
-
" }\n",
|
| 95 |
-
"\n",
|
| 96 |
-
" .dataframe tbody tr th {\n",
|
| 97 |
-
" vertical-align: top;\n",
|
| 98 |
-
" }\n",
|
| 99 |
-
"\n",
|
| 100 |
-
" .dataframe thead th {\n",
|
| 101 |
-
" text-align: right;\n",
|
| 102 |
-
" }\n",
|
| 103 |
-
"</style>\n",
|
| 104 |
-
"<table border=\"1\" class=\"dataframe\">\n",
|
| 105 |
-
" <thead>\n",
|
| 106 |
-
" <tr style=\"text-align: right;\">\n",
|
| 107 |
-
" <th></th>\n",
|
| 108 |
-
" <th>CustomerID</th>\n",
|
| 109 |
-
" <th>Gender</th>\n",
|
| 110 |
-
" <th>Age</th>\n",
|
| 111 |
-
" <th>Annual Income ($)</th>\n",
|
| 112 |
-
" <th>Spending Score (1-100)</th>\n",
|
| 113 |
-
" <th>Profession</th>\n",
|
| 114 |
-
" <th>Work Experience</th>\n",
|
| 115 |
-
" <th>Family Size</th>\n",
|
| 116 |
-
" </tr>\n",
|
| 117 |
-
" </thead>\n",
|
| 118 |
-
" <tbody>\n",
|
| 119 |
-
" <tr>\n",
|
| 120 |
-
" <th>0</th>\n",
|
| 121 |
-
" <td>1</td>\n",
|
| 122 |
-
" <td>Male</td>\n",
|
| 123 |
-
" <td>19</td>\n",
|
| 124 |
-
" <td>15000</td>\n",
|
| 125 |
-
" <td>39</td>\n",
|
| 126 |
-
" <td>Healthcare</td>\n",
|
| 127 |
-
" <td>1</td>\n",
|
| 128 |
-
" <td>4</td>\n",
|
| 129 |
-
" </tr>\n",
|
| 130 |
-
" <tr>\n",
|
| 131 |
-
" <th>1</th>\n",
|
| 132 |
-
" <td>2</td>\n",
|
| 133 |
-
" <td>Male</td>\n",
|
| 134 |
-
" <td>21</td>\n",
|
| 135 |
-
" <td>35000</td>\n",
|
| 136 |
-
" <td>81</td>\n",
|
| 137 |
-
" <td>Engineer</td>\n",
|
| 138 |
-
" <td>3</td>\n",
|
| 139 |
-
" <td>3</td>\n",
|
| 140 |
-
" </tr>\n",
|
| 141 |
-
" <tr>\n",
|
| 142 |
-
" <th>2</th>\n",
|
| 143 |
-
" <td>3</td>\n",
|
| 144 |
-
" <td>Female</td>\n",
|
| 145 |
-
" <td>20</td>\n",
|
| 146 |
-
" <td>86000</td>\n",
|
| 147 |
-
" <td>6</td>\n",
|
| 148 |
-
" <td>Engineer</td>\n",
|
| 149 |
-
" <td>1</td>\n",
|
| 150 |
-
" <td>1</td>\n",
|
| 151 |
-
" </tr>\n",
|
| 152 |
-
" <tr>\n",
|
| 153 |
-
" <th>3</th>\n",
|
| 154 |
-
" <td>4</td>\n",
|
| 155 |
-
" <td>Female</td>\n",
|
| 156 |
-
" <td>23</td>\n",
|
| 157 |
-
" <td>59000</td>\n",
|
| 158 |
-
" <td>77</td>\n",
|
| 159 |
-
" <td>Lawyer</td>\n",
|
| 160 |
-
" <td>0</td>\n",
|
| 161 |
-
" <td>2</td>\n",
|
| 162 |
-
" </tr>\n",
|
| 163 |
-
" <tr>\n",
|
| 164 |
-
" <th>4</th>\n",
|
| 165 |
-
" <td>5</td>\n",
|
| 166 |
-
" <td>Female</td>\n",
|
| 167 |
-
" <td>31</td>\n",
|
| 168 |
-
" <td>38000</td>\n",
|
| 169 |
-
" <td>40</td>\n",
|
| 170 |
-
" <td>Entertainment</td>\n",
|
| 171 |
-
" <td>2</td>\n",
|
| 172 |
-
" <td>6</td>\n",
|
| 173 |
-
" </tr>\n",
|
| 174 |
-
" </tbody>\n",
|
| 175 |
-
"</table>\n",
|
| 176 |
-
"</div>"
|
| 177 |
-
],
|
| 178 |
-
"text/plain": [
|
| 179 |
-
" CustomerID Gender Age Annual Income ($) Spending Score (1-100) \\\n",
|
| 180 |
-
"0 1 Male 19 15000 39 \n",
|
| 181 |
-
"1 2 Male 21 35000 81 \n",
|
| 182 |
-
"2 3 Female 20 86000 6 \n",
|
| 183 |
-
"3 4 Female 23 59000 77 \n",
|
| 184 |
-
"4 5 Female 31 38000 40 \n",
|
| 185 |
-
"\n",
|
| 186 |
-
" Profession Work Experience Family Size \n",
|
| 187 |
-
"0 Healthcare 1 4 \n",
|
| 188 |
-
"1 Engineer 3 3 \n",
|
| 189 |
-
"2 Engineer 1 1 \n",
|
| 190 |
-
"3 Lawyer 0 2 \n",
|
| 191 |
-
"4 Entertainment 2 6 "
|
| 192 |
-
]
|
| 193 |
-
},
|
| 194 |
-
"execution_count": 2,
|
| 195 |
-
"metadata": {},
|
| 196 |
-
"output_type": "execute_result"
|
| 197 |
-
}
|
| 198 |
-
],
|
| 199 |
"source": [
|
| 200 |
"df.head()"
|
| 201 |
]
|
|
@@ -257,7 +145,7 @@
|
|
| 257 |
},
|
| 258 |
{
|
| 259 |
"cell_type": "code",
|
| 260 |
-
"execution_count":
|
| 261 |
"metadata": {
|
| 262 |
"execution": {
|
| 263 |
"iopub.execute_input": "2023-03-10T15:20:49.266918Z",
|
|
@@ -267,26 +155,7 @@
|
|
| 267 |
"shell.execute_reply.started": "2023-03-10T15:20:49.266850Z"
|
| 268 |
}
|
| 269 |
},
|
| 270 |
-
"outputs": [
|
| 271 |
-
{
|
| 272 |
-
"data": {
|
| 273 |
-
"text/plain": [
|
| 274 |
-
"CustomerID 0\n",
|
| 275 |
-
"Gender 0\n",
|
| 276 |
-
"Age 0\n",
|
| 277 |
-
"Annual Income ($) 0\n",
|
| 278 |
-
"Spending Score (1-100) 0\n",
|
| 279 |
-
"Profession 35\n",
|
| 280 |
-
"Work Experience 0\n",
|
| 281 |
-
"Family Size 0\n",
|
| 282 |
-
"dtype: int64"
|
| 283 |
-
]
|
| 284 |
-
},
|
| 285 |
-
"execution_count": 3,
|
| 286 |
-
"metadata": {},
|
| 287 |
-
"output_type": "execute_result"
|
| 288 |
-
}
|
| 289 |
-
],
|
| 290 |
"source": [
|
| 291 |
"df.isna().sum()"
|
| 292 |
]
|
|
@@ -840,7 +709,7 @@
|
|
| 840 |
},
|
| 841 |
{
|
| 842 |
"cell_type": "code",
|
| 843 |
-
"execution_count":
|
| 844 |
"metadata": {
|
| 845 |
"execution": {
|
| 846 |
"iopub.execute_input": "2023-03-10T16:23:09.735556Z",
|
|
@@ -858,7 +727,7 @@
|
|
| 858 |
"traceback": [
|
| 859 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 860 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 861 |
-
"\u001b[0;32m<ipython-input-
|
| 862 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py\u001b[0m in \u001b[0;36mfit\u001b[0;34m(self, X, y, sample_weight)\u001b[0m\n\u001b[1;32m 343\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0missparse\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my\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 344\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"sparse multilabel-indicator for y is not supported.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 345\u001b[0;31m X, y = self._validate_data(\n\u001b[0m\u001b[1;32m 346\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmulti_output\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"csc\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mDTYPE\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 347\u001b[0m )\n",
|
| 863 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 582\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_array\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minput_name\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"y\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_y_params\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 583\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 584\u001b[0;31m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_X_y\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_params\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 585\u001b[0m \u001b[0mout\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 586\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 864 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/validation.py\u001b[0m in \u001b[0;36mcheck_X_y\u001b[0;34m(X, y, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, estimator)\u001b[0m\n\u001b[1;32m 1104\u001b[0m )\n\u001b[1;32m 1105\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1106\u001b[0;31m X = check_array(\n\u001b[0m\u001b[1;32m 1107\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1108\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0maccept_sparse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
|
|
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"cell_type": "code",
|
| 76 |
+
"execution_count": null,
|
| 77 |
"metadata": {
|
| 78 |
"execution": {
|
| 79 |
"iopub.execute_input": "2023-03-10T14:04:15.325344Z",
|
|
|
|
| 83 |
"shell.execute_reply.started": "2023-03-10T14:04:15.325303Z"
|
| 84 |
}
|
| 85 |
},
|
| 86 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
"source": [
|
| 88 |
"df.head()"
|
| 89 |
]
|
|
|
|
| 145 |
},
|
| 146 |
{
|
| 147 |
"cell_type": "code",
|
| 148 |
+
"execution_count": null,
|
| 149 |
"metadata": {
|
| 150 |
"execution": {
|
| 151 |
"iopub.execute_input": "2023-03-10T15:20:49.266918Z",
|
|
|
|
| 155 |
"shell.execute_reply.started": "2023-03-10T15:20:49.266850Z"
|
| 156 |
}
|
| 157 |
},
|
| 158 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
"source": [
|
| 160 |
"df.isna().sum()"
|
| 161 |
]
|
|
|
|
| 709 |
},
|
| 710 |
{
|
| 711 |
"cell_type": "code",
|
| 712 |
+
"execution_count": 2,
|
| 713 |
"metadata": {
|
| 714 |
"execution": {
|
| 715 |
"iopub.execute_input": "2023-03-10T16:23:09.735556Z",
|
|
|
|
| 727 |
"traceback": [
|
| 728 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 729 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 730 |
+
"\u001b[0;32m<ipython-input-2-c9418427c75c>\u001b[0m in \u001b[0;36m<cell line: 13>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0;31m# Train the model\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0mrf\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mRandomForestRegressor\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mn_estimators\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m100\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrandom_state\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m42\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 13\u001b[0;31m \u001b[0mrf\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX_train\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[0m\u001b[1;32m 14\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 731 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_forest.py\u001b[0m in \u001b[0;36mfit\u001b[0;34m(self, X, y, sample_weight)\u001b[0m\n\u001b[1;32m 343\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0missparse\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my\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 344\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"sparse multilabel-indicator for y is not supported.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 345\u001b[0;31m X, y = self._validate_data(\n\u001b[0m\u001b[1;32m 346\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmulti_output\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"csc\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mDTYPE\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 347\u001b[0m )\n",
|
| 732 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/base.py\u001b[0m in \u001b[0;36m_validate_data\u001b[0;34m(self, X, y, reset, validate_separately, **check_params)\u001b[0m\n\u001b[1;32m 582\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_array\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minput_name\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"y\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_y_params\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 583\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 584\u001b[0;31m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcheck_X_y\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mcheck_params\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 585\u001b[0m \u001b[0mout\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 586\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 733 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/validation.py\u001b[0m in \u001b[0;36mcheck_X_y\u001b[0;34m(X, y, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, estimator)\u001b[0m\n\u001b[1;32m 1104\u001b[0m )\n\u001b[1;32m 1105\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1106\u001b[0;31m X = check_array(\n\u001b[0m\u001b[1;32m 1107\u001b[0m \u001b[0mX\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1108\u001b[0m \u001b[0maccept_sparse\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0maccept_sparse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
benchmark/sklearn_8/sklearn_8_fixed.ipynb
CHANGED
|
@@ -1064,7 +1064,7 @@
|
|
| 1064 |
},
|
| 1065 |
{
|
| 1066 |
"cell_type": "code",
|
| 1067 |
-
"execution_count":
|
| 1068 |
"metadata": {
|
| 1069 |
"execution": {
|
| 1070 |
"iopub.execute_input": "2023-07-15T13:47:19.475964Z",
|
|
@@ -1074,28 +1074,14 @@
|
|
| 1074 |
"shell.execute_reply.started": "2023-07-15T13:47:19.475919Z"
|
| 1075 |
}
|
| 1076 |
},
|
| 1077 |
-
"outputs": [
|
| 1078 |
-
{
|
| 1079 |
-
"data": {
|
| 1080 |
-
"text/html": [
|
| 1081 |
-
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>RandomForestClassifier(min_samples_leaf=10, n_estimators=50, random_state=1)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">RandomForestClassifier</label><div class=\"sk-toggleable__content\"><pre>RandomForestClassifier(min_samples_leaf=10, n_estimators=50, random_state=1)</pre></div></div></div></div></div>"
|
| 1082 |
-
],
|
| 1083 |
-
"text/plain": [
|
| 1084 |
-
"RandomForestClassifier(min_samples_leaf=10, n_estimators=50, random_state=1)"
|
| 1085 |
-
]
|
| 1086 |
-
},
|
| 1087 |
-
"execution_count": 9,
|
| 1088 |
-
"metadata": {},
|
| 1089 |
-
"output_type": "execute_result"
|
| 1090 |
-
}
|
| 1091 |
-
],
|
| 1092 |
"source": [
|
| 1093 |
"RF.fit(x,y)"
|
| 1094 |
]
|
| 1095 |
},
|
| 1096 |
{
|
| 1097 |
"cell_type": "code",
|
| 1098 |
-
"execution_count":
|
| 1099 |
"metadata": {
|
| 1100 |
"execution": {
|
| 1101 |
"iopub.execute_input": "2023-07-15T13:55:10.461465Z",
|
|
@@ -1112,7 +1098,7 @@
|
|
| 1112 |
},
|
| 1113 |
{
|
| 1114 |
"cell_type": "code",
|
| 1115 |
-
"execution_count":
|
| 1116 |
"metadata": {
|
| 1117 |
"execution": {
|
| 1118 |
"iopub.execute_input": "2023-07-15T13:56:54.254177Z",
|
|
@@ -1127,7 +1113,7 @@
|
|
| 1127 |
"name": "stdout",
|
| 1128 |
"output_type": "stream",
|
| 1129 |
"text": [
|
| 1130 |
-
"Accuracy: 0.
|
| 1131 |
]
|
| 1132 |
}
|
| 1133 |
],
|
|
@@ -1135,6 +1121,7 @@
|
|
| 1135 |
"# y_pred = RF.predict(X_val)\n",
|
| 1136 |
"\n",
|
| 1137 |
"# Calculating the accuracy of the model\n",
|
|
|
|
| 1138 |
"accuracy = accuracy_score(val_predictions, y) # fix--- used the wrong y_pred\n",
|
| 1139 |
"\n",
|
| 1140 |
"print(\"Accuracy: \", accuracy)"
|
|
|
|
| 1064 |
},
|
| 1065 |
{
|
| 1066 |
"cell_type": "code",
|
| 1067 |
+
"execution_count": null,
|
| 1068 |
"metadata": {
|
| 1069 |
"execution": {
|
| 1070 |
"iopub.execute_input": "2023-07-15T13:47:19.475964Z",
|
|
|
|
| 1074 |
"shell.execute_reply.started": "2023-07-15T13:47:19.475919Z"
|
| 1075 |
}
|
| 1076 |
},
|
| 1077 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1078 |
"source": [
|
| 1079 |
"RF.fit(x,y)"
|
| 1080 |
]
|
| 1081 |
},
|
| 1082 |
{
|
| 1083 |
"cell_type": "code",
|
| 1084 |
+
"execution_count": 9,
|
| 1085 |
"metadata": {
|
| 1086 |
"execution": {
|
| 1087 |
"iopub.execute_input": "2023-07-15T13:55:10.461465Z",
|
|
|
|
| 1098 |
},
|
| 1099 |
{
|
| 1100 |
"cell_type": "code",
|
| 1101 |
+
"execution_count": 10,
|
| 1102 |
"metadata": {
|
| 1103 |
"execution": {
|
| 1104 |
"iopub.execute_input": "2023-07-15T13:56:54.254177Z",
|
|
|
|
| 1113 |
"name": "stdout",
|
| 1114 |
"output_type": "stream",
|
| 1115 |
"text": [
|
| 1116 |
+
"Accuracy: 0.8131557232111282\n"
|
| 1117 |
]
|
| 1118 |
}
|
| 1119 |
],
|
|
|
|
| 1121 |
"# y_pred = RF.predict(X_val)\n",
|
| 1122 |
"\n",
|
| 1123 |
"# Calculating the accuracy of the model\n",
|
| 1124 |
+
"# accuracy = accuracy_score(x, y)\n",
|
| 1125 |
"accuracy = accuracy_score(val_predictions, y) # fix--- used the wrong y_pred\n",
|
| 1126 |
"\n",
|
| 1127 |
"print(\"Accuracy: \", accuracy)"
|
benchmark/sklearn_8/sklearn_8_reproduced.ipynb
CHANGED
|
@@ -870,7 +870,7 @@
|
|
| 870 |
},
|
| 871 |
{
|
| 872 |
"cell_type": "code",
|
| 873 |
-
"execution_count":
|
| 874 |
"metadata": {
|
| 875 |
"execution": {
|
| 876 |
"iopub.execute_input": "2023-07-15T13:44:53.573184Z",
|
|
@@ -888,7 +888,7 @@
|
|
| 888 |
},
|
| 889 |
{
|
| 890 |
"cell_type": "code",
|
| 891 |
-
"execution_count":
|
| 892 |
"metadata": {
|
| 893 |
"execution": {
|
| 894 |
"iopub.execute_input": "2023-07-15T13:44:56.535203Z",
|
|
@@ -921,7 +921,7 @@
|
|
| 921 |
},
|
| 922 |
{
|
| 923 |
"cell_type": "code",
|
| 924 |
-
"execution_count":
|
| 925 |
"metadata": {
|
| 926 |
"execution": {
|
| 927 |
"iopub.execute_input": "2023-07-15T13:45:21.091856Z",
|
|
@@ -955,7 +955,7 @@
|
|
| 955 |
},
|
| 956 |
{
|
| 957 |
"cell_type": "code",
|
| 958 |
-
"execution_count":
|
| 959 |
"metadata": {
|
| 960 |
"execution": {
|
| 961 |
"iopub.execute_input": "2023-07-15T13:46:32.522231Z",
|
|
@@ -973,7 +973,7 @@
|
|
| 973 |
},
|
| 974 |
{
|
| 975 |
"cell_type": "code",
|
| 976 |
-
"execution_count":
|
| 977 |
"metadata": {
|
| 978 |
"execution": {
|
| 979 |
"iopub.execute_input": "2023-07-15T13:58:42.962507Z",
|
|
@@ -1009,7 +1009,7 @@
|
|
| 1009 |
},
|
| 1010 |
{
|
| 1011 |
"cell_type": "code",
|
| 1012 |
-
"execution_count":
|
| 1013 |
"metadata": {
|
| 1014 |
"execution": {
|
| 1015 |
"iopub.execute_input": "2023-07-15T13:59:10.701911Z",
|
|
@@ -1028,7 +1028,7 @@
|
|
| 1028 |
},
|
| 1029 |
{
|
| 1030 |
"cell_type": "code",
|
| 1031 |
-
"execution_count":
|
| 1032 |
"metadata": {
|
| 1033 |
"execution": {
|
| 1034 |
"iopub.execute_input": "2023-07-15T13:59:12.938298Z",
|
|
@@ -1045,7 +1045,7 @@
|
|
| 1045 |
"0.1209901490275322"
|
| 1046 |
]
|
| 1047 |
},
|
| 1048 |
-
"execution_count":
|
| 1049 |
"metadata": {},
|
| 1050 |
"output_type": "execute_result"
|
| 1051 |
}
|
|
@@ -1064,7 +1064,7 @@
|
|
| 1064 |
},
|
| 1065 |
{
|
| 1066 |
"cell_type": "code",
|
| 1067 |
-
"execution_count":
|
| 1068 |
"metadata": {
|
| 1069 |
"execution": {
|
| 1070 |
"iopub.execute_input": "2023-07-15T13:47:19.475964Z",
|
|
@@ -1074,28 +1074,14 @@
|
|
| 1074 |
"shell.execute_reply.started": "2023-07-15T13:47:19.475919Z"
|
| 1075 |
}
|
| 1076 |
},
|
| 1077 |
-
"outputs": [
|
| 1078 |
-
{
|
| 1079 |
-
"data": {
|
| 1080 |
-
"text/html": [
|
| 1081 |
-
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>RandomForestClassifier(min_samples_leaf=10, n_estimators=50, random_state=1)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">RandomForestClassifier</label><div class=\"sk-toggleable__content\"><pre>RandomForestClassifier(min_samples_leaf=10, n_estimators=50, random_state=1)</pre></div></div></div></div></div>"
|
| 1082 |
-
],
|
| 1083 |
-
"text/plain": [
|
| 1084 |
-
"RandomForestClassifier(min_samples_leaf=10, n_estimators=50, random_state=1)"
|
| 1085 |
-
]
|
| 1086 |
-
},
|
| 1087 |
-
"execution_count": 10,
|
| 1088 |
-
"metadata": {},
|
| 1089 |
-
"output_type": "execute_result"
|
| 1090 |
-
}
|
| 1091 |
-
],
|
| 1092 |
"source": [
|
| 1093 |
"RF.fit(x,y)"
|
| 1094 |
]
|
| 1095 |
},
|
| 1096 |
{
|
| 1097 |
"cell_type": "code",
|
| 1098 |
-
"execution_count":
|
| 1099 |
"metadata": {
|
| 1100 |
"execution": {
|
| 1101 |
"iopub.execute_input": "2023-07-15T13:55:10.461465Z",
|
|
@@ -1112,7 +1098,7 @@
|
|
| 1112 |
},
|
| 1113 |
{
|
| 1114 |
"cell_type": "code",
|
| 1115 |
-
"execution_count":
|
| 1116 |
"metadata": {
|
| 1117 |
"execution": {
|
| 1118 |
"iopub.execute_input": "2023-07-15T13:56:54.254177Z",
|
|
@@ -1130,7 +1116,7 @@
|
|
| 1130 |
"traceback": [
|
| 1131 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1132 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 1133 |
-
"\u001b[0;32m<ipython-input-
|
| 1134 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/_param_validation.py\u001b[0m in \u001b[0;36mwrapper\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 190\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 191\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[0;32m--> 192\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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 193\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mInvalidParameterError\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[1;32m 194\u001b[0m \u001b[0;31m# When the function is just a wrapper around an estimator, we allow\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1135 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36maccuracy_score\u001b[0;34m(y_true, y_pred, normalize, sample_weight)\u001b[0m\n\u001b[1;32m 219\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 220\u001b[0m \u001b[0;31m# Compute accuracy for each possible representation\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 221\u001b[0;31m \u001b[0my_type\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_check_targets\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\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 222\u001b[0m \u001b[0mcheck_consistent_length\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 223\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my_type\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstartswith\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"multilabel\"\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",
|
| 1136 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36m_check_targets\u001b[0;34m(y_true, y_pred)\u001b[0m\n\u001b[1;32m 93\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 94\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_type\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---> 95\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 96\u001b[0m \"Classification metrics can't handle a mix of {0} and {1} targets\".format(\n\u001b[1;32m 97\u001b[0m \u001b[0mtype_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtype_pred\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
|
|
|
| 870 |
},
|
| 871 |
{
|
| 872 |
"cell_type": "code",
|
| 873 |
+
"execution_count": 2,
|
| 874 |
"metadata": {
|
| 875 |
"execution": {
|
| 876 |
"iopub.execute_input": "2023-07-15T13:44:53.573184Z",
|
|
|
|
| 888 |
},
|
| 889 |
{
|
| 890 |
"cell_type": "code",
|
| 891 |
+
"execution_count": 3,
|
| 892 |
"metadata": {
|
| 893 |
"execution": {
|
| 894 |
"iopub.execute_input": "2023-07-15T13:44:56.535203Z",
|
|
|
|
| 921 |
},
|
| 922 |
{
|
| 923 |
"cell_type": "code",
|
| 924 |
+
"execution_count": 4,
|
| 925 |
"metadata": {
|
| 926 |
"execution": {
|
| 927 |
"iopub.execute_input": "2023-07-15T13:45:21.091856Z",
|
|
|
|
| 955 |
},
|
| 956 |
{
|
| 957 |
"cell_type": "code",
|
| 958 |
+
"execution_count": 5,
|
| 959 |
"metadata": {
|
| 960 |
"execution": {
|
| 961 |
"iopub.execute_input": "2023-07-15T13:46:32.522231Z",
|
|
|
|
| 973 |
},
|
| 974 |
{
|
| 975 |
"cell_type": "code",
|
| 976 |
+
"execution_count": 6,
|
| 977 |
"metadata": {
|
| 978 |
"execution": {
|
| 979 |
"iopub.execute_input": "2023-07-15T13:58:42.962507Z",
|
|
|
|
| 1009 |
},
|
| 1010 |
{
|
| 1011 |
"cell_type": "code",
|
| 1012 |
+
"execution_count": 7,
|
| 1013 |
"metadata": {
|
| 1014 |
"execution": {
|
| 1015 |
"iopub.execute_input": "2023-07-15T13:59:10.701911Z",
|
|
|
|
| 1028 |
},
|
| 1029 |
{
|
| 1030 |
"cell_type": "code",
|
| 1031 |
+
"execution_count": 8,
|
| 1032 |
"metadata": {
|
| 1033 |
"execution": {
|
| 1034 |
"iopub.execute_input": "2023-07-15T13:59:12.938298Z",
|
|
|
|
| 1045 |
"0.1209901490275322"
|
| 1046 |
]
|
| 1047 |
},
|
| 1048 |
+
"execution_count": 8,
|
| 1049 |
"metadata": {},
|
| 1050 |
"output_type": "execute_result"
|
| 1051 |
}
|
|
|
|
| 1064 |
},
|
| 1065 |
{
|
| 1066 |
"cell_type": "code",
|
| 1067 |
+
"execution_count": null,
|
| 1068 |
"metadata": {
|
| 1069 |
"execution": {
|
| 1070 |
"iopub.execute_input": "2023-07-15T13:47:19.475964Z",
|
|
|
|
| 1074 |
"shell.execute_reply.started": "2023-07-15T13:47:19.475919Z"
|
| 1075 |
}
|
| 1076 |
},
|
| 1077 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1078 |
"source": [
|
| 1079 |
"RF.fit(x,y)"
|
| 1080 |
]
|
| 1081 |
},
|
| 1082 |
{
|
| 1083 |
"cell_type": "code",
|
| 1084 |
+
"execution_count": 10,
|
| 1085 |
"metadata": {
|
| 1086 |
"execution": {
|
| 1087 |
"iopub.execute_input": "2023-07-15T13:55:10.461465Z",
|
|
|
|
| 1098 |
},
|
| 1099 |
{
|
| 1100 |
"cell_type": "code",
|
| 1101 |
+
"execution_count": 11,
|
| 1102 |
"metadata": {
|
| 1103 |
"execution": {
|
| 1104 |
"iopub.execute_input": "2023-07-15T13:56:54.254177Z",
|
|
|
|
| 1116 |
"traceback": [
|
| 1117 |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 1118 |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
| 1119 |
+
"\u001b[0;32m<ipython-input-11-f96d8f33dd63>\u001b[0m in \u001b[0;36m<cell line: 4>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;31m# Calculating the accuracy of the model\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0maccuracy\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0maccuracy_score\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\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[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Accuracy: \"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maccuracy\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1120 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/utils/_param_validation.py\u001b[0m in \u001b[0;36mwrapper\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 190\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 191\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[0;32m--> 192\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\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 193\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mInvalidParameterError\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[1;32m 194\u001b[0m \u001b[0;31m# When the function is just a wrapper around an estimator, we allow\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 1121 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36maccuracy_score\u001b[0;34m(y_true, y_pred, normalize, sample_weight)\u001b[0m\n\u001b[1;32m 219\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 220\u001b[0m \u001b[0;31m# Compute accuracy for each possible representation\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 221\u001b[0;31m \u001b[0my_type\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_check_targets\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\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 222\u001b[0m \u001b[0mcheck_consistent_length\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my_pred\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 223\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0my_type\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstartswith\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"multilabel\"\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",
|
| 1122 |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_classification.py\u001b[0m in \u001b[0;36m_check_targets\u001b[0;34m(y_true, y_pred)\u001b[0m\n\u001b[1;32m 93\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 94\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_type\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---> 95\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 96\u001b[0m \"Classification metrics can't handle a mix of {0} and {1} targets\".format(\n\u001b[1;32m 97\u001b[0m \u001b[0mtype_true\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtype_pred\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
benchmark/sklearn_9/sklearn_9_fixed.ipynb
CHANGED
|
@@ -657,7 +657,7 @@
|
|
| 657 |
"name": "stdout",
|
| 658 |
"output_type": "stream",
|
| 659 |
"text": [
|
| 660 |
-
"F1 score: 0.
|
| 661 |
]
|
| 662 |
},
|
| 663 |
{
|
|
|
|
| 657 |
"name": "stdout",
|
| 658 |
"output_type": "stream",
|
| 659 |
"text": [
|
| 660 |
+
"F1 score: 0.9020291436650468\n"
|
| 661 |
]
|
| 662 |
},
|
| 663 |
{
|