File size: 110,345 Bytes
44b298b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "3f3e79ac",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "import random as rnd\n",
    "import seaborn as sns\n",
    "import matplotlib.pyplot as plt\n",
    "%matplotlib inline\n",
    "\n",
    "import tensorflow as tf\n",
    "from tensorflow.keras.models import Sequential\n",
    "from tensorflow.keras.layers import Dense\n",
    "from tensorflow.keras.activations import relu,linear\n",
    "from tensorflow.keras.losses import SparseCategoricalCrossentropy\n",
    "from tensorflow.keras.losses import BinaryCrossentropy\n",
    "from tensorflow.keras.optimizers import Adam\n",
    "\n",
    "import logging\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "af4faccf",
   "metadata": {},
   "outputs": [],
   "source": [
    "train_df = pd.read_csv('K:/portfolio_py/House_Prices/house-prices-advanced-regression-techniques/train.csv')\n",
    "test_df = pd.read_csv('K:/portfolio_py/House_Prices/house-prices-advanced-regression-techniques/test.csv')\n",
    "combine = [train_df, test_df]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "987b7ae5",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 1460 entries, 0 to 1459\n",
      "Data columns (total 81 columns):\n",
      " #   Column         Non-Null Count  Dtype  \n",
      "---  ------         --------------  -----  \n",
      " 0   Id             1460 non-null   int64  \n",
      " 1   MSSubClass     1460 non-null   int64  \n",
      " 2   MSZoning       1460 non-null   object \n",
      " 3   LotFrontage    1201 non-null   float64\n",
      " 4   LotArea        1460 non-null   int64  \n",
      " 5   Street         1460 non-null   object \n",
      " 6   Alley          91 non-null     object \n",
      " 7   LotShape       1460 non-null   object \n",
      " 8   LandContour    1460 non-null   object \n",
      " 9   Utilities      1460 non-null   object \n",
      " 10  LotConfig      1460 non-null   object \n",
      " 11  LandSlope      1460 non-null   object \n",
      " 12  Neighborhood   1460 non-null   object \n",
      " 13  Condition1     1460 non-null   object \n",
      " 14  Condition2     1460 non-null   object \n",
      " 15  BldgType       1460 non-null   object \n",
      " 16  HouseStyle     1460 non-null   object \n",
      " 17  OverallQual    1460 non-null   int64  \n",
      " 18  OverallCond    1460 non-null   int64  \n",
      " 19  YearBuilt      1460 non-null   int64  \n",
      " 20  YearRemodAdd   1460 non-null   int64  \n",
      " 21  RoofStyle      1460 non-null   object \n",
      " 22  RoofMatl       1460 non-null   object \n",
      " 23  Exterior1st    1460 non-null   object \n",
      " 24  Exterior2nd    1460 non-null   object \n",
      " 25  MasVnrType     1452 non-null   object \n",
      " 26  MasVnrArea     1452 non-null   float64\n",
      " 27  ExterQual      1460 non-null   object \n",
      " 28  ExterCond      1460 non-null   object \n",
      " 29  Foundation     1460 non-null   object \n",
      " 30  BsmtQual       1423 non-null   object \n",
      " 31  BsmtCond       1423 non-null   object \n",
      " 32  BsmtExposure   1422 non-null   object \n",
      " 33  BsmtFinType1   1423 non-null   object \n",
      " 34  BsmtFinSF1     1460 non-null   int64  \n",
      " 35  BsmtFinType2   1422 non-null   object \n",
      " 36  BsmtFinSF2     1460 non-null   int64  \n",
      " 37  BsmtUnfSF      1460 non-null   int64  \n",
      " 38  TotalBsmtSF    1460 non-null   int64  \n",
      " 39  Heating        1460 non-null   object \n",
      " 40  HeatingQC      1460 non-null   object \n",
      " 41  CentralAir     1460 non-null   object \n",
      " 42  Electrical     1459 non-null   object \n",
      " 43  1stFlrSF       1460 non-null   int64  \n",
      " 44  2ndFlrSF       1460 non-null   int64  \n",
      " 45  LowQualFinSF   1460 non-null   int64  \n",
      " 46  GrLivArea      1460 non-null   int64  \n",
      " 47  BsmtFullBath   1460 non-null   int64  \n",
      " 48  BsmtHalfBath   1460 non-null   int64  \n",
      " 49  FullBath       1460 non-null   int64  \n",
      " 50  HalfBath       1460 non-null   int64  \n",
      " 51  BedroomAbvGr   1460 non-null   int64  \n",
      " 52  KitchenAbvGr   1460 non-null   int64  \n",
      " 53  KitchenQual    1460 non-null   object \n",
      " 54  TotRmsAbvGrd   1460 non-null   int64  \n",
      " 55  Functional     1460 non-null   object \n",
      " 56  Fireplaces     1460 non-null   int64  \n",
      " 57  FireplaceQu    770 non-null    object \n",
      " 58  GarageType     1379 non-null   object \n",
      " 59  GarageYrBlt    1379 non-null   float64\n",
      " 60  GarageFinish   1379 non-null   object \n",
      " 61  GarageCars     1460 non-null   int64  \n",
      " 62  GarageArea     1460 non-null   int64  \n",
      " 63  GarageQual     1379 non-null   object \n",
      " 64  GarageCond     1379 non-null   object \n",
      " 65  PavedDrive     1460 non-null   object \n",
      " 66  WoodDeckSF     1460 non-null   int64  \n",
      " 67  OpenPorchSF    1460 non-null   int64  \n",
      " 68  EnclosedPorch  1460 non-null   int64  \n",
      " 69  3SsnPorch      1460 non-null   int64  \n",
      " 70  ScreenPorch    1460 non-null   int64  \n",
      " 71  PoolArea       1460 non-null   int64  \n",
      " 72  PoolQC         7 non-null      object \n",
      " 73  Fence          281 non-null    object \n",
      " 74  MiscFeature    54 non-null     object \n",
      " 75  MiscVal        1460 non-null   int64  \n",
      " 76  MoSold         1460 non-null   int64  \n",
      " 77  YrSold         1460 non-null   int64  \n",
      " 78  SaleType       1460 non-null   object \n",
      " 79  SaleCondition  1460 non-null   object \n",
      " 80  SalePrice      1460 non-null   int64  \n",
      "dtypes: float64(3), int64(35), object(43)\n",
      "memory usage: 924.0+ KB\n",
      "----------------------------------------\n",
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 1459 entries, 0 to 1458\n",
      "Data columns (total 80 columns):\n",
      " #   Column         Non-Null Count  Dtype  \n",
      "---  ------         --------------  -----  \n",
      " 0   Id             1459 non-null   int64  \n",
      " 1   MSSubClass     1459 non-null   int64  \n",
      " 2   MSZoning       1455 non-null   object \n",
      " 3   LotFrontage    1232 non-null   float64\n",
      " 4   LotArea        1459 non-null   int64  \n",
      " 5   Street         1459 non-null   object \n",
      " 6   Alley          107 non-null    object \n",
      " 7   LotShape       1459 non-null   object \n",
      " 8   LandContour    1459 non-null   object \n",
      " 9   Utilities      1457 non-null   object \n",
      " 10  LotConfig      1459 non-null   object \n",
      " 11  LandSlope      1459 non-null   object \n",
      " 12  Neighborhood   1459 non-null   object \n",
      " 13  Condition1     1459 non-null   object \n",
      " 14  Condition2     1459 non-null   object \n",
      " 15  BldgType       1459 non-null   object \n",
      " 16  HouseStyle     1459 non-null   object \n",
      " 17  OverallQual    1459 non-null   int64  \n",
      " 18  OverallCond    1459 non-null   int64  \n",
      " 19  YearBuilt      1459 non-null   int64  \n",
      " 20  YearRemodAdd   1459 non-null   int64  \n",
      " 21  RoofStyle      1459 non-null   object \n",
      " 22  RoofMatl       1459 non-null   object \n",
      " 23  Exterior1st    1458 non-null   object \n",
      " 24  Exterior2nd    1458 non-null   object \n",
      " 25  MasVnrType     1443 non-null   object \n",
      " 26  MasVnrArea     1444 non-null   float64\n",
      " 27  ExterQual      1459 non-null   object \n",
      " 28  ExterCond      1459 non-null   object \n",
      " 29  Foundation     1459 non-null   object \n",
      " 30  BsmtQual       1415 non-null   object \n",
      " 31  BsmtCond       1414 non-null   object \n",
      " 32  BsmtExposure   1415 non-null   object \n",
      " 33  BsmtFinType1   1417 non-null   object \n",
      " 34  BsmtFinSF1     1458 non-null   float64\n",
      " 35  BsmtFinType2   1417 non-null   object \n",
      " 36  BsmtFinSF2     1458 non-null   float64\n",
      " 37  BsmtUnfSF      1458 non-null   float64\n",
      " 38  TotalBsmtSF    1458 non-null   float64\n",
      " 39  Heating        1459 non-null   object \n",
      " 40  HeatingQC      1459 non-null   object \n",
      " 41  CentralAir     1459 non-null   object \n",
      " 42  Electrical     1459 non-null   object \n",
      " 43  1stFlrSF       1459 non-null   int64  \n",
      " 44  2ndFlrSF       1459 non-null   int64  \n",
      " 45  LowQualFinSF   1459 non-null   int64  \n",
      " 46  GrLivArea      1459 non-null   int64  \n",
      " 47  BsmtFullBath   1457 non-null   float64\n",
      " 48  BsmtHalfBath   1457 non-null   float64\n",
      " 49  FullBath       1459 non-null   int64  \n",
      " 50  HalfBath       1459 non-null   int64  \n",
      " 51  BedroomAbvGr   1459 non-null   int64  \n",
      " 52  KitchenAbvGr   1459 non-null   int64  \n",
      " 53  KitchenQual    1458 non-null   object \n",
      " 54  TotRmsAbvGrd   1459 non-null   int64  \n",
      " 55  Functional     1457 non-null   object \n",
      " 56  Fireplaces     1459 non-null   int64  \n",
      " 57  FireplaceQu    729 non-null    object \n",
      " 58  GarageType     1383 non-null   object \n",
      " 59  GarageYrBlt    1381 non-null   float64\n",
      " 60  GarageFinish   1381 non-null   object \n",
      " 61  GarageCars     1458 non-null   float64\n",
      " 62  GarageArea     1458 non-null   float64\n",
      " 63  GarageQual     1381 non-null   object \n",
      " 64  GarageCond     1381 non-null   object \n",
      " 65  PavedDrive     1459 non-null   object \n",
      " 66  WoodDeckSF     1459 non-null   int64  \n",
      " 67  OpenPorchSF    1459 non-null   int64  \n",
      " 68  EnclosedPorch  1459 non-null   int64  \n",
      " 69  3SsnPorch      1459 non-null   int64  \n",
      " 70  ScreenPorch    1459 non-null   int64  \n",
      " 71  PoolArea       1459 non-null   int64  \n",
      " 72  PoolQC         3 non-null      object \n",
      " 73  Fence          290 non-null    object \n",
      " 74  MiscFeature    51 non-null     object \n",
      " 75  MiscVal        1459 non-null   int64  \n",
      " 76  MoSold         1459 non-null   int64  \n",
      " 77  YrSold         1459 non-null   int64  \n",
      " 78  SaleType       1458 non-null   object \n",
      " 79  SaleCondition  1459 non-null   object \n",
      "dtypes: float64(11), int64(26), object(43)\n",
      "memory usage: 912.0+ KB\n"
     ]
    }
   ],
   "source": [
    "train_df.info()\n",
    "print('-'*40)\n",
    "test_df.info()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "133ad90f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((1460, 77), (1459, 76), (1460, 77), (1459, 76))"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#droping PoolQC, Fence, MiscFeature, Alley\n",
    "train_df = train_df.drop(['PoolQC', 'Fence', 'MiscFeature', 'Alley'], axis=1)\n",
    "test_df = test_df.drop(['PoolQC', 'Fence', 'MiscFeature', 'Alley'], axis=1)\n",
    "combine = [train_df, test_df]\n",
    "train_df.shape, test_df.shape, combine[0].shape, combine[1].shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "66ffb45a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       5\n",
       "1       6\n",
       "2       6\n",
       "3       6\n",
       "4       6\n",
       "       ..\n",
       "1454    8\n",
       "1455    8\n",
       "1456    6\n",
       "1457    6\n",
       "1458    6\n",
       "Name: MSZoning, Length: 1459, dtype: Int64"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#train_df['MSZoning'] = train_df['MSZoning'].fillna(0)\n",
    "#test_df['MSZoning'] = test_df['MSZoning'].fillna(0)\n",
    "for dataset in combine:\n",
    "    \n",
    "    dataset['MSZoning'] = dataset['MSZoning'].map({'A':1,'C':2, 'FV':3,'I':4, 'RH':5, 'RL':6, 'RP':7, 'RM':8}).astype(\"Int64\")\n",
    "    dataset['MSZoning'] = dataset['MSZoning'].fillna(0)\n",
    "test_df['MSZoning']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ae0a1bb1",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "717045ee",
   "metadata": {},
   "outputs": [],
   "source": [
    "train_df['LotFrontage'].fillna(train_df['LotFrontage'].dropna().median(), inplace=True)\n",
    "test_df['LotFrontage'].fillna(test_df['LotFrontage'].dropna().median(), inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "013b99a3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0    2\n",
       "1    2\n",
       "2    2\n",
       "3    2\n",
       "4    2\n",
       "Name: Street, dtype: int64"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "for dataset in combine:\n",
    "    dataset['Street'] = dataset['Street'].map({'Grvl':1, 'Pave':2})\n",
    "    dataset['Utilities'] = dataset['Utilities'].fillna(0)\n",
    "test_df['Street'].head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "eff24f4e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Id</th>\n",
       "      <th>MSSubClass</th>\n",
       "      <th>MSZoning</th>\n",
       "      <th>LotFrontage</th>\n",
       "      <th>LotArea</th>\n",
       "      <th>Street</th>\n",
       "      <th>LotShape</th>\n",
       "      <th>LandContour</th>\n",
       "      <th>Utilities</th>\n",
       "      <th>LotConfig</th>\n",
       "      <th>...</th>\n",
       "      <th>OpenPorchSF</th>\n",
       "      <th>EnclosedPorch</th>\n",
       "      <th>3SsnPorch</th>\n",
       "      <th>ScreenPorch</th>\n",
       "      <th>PoolArea</th>\n",
       "      <th>MiscVal</th>\n",
       "      <th>MoSold</th>\n",
       "      <th>YrSold</th>\n",
       "      <th>SaleType</th>\n",
       "      <th>SaleCondition</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1461</td>\n",
       "      <td>20</td>\n",
       "      <td>5</td>\n",
       "      <td>80.0</td>\n",
       "      <td>11622</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>120</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>6</td>\n",
       "      <td>2010</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1462</td>\n",
       "      <td>20</td>\n",
       "      <td>6</td>\n",
       "      <td>81.0</td>\n",
       "      <td>14267</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>36</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>12500</td>\n",
       "      <td>6</td>\n",
       "      <td>2010</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1463</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>74.0</td>\n",
       "      <td>13830</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>34</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2010</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1464</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>78.0</td>\n",
       "      <td>9978</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>36</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>6</td>\n",
       "      <td>2010</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1465</td>\n",
       "      <td>120</td>\n",
       "      <td>6</td>\n",
       "      <td>43.0</td>\n",
       "      <td>5005</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>82</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>144</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2010</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>5 rows × 76 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     Id  MSSubClass  MSZoning  LotFrontage  LotArea  Street  LotShape  \\\n",
       "0  1461          20         5         80.0    11622       2         1   \n",
       "1  1462          20         6         81.0    14267       2         2   \n",
       "2  1463          60         6         74.0    13830       2         2   \n",
       "3  1464          60         6         78.0     9978       2         2   \n",
       "4  1465         120         6         43.0     5005       2         2   \n",
       "\n",
       "   LandContour  Utilities  LotConfig  ...  OpenPorchSF EnclosedPorch  \\\n",
       "0            1        1.0          1  ...            0             0   \n",
       "1            1        1.0          2  ...           36             0   \n",
       "2            1        1.0          1  ...           34             0   \n",
       "3            1        1.0          1  ...           36             0   \n",
       "4            3        1.0          1  ...           82             0   \n",
       "\n",
       "  3SsnPorch ScreenPorch PoolArea MiscVal  MoSold  YrSold  SaleType  \\\n",
       "0         0         120        0       0       6    2010        WD   \n",
       "1         0           0        0   12500       6    2010        WD   \n",
       "2         0           0        0       0       3    2010        WD   \n",
       "3         0           0        0       0       6    2010        WD   \n",
       "4         0         144        0       0       1    2010        WD   \n",
       "\n",
       "   SaleCondition  \n",
       "0         Normal  \n",
       "1         Normal  \n",
       "2         Normal  \n",
       "3         Normal  \n",
       "4         Normal  \n",
       "\n",
       "[5 rows x 76 columns]"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "for dataset in combine:\n",
    "    dataset['LotShape'] = dataset['LotShape'].map({'Reg':1, 'IR1':2, 'IR2':3, 'IR3':4})\n",
    "    dataset['LandContour'] = dataset['LandContour'].map({'Lvl':1, 'Bnk':2, 'HLS':3, 'Low':4})\n",
    "    dataset['Utilities'] = dataset['Utilities'].map({'AllPub':1, 'NoSewr':2, 'NoSeWa':3, 'ELO':4})\n",
    "    dataset['Utilities'] = dataset['Utilities'].fillna(0)\n",
    "    dataset['LotConfig'] = dataset['LotConfig'].map({'Inside':1, 'Corner':2, 'CulDSac':3, 'FR2':4, 'FR3':5})\n",
    "    dataset['LandSlope'] = dataset['LandSlope'].map({'Gtl':1, 'Mod':2, 'Sev':3})\n",
    "    \n",
    "test_df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "124be5b8",
   "metadata": {},
   "outputs": [],
   "source": [
    "for dataset in combine:\n",
    "    dataset['Neighborhood'] = dataset['Neighborhood'].map({'Blmngtn':1, 'Blueste':2, 'BrDale':3, 'BrkSide':4, 'ClearCr':5, \n",
    "                                                           'CollgCr':6, 'Crawfor':7, 'Edwards':8, 'Gilbert':9, 'IDOTRR':10,\n",
    "                                                          'MeadowV':11, 'Mitchel':12, 'NAmes':13, 'NoRidge':14, 'NPkVill':15,\n",
    "                                                          'NridgHt':16, 'NWAmes':17, 'OldTown':18, 'SWISU':19, 'Sawyer':20, \n",
    "                                                           'SawyerW':21, 'Somerst':22, 'StoneBr':23, 'Timber':24, 'Veenker':25})\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "2bf7e5ac",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Id</th>\n",
       "      <th>MSSubClass</th>\n",
       "      <th>MSZoning</th>\n",
       "      <th>LotFrontage</th>\n",
       "      <th>LotArea</th>\n",
       "      <th>Street</th>\n",
       "      <th>LotShape</th>\n",
       "      <th>LandContour</th>\n",
       "      <th>Utilities</th>\n",
       "      <th>LotConfig</th>\n",
       "      <th>...</th>\n",
       "      <th>EnclosedPorch</th>\n",
       "      <th>3SsnPorch</th>\n",
       "      <th>ScreenPorch</th>\n",
       "      <th>PoolArea</th>\n",
       "      <th>MiscVal</th>\n",
       "      <th>MoSold</th>\n",
       "      <th>YrSold</th>\n",
       "      <th>SaleType</th>\n",
       "      <th>SaleCondition</th>\n",
       "      <th>SalePrice</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>65.0</td>\n",
       "      <td>8450</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>2008</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "      <td>208500</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>20</td>\n",
       "      <td>6</td>\n",
       "      <td>80.0</td>\n",
       "      <td>9600</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>5</td>\n",
       "      <td>2007</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "      <td>181500</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>68.0</td>\n",
       "      <td>11250</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>2008</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "      <td>223500</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>70</td>\n",
       "      <td>6</td>\n",
       "      <td>60.0</td>\n",
       "      <td>9550</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>272</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>2006</td>\n",
       "      <td>WD</td>\n",
       "      <td>Abnorml</td>\n",
       "      <td>140000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>84.0</td>\n",
       "      <td>14260</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>12</td>\n",
       "      <td>2008</td>\n",
       "      <td>WD</td>\n",
       "      <td>Normal</td>\n",
       "      <td>250000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>5 rows × 77 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "   Id  MSSubClass  MSZoning  LotFrontage  LotArea  Street  LotShape  \\\n",
       "0   1          60         6         65.0     8450       2         1   \n",
       "1   2          20         6         80.0     9600       2         1   \n",
       "2   3          60         6         68.0    11250       2         2   \n",
       "3   4          70         6         60.0     9550       2         2   \n",
       "4   5          60         6         84.0    14260       2         2   \n",
       "\n",
       "   LandContour  Utilities  LotConfig  ...  EnclosedPorch  3SsnPorch  \\\n",
       "0            1          1          1  ...              0          0   \n",
       "1            1          1          4  ...              0          0   \n",
       "2            1          1          1  ...              0          0   \n",
       "3            1          1          2  ...            272          0   \n",
       "4            1          1          4  ...              0          0   \n",
       "\n",
       "   ScreenPorch  PoolArea  MiscVal  MoSold  YrSold  SaleType  SaleCondition  \\\n",
       "0            0         0        0       2    2008        WD         Normal   \n",
       "1            0         0        0       5    2007        WD         Normal   \n",
       "2            0         0        0       9    2008        WD         Normal   \n",
       "3            0         0        0       2    2006        WD        Abnorml   \n",
       "4            0         0        0      12    2008        WD         Normal   \n",
       "\n",
       "   SalePrice  \n",
       "0     208500  \n",
       "1     181500  \n",
       "2     223500  \n",
       "3     140000  \n",
       "4     250000  \n",
       "\n",
       "[5 rows x 77 columns]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#dataset['BldgType'] = dataset['BldgType'].fillna(0)\n",
    "for dataset in combine:\n",
    "    dataset['Condition1'] = dataset['Condition1'].map({'Artery':1, 'Feedr':2, 'Norm':3, 'RRNn':4, 'RRAn':5, \n",
    "                                                           'PosN':6, 'PosA':7, 'RRNe':8, 'RRAe':9})\n",
    "    dataset['Condition2'] = dataset['Condition2'].map({'Artery':1, 'Feedr':2, 'Norm':3, 'RRNn':4, 'RRAn':5, \n",
    "                                                           'PosN':6, 'PosA':7, 'RRNe':8, 'RRAe':9})\n",
    "    dataset['Condition2'] = dataset['Condition2'].fillna(0)\n",
    "    dataset['BldgType'] = dataset['BldgType'].map({'1Fam':1, '2FmCon':2, 'Duplx':3, 'TwnhsE':4, 'TwnhsI':5})\n",
    "    dataset['BldgType'] = dataset['BldgType'].fillna(0)\n",
    "    dataset['HouseStyle'] = dataset['HouseStyle'].map({'1Story':1, '1.5Fin':2, '1.5Unf':3, '2Story':4, '2.5Fin':5, '2.5Unf':6,\n",
    "                                                      'SFoyer':7, 'SLvl':8})\n",
    "    dataset['RoofStyle'] = dataset['RoofStyle'].map({'Flat':1, 'Gable':2, 'Gambrel':3, 'Hip':4, 'Mansard':5, 'Shed':6})\n",
    "    dataset['RoofMatl'] = dataset['RoofMatl'].map({'ClyTile':1, 'CompShg':2, 'Membran':3, 'Metal':4, 'Roll':5, 'Tar&Grv':6, 'WdShake':7, 'WdShngl':8})\n",
    "    \n",
    "train_df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "8ca54488",
   "metadata": {},
   "outputs": [],
   "source": [
    "#train_df['Exterior1st'] = train_df['Exterior1st'].fillna(0)\n",
    "#test_df['Exterior1st'] = test_df['Exterior1st'].fillna(0)\n",
    "#train_df['Exterior2nd'] = train_df['Exterior2nd'].fillna(0)\n",
    "#test_df['Exterior2nd'] = test_df['Exterior2nd'].fillna(0)\n",
    "#train_df['MasVnrType'] = train_df['MasVnrType'].fillna(0)\n",
    "#test_df['MasVnrType'] = test_df['MasVnrType'].fillna(0)\n",
    "\n",
    "for dataset in combine:\n",
    "    dataset['Exterior1st'] = dataset['Exterior1st'].map({'AsbShng':1, 'AsphShn':2, 'BrkComm':3, 'BrkFace':4, 'CBlock':5,\n",
    "                                                         'CemntBd':6, 'HdBoard':7, 'ImStucc':8, 'MetalSd':9, 'Other':10,\n",
    "                                                         'Plywood':11, 'PreCast':12, 'Stone':13, 'Stucco':14, 'VinylSd':15,\n",
    "                                                         'Wd Sdng':16, 'WdShing':17})\n",
    "    dataset['Exterior1st'] = dataset['Exterior1st'].fillna(0)\n",
    "    dataset['Exterior2nd'] = dataset['Exterior2nd'].map({'AsbShng':1, 'AsphShn':2, 'BrkComm':3, 'BrkFace':4, 'CBlock':5,\n",
    "                                                         'CemntBd':6, 'HdBoard':7, 'ImStucc':8, 'MetalSd':9, 'Other':10,\n",
    "                                                         'Plywood':11, 'PreCast':12, 'Stone':13, 'Stucco':14, 'VinylSd':15,\n",
    "                                                         'Wd Sdng':16, 'WdShing':17})\n",
    "    dataset['Exterior2nd'] = dataset['Exterior2nd'].fillna(0)\n",
    "    dataset['MasVnrType'] = dataset['MasVnrType'].map({'BrkCmn':1, 'BrkFace':2, 'CBlock':3, 'None':4, 'Stone':5})\n",
    "    dataset['MasVnrType'] = dataset['MasVnrType'].fillna(0)\n",
    "    \n",
    "    \n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "81a18359",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((1460, 77), (1459, 76))"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "train_df.shape, test_df.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "5cacc8f6",
   "metadata": {},
   "outputs": [],
   "source": [
    "train_df['BsmtFullBath'].fillna(train_df['BsmtFullBath'].dropna().median(), inplace=True)\n",
    "test_df['BsmtFullBath'].fillna(test_df['BsmtFullBath'].dropna().median(), inplace=True)\n",
    "\n",
    "train_df['BsmtHalfBath'].fillna(train_df['BsmtHalfBath'].dropna().median(), inplace=True)\n",
    "test_df['BsmtHalfBath'].fillna(test_df['BsmtHalfBath'].dropna().median(), inplace=True)\n",
    "\n",
    "train_df['BsmtFinSF1'].fillna(train_df['BsmtFinSF1'].dropna().median(), inplace=True)\n",
    "test_df['BsmtFinSF1'].fillna(test_df['BsmtFinSF1'].dropna().median(), inplace=True)\n",
    "\n",
    "\n",
    "train_df['BsmtFinSF2'].fillna(train_df['BsmtFinSF2'].dropna().median(), inplace=True)\n",
    "test_df['BsmtFinSF2'].fillna(test_df['BsmtFinSF2'].dropna().median(), inplace=True)\n",
    "train_df['BsmtUnfSF'].fillna(train_df['BsmtUnfSF'].dropna().median(), inplace=True)\n",
    "test_df['BsmtUnfSF'].fillna(test_df['BsmtUnfSF'].dropna().median(), inplace=True)\n",
    "train_df['TotalBsmtSF'].fillna(train_df['TotalBsmtSF'].dropna().median(), inplace=True)\n",
    "test_df['TotalBsmtSF'].fillna(test_df['TotalBsmtSF'].dropna().median(), inplace=True)\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "train_df['MasVnrArea'].fillna(train_df['MasVnrArea'].dropna().median(), inplace=True)\n",
    "test_df['MasVnrArea'].fillna(test_df['MasVnrArea'].dropna().median(), inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "f1e805a9",
   "metadata": {},
   "outputs": [],
   "source": [
    "for dataset in combine:\n",
    "    dataset['ExterQual'] = dataset['ExterQual'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5})\n",
    "    dataset['ExterCond'] = dataset['ExterCond'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "97361313",
   "metadata": {},
   "outputs": [],
   "source": [
    "for dataset in combine:\n",
    "    dataset['Foundation'] = dataset['Foundation'].map({'BrkTil':1, 'CBlock':2, 'PConc':3, 'Slab':4, 'Stone':5, 'Wood':6})\n",
    "    dataset['BsmtQual'] = dataset['BsmtQual'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5, 'NA':6})\n",
    "    dataset['BsmtQual'] = dataset['BsmtQual'].fillna(0)\n",
    "    dataset['BsmtCond'] = dataset['BsmtCond'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5, 'NA':6})\n",
    "    dataset['BsmtCond'] = dataset['BsmtCond'].fillna(0)\n",
    "    dataset['BsmtExposure'] = dataset['BsmtExposure'].map({'Gd':1, 'Av':2, 'Mn':3, 'No':4, 'NA':5})\n",
    "    dataset['BsmtExposure'] = dataset['BsmtExposure'].fillna(0)\n",
    "    dataset['BsmtFinType1'] = dataset['BsmtFinType1'].map({'GLQ':1, 'ALQ':2, 'BLQ':3, 'Rec':4, 'LwQ':5, 'Unf':6, 'NA':7})\n",
    "    dataset['BsmtFinType1'] = dataset['BsmtFinType1'].fillna(0)\n",
    "    dataset['BsmtFinType2'] = dataset['BsmtFinType2'].map({'GLQ':1, 'ALQ':2, 'BLQ':3, 'Rec':4, 'LwQ':5, 'Unf':6, 'NA':7})\n",
    "    dataset['BsmtFinType2'] = dataset['BsmtFinType2'].fillna(0)\n",
    "    dataset['Heating'] = dataset['Heating'].map({'Floor':1, 'GasA':2, 'GasW':3, 'Grav':4, 'OthW':5, 'Wall':6})\n",
    "    dataset['HeatingQC'] = dataset['HeatingQC'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5})\n",
    "    dataset['CentralAir'] = dataset['CentralAir'].map({'N':0, 'Y':1})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "0ef79c85",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0    1.0\n",
       "1    1.0\n",
       "2    1.0\n",
       "3    1.0\n",
       "4    1.0\n",
       "Name: Functional, dtype: float64"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#train_df['KitchenQual'] = train_df['KitchenQual'].fillna(0)\n",
    "#test_df['KitchenQual'] = test_df['KitchenQual'].fillna(0)\n",
    "#train_df['Functional'] = train_df['Functional'].fillna(0)\n",
    "#test_df['Functional'] = test_df['Functional'].fillna(0)\n",
    "\n",
    "for dataset in combine:\n",
    "    dataset['KitchenQual'] = dataset['KitchenQual'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5})\n",
    "    dataset['KitchenQual'] = dataset['KitchenQual'].fillna(0)\n",
    "    dataset['Functional'] = dataset['Functional'].map({'Typ':1, 'Min1':2, 'Min2':3, 'Mod':4, 'Maj1':5, \n",
    "                                                       'Maj2':6, 'Sev':7, 'Sal':8})\n",
    "    dataset['Functional'] = dataset['Functional'].fillna(0)\n",
    "test_df['Functional'].head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "52ce150b",
   "metadata": {},
   "outputs": [],
   "source": [
    "#train_df['Electrical'] = train_df['Electrical'].fillna(0)\n",
    "#test_df['Electrical'] = test_df['Electrical'].fillna(0)\n",
    "for dataset in combine:\n",
    "    dataset['Electrical'] = dataset['Electrical'].map({'SBrkr':1, 'FuseA':2, 'FuseF':3, 'FuseP':4, 'Mix':5})\n",
    "    dataset['Electrical'] = dataset['Electrical'].fillna(0)\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "b8349390",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2.0    870\n",
      "6.0    387\n",
      "0.0    169\n",
      "3.0     19\n",
      "5.0      9\n",
      "1.0      6\n",
      "Name: GarageType, dtype: int64\n",
      "2.0    853\n",
      "6.0    392\n",
      "0.0    174\n",
      "3.0     17\n",
      "1.0     17\n",
      "5.0      6\n",
      "Name: GarageType, dtype: int64\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "((1460, 77), (1459, 76))"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "train_df['GarageYrBlt'] = train_df['GarageYrBlt'].fillna(0)\n",
    "test_df['GarageYrBlt'] = test_df['GarageYrBlt'].fillna(0)\n",
    "for dataset in combine:\n",
    "    dataset['FireplaceQu'] = dataset['FireplaceQu'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5, 'NA':6})\n",
    "    dataset['FireplaceQu'] = dataset['FireplaceQu'].fillna(0)\n",
    "    dataset['GarageType'] = dataset['GarageType'].map({'2Types':1, 'Attchd':2, 'Basment':3, 'BuildIn':4, 'CarPort':5, \n",
    "                                                       'Detchd':6, 'NA':7})\n",
    "    dataset['GarageType'] = dataset['GarageType'].fillna(0)\n",
    "    dataset['GarageFinish'] = dataset['GarageFinish'].map({'Fin':1, 'RFn':2, 'Unf':3, 'NA':4})\n",
    "    dataset['GarageFinish'] = dataset['GarageFinish'].fillna(0)\n",
    "    dataset['GarageQual'] = dataset['GarageQual'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5, 'NA':6})\n",
    "    dataset['GarageQual'] = dataset['GarageQual'].fillna(0)\n",
    "    dataset['GarageCond'] = dataset['GarageCond'].map({'Ex':1, 'Gd':2, 'TA':3, 'Fa':4, 'Po':5, 'NA':6})\n",
    "    dataset['GarageCond'] = dataset['GarageCond'].fillna(0)\n",
    "    dataset['PavedDrive'] = dataset['PavedDrive'].map({'Y':1, 'P':2, 'N':3})\n",
    "    \n",
    "    \n",
    "\n",
    "\n",
    "print(train_df['GarageType'].value_counts())\n",
    "print(test_df['GarageType'].value_counts())    \n",
    "    \n",
    "train_df['GarageCars'].fillna(train_df['GarageCars'].dropna().median(), inplace=True)\n",
    "test_df['GarageCars'].fillna(test_df['GarageCars'].dropna().median(), inplace=True)\n",
    "train_df['GarageArea'].fillna(train_df['GarageArea'].dropna().median(), inplace=True)\n",
    "test_df['GarageArea'].fillna(test_df['GarageArea'].dropna().median(), inplace=True)\n",
    "\n",
    "train_df.shape, test_df.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "8a6b7df6",
   "metadata": {},
   "outputs": [],
   "source": [
    "for dataset in combine:\n",
    "    dataset['SaleCondition'] = dataset['SaleCondition'].map({'Normal':1, 'Abnorml':2, 'AdjLand':3, 'Alloca':4, 'FamilySale':5,\n",
    "                                                             'Partial Home':6})\n",
    "    dataset['SaleCondition'] = dataset['SaleCondition'].fillna(0)\n",
    "    dataset['SaleType'] = dataset['SaleType'].map({'WD':1, 'CWD':2, 'VWD':3, 'New':4, 'COD':5, \n",
    "                                                       'Con':6, 'ConLw':7, 'ConLIContract':8, 'ConLD':9, 'Oth':10})\n",
    "    dataset['SaleType'] = dataset['SaleType'].fillna(0)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "131b62db",
   "metadata": {},
   "outputs": [],
   "source": [
    "train_df['SaleCategory'] = np.where(train_df['SalePrice'] <=70900, 1,0)\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >70900) & (train_df['SalePrice']<= 106900), 2,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >106900) & (train_df['SalePrice'] <= 142900),3,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >142900) & (train_df['SalePrice'] <= 178900),4,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >178900) & (train_df['SalePrice']<= 214900), 5,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >214900) & (train_df['SalePrice'] <= 250900), 6,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >250900) & (train_df['SalePrice'] <= 286900), 7,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >286900) & (train_df['SalePrice']<= 322900), 8,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >322900) & (train_df['SalePrice'] <= 358900), 9,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >358900) & (train_df['SalePrice'] <= 394900), 10,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >394900) & (train_df['SalePrice']<= 430900), 11,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >430900) & (train_df['SalePrice'] <= 466900), 12,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >466900) & (train_df['SalePrice'] <= 502900), 13,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >502900) & (train_df['SalePrice']<= 538900), 14,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >538900) & (train_df['SalePrice'] <= 574900), 15,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >574900) & (train_df['SalePrice'] <= 610900), 16,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >610900) & (train_df['SalePrice']<= 646900), 17,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >646900) & (train_df['SalePrice'] <= 682900), 18,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >682900) & (train_df['SalePrice'] <= 718900), 19,train_df['SaleCategory'])\n",
    "train_df['SaleCategory'] = np.where((train_df['SalePrice'] >718900) & (train_df['SalePrice'] <= 755000), 20,train_df['SaleCategory'])\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "3b67e769",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((1460, 74), (1459, 73), (1460, 74), (1459, 73))"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### Dropping features\n",
    "## The inconsequencial \n",
    "#train_df = train_df.drop(['SaleCategory'], axis=1)\n",
    "train_df = train_df.drop(['Street', 'Utilities', 'Condition2', 'SaleCategory'], axis=1)\n",
    "test_df = test_df.drop(['Street', 'Utilities', 'Condition2'], axis=1)\n",
    "combine = [train_df, test_df]\n",
    "train_df.shape, test_df.shape, combine[0].shape, combine[1].shape\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "3731da16",
   "metadata": {},
   "outputs": [],
   "source": [
    "# pd.set_option('display.max_rows',None,'display.max_columns',None)\n",
    "#train_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "a570a451",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((1460, 74), (1459, 73))"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "train_df.shape, test_df.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "20656fad",
   "metadata": {},
   "outputs": [],
   "source": [
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0058684f",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "bebfd9d3",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(1460, 72) (1459, 72) (1460,)\n",
      "(1460, 72) (1459, 72)\n"
     ]
    }
   ],
   "source": [
    "\n",
    "\n",
    "Y_train = np.array(train_df['SalePrice']).astype(np.float32)\n",
    "\n",
    "train_df = train_df.drop(['SalePrice'], axis=1)\n",
    "train_df = train_df.drop(['Id'], axis=1)\n",
    "maskid = test_df['Id'].astype(int)\n",
    "test_df = test_df.drop(['Id'], axis=1)\n",
    "X_test = np.array(test_df).astype(np.float32)\n",
    "X_train = np.array(train_df).astype(np.float32)\n",
    "print(X_train.shape, X_test.shape,Y_train.shape)\n",
    "print(train_df.shape, test_df.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "d4e9abe0",
   "metadata": {},
   "outputs": [],
   "source": [
    "#train_df.columns"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "b0576465",
   "metadata": {},
   "outputs": [],
   "source": [
    "#test_df.columns"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "d85fc308",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((1460, 72), (1459, 72))"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "X_train.shape, X_test.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "313f7ba4",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "03723d0c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Epoch 1/500\n",
      "46/46 [==============================] - 1s 1ms/step - loss: 37575401472.0000\n",
      "Epoch 2/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 31673229312.0000\n",
      "Epoch 3/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 19510749184.0000\n",
      "Epoch 4/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 9340433408.0000\n",
      "Epoch 5/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 7004079616.0000\n",
      "Epoch 6/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 6205861888.0000\n",
      "Epoch 7/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 5660312064.0000\n",
      "Epoch 8/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 5121650176.0000\n",
      "Epoch 9/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 4751652352.0000\n",
      "Epoch 10/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 4455522304.0000\n",
      "Epoch 11/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 4152408832.0000\n",
      "Epoch 12/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 3920095232.0000\n",
      "Epoch 13/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 3707006976.0000\n",
      "Epoch 14/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 3517708288.0000\n",
      "Epoch 15/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 3346075648.0000\n",
      "Epoch 16/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 3179902976.0000\n",
      "Epoch 17/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 3054013952.0000\n",
      "Epoch 18/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 2915136512.0000\n",
      "Epoch 19/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 2758035456.0000\n",
      "Epoch 20/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 2654981120.0000\n",
      "Epoch 21/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 2518755072.0000\n",
      "Epoch 22/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 2363048192.0000\n",
      "Epoch 23/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 2239849472.0000\n",
      "Epoch 24/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 2169812992.0000\n",
      "Epoch 25/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 2080661376.0000\n",
      "Epoch 26/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 2019651968.0000\n",
      "Epoch 27/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1981104384.0000\n",
      "Epoch 28/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1968570496.0000\n",
      "Epoch 29/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1931987584.0000\n",
      "Epoch 30/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1909607680.0000\n",
      "Epoch 31/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1898365184.0000\n",
      "Epoch 32/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1881746688.0000\n",
      "Epoch 33/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1870780416.0000\n",
      "Epoch 34/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1887729152.0000\n",
      "Epoch 35/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1848702208.0000\n",
      "Epoch 36/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1849329280.0000\n",
      "Epoch 37/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1849030144.0000\n",
      "Epoch 38/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1828822272.0000\n",
      "Epoch 39/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1835161344.0000\n",
      "Epoch 40/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1824706944.0000\n",
      "Epoch 41/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1834251520.0000\n",
      "Epoch 42/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1812831360.0000\n",
      "Epoch 43/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1835688320.0000\n",
      "Epoch 44/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1813727104.0000\n",
      "Epoch 45/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1799611008.0000\n",
      "Epoch 46/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1796408320.0000\n",
      "Epoch 47/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1778381440.0000\n",
      "Epoch 48/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1788190720.0000\n",
      "Epoch 49/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1776757632.0000\n",
      "Epoch 50/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1777386368.0000\n",
      "Epoch 51/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1763894016.0000\n",
      "Epoch 52/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1754959872.0000\n",
      "Epoch 53/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1768204672.0000\n",
      "Epoch 54/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 1752511488.0000\n",
      "Epoch 55/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 1744579968.0000\n",
      "Epoch 56/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1727864960.0000\n",
      "Epoch 57/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1738324864.0000\n",
      "Epoch 58/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1725742592.0000\n",
      "Epoch 59/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1709118720.0000\n",
      "Epoch 60/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1712387072.0000\n",
      "Epoch 61/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1711397888.0000\n",
      "Epoch 62/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1704007040.0000\n",
      "Epoch 63/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1714610432.0000\n",
      "Epoch 64/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1677842432.0000\n",
      "Epoch 65/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1671758720.0000\n",
      "Epoch 66/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 1663721728.0000\n",
      "Epoch 67/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1664153472.0000\n",
      "Epoch 68/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1662666240.0000\n",
      "Epoch 69/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1659946240.0000\n",
      "Epoch 70/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1653084928.0000\n",
      "Epoch 71/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1659384576.0000\n",
      "Epoch 72/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1652089856.0000\n",
      "Epoch 73/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1643432576.0000\n",
      "Epoch 74/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1625599616.0000\n",
      "Epoch 75/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1631851008.0000\n",
      "Epoch 76/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1625328896.0000\n",
      "Epoch 77/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1613369344.0000\n",
      "Epoch 78/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1622333056.0000\n",
      "Epoch 79/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1625542912.0000\n",
      "Epoch 80/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1600781952.0000\n",
      "Epoch 81/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1603987200.0000\n",
      "Epoch 82/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1600203776.0000\n",
      "Epoch 83/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1591067264.0000\n",
      "Epoch 84/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1612436736.0000\n",
      "Epoch 85/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1581401216.0000\n",
      "Epoch 86/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1602193664.0000\n",
      "Epoch 87/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1580996736.0000\n",
      "Epoch 88/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1568304000.0000\n",
      "Epoch 89/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1563087104.0000\n",
      "Epoch 90/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1583726976.0000\n",
      "Epoch 91/500\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "46/46 [==============================] - 0s 1ms/step - loss: 1550254208.0000\n",
      "Epoch 92/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1553052800.0000\n",
      "Epoch 93/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 1564786688.0000\n",
      "Epoch 94/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1531865216.0000\n",
      "Epoch 95/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1543551872.0000\n",
      "Epoch 96/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1528982528.0000\n",
      "Epoch 97/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1527138560.0000\n",
      "Epoch 98/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1550347648.0000\n",
      "Epoch 99/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1552040448.0000\n",
      "Epoch 100/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1525293312.0000\n",
      "Epoch 101/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1509031808.0000\n",
      "Epoch 102/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1509412992.0000\n",
      "Epoch 103/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1511415424.0000\n",
      "Epoch 104/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1512214144.0000\n",
      "Epoch 105/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1537159936.0000\n",
      "Epoch 106/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1527323648.0000\n",
      "Epoch 107/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1481484672.0000\n",
      "Epoch 108/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1478832896.0000\n",
      "Epoch 109/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1488723712.0000\n",
      "Epoch 110/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1461360512.0000\n",
      "Epoch 111/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1477541760.0000\n",
      "Epoch 112/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1449238784.0000\n",
      "Epoch 113/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1447215744.0000\n",
      "Epoch 114/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1464180992.0000\n",
      "Epoch 115/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1450034944.0000\n",
      "Epoch 116/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1441708544.0000\n",
      "Epoch 117/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1455252608.0000\n",
      "Epoch 118/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1422728064.0000\n",
      "Epoch 119/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1422319232.0000\n",
      "Epoch 120/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1418453248.0000\n",
      "Epoch 121/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1411046272.0000\n",
      "Epoch 122/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1443480192.0000\n",
      "Epoch 123/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1410669184.0000\n",
      "Epoch 124/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1405838464.0000\n",
      "Epoch 125/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1412650880.0000\n",
      "Epoch 126/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1396457472.0000\n",
      "Epoch 127/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1384153600.0000\n",
      "Epoch 128/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1425121664.0000\n",
      "Epoch 129/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1395643776.0000\n",
      "Epoch 130/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1395490944.0000\n",
      "Epoch 131/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1379935744.0000\n",
      "Epoch 132/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1370625920.0000\n",
      "Epoch 133/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1381266560.0000\n",
      "Epoch 134/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1366819968.0000\n",
      "Epoch 135/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1356679424.0000\n",
      "Epoch 136/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1352935552.0000\n",
      "Epoch 137/500\n",
      "46/46 [==============================] - 0s 955us/step - loss: 1356566912.0000\n",
      "Epoch 138/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1354142208.0000\n",
      "Epoch 139/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1352539520.0000\n",
      "Epoch 140/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1350933376.0000\n",
      "Epoch 141/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1378675584.0000\n",
      "Epoch 142/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1387719168.0000\n",
      "Epoch 143/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1326455040.0000\n",
      "Epoch 144/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1345043456.0000\n",
      "Epoch 145/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1338322816.0000\n",
      "Epoch 146/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1323224704.0000\n",
      "Epoch 147/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1317426176.0000\n",
      "Epoch 148/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1333215488.0000\n",
      "Epoch 149/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1314858240.0000\n",
      "Epoch 150/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1306721280.0000\n",
      "Epoch 151/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1314164736.0000\n",
      "Epoch 152/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1305926656.0000\n",
      "Epoch 153/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1297575936.0000\n",
      "Epoch 154/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1298228736.0000\n",
      "Epoch 155/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1295447680.0000\n",
      "Epoch 156/500\n",
      "46/46 [==============================] - 0s 955us/step - loss: 1287868032.0000\n",
      "Epoch 157/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1277368960.0000\n",
      "Epoch 158/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1292231680.0000\n",
      "Epoch 159/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1271536256.0000\n",
      "Epoch 160/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1281053824.0000\n",
      "Epoch 161/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1272432000.0000\n",
      "Epoch 162/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1292426880.0000\n",
      "Epoch 163/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1283726336.0000\n",
      "Epoch 164/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1261273216.0000\n",
      "Epoch 165/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1272013696.0000\n",
      "Epoch 166/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1268905728.0000\n",
      "Epoch 167/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1257345920.0000\n",
      "Epoch 168/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1256381824.0000\n",
      "Epoch 169/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1249425792.0000\n",
      "Epoch 170/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1252995840.0000\n",
      "Epoch 171/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1249125504.0000\n",
      "Epoch 172/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1247326976.0000\n",
      "Epoch 173/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1233211392.0000\n",
      "Epoch 174/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1231723520.0000\n",
      "Epoch 175/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1234078464.0000\n",
      "Epoch 176/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1235215104.0000\n",
      "Epoch 177/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1227650176.0000\n",
      "Epoch 178/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1246731776.0000\n",
      "Epoch 179/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1234807808.0000\n",
      "Epoch 180/500\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "46/46 [==============================] - 0s 1ms/step - loss: 1278749696.0000\n",
      "Epoch 181/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1225272320.0000\n",
      "Epoch 182/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1214287616.0000\n",
      "Epoch 183/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1211957760.0000\n",
      "Epoch 184/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1217143680.0000\n",
      "Epoch 185/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1213405824.0000\n",
      "Epoch 186/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1211799808.0000\n",
      "Epoch 187/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1198892928.0000\n",
      "Epoch 188/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1241944448.0000\n",
      "Epoch 189/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1195319168.0000\n",
      "Epoch 190/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1197996160.0000\n",
      "Epoch 191/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1207923328.0000\n",
      "Epoch 192/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1204154112.0000\n",
      "Epoch 193/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1191821568.0000\n",
      "Epoch 194/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1207184512.0000\n",
      "Epoch 195/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1230439168.0000\n",
      "Epoch 196/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1223935744.0000\n",
      "Epoch 197/500\n",
      "46/46 [==============================] - 0s 955us/step - loss: 1177907328.0000\n",
      "Epoch 198/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1174108288.0000\n",
      "Epoch 199/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1173522304.0000\n",
      "Epoch 200/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1173547520.0000\n",
      "Epoch 201/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1170129792.0000\n",
      "Epoch 202/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1181382400.0000\n",
      "Epoch 203/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1176849792.0000\n",
      "Epoch 204/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1185326976.0000\n",
      "Epoch 205/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1186017152.0000\n",
      "Epoch 206/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1162616064.0000\n",
      "Epoch 207/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1184215424.0000\n",
      "Epoch 208/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1172317696.0000\n",
      "Epoch 209/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1158264064.0000\n",
      "Epoch 210/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1161881728.0000\n",
      "Epoch 211/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1159071744.0000\n",
      "Epoch 212/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1154510848.0000\n",
      "Epoch 213/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1158916480.0000\n",
      "Epoch 214/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1181084288.0000\n",
      "Epoch 215/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1145881984.0000\n",
      "Epoch 216/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1181871744.0000\n",
      "Epoch 217/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1146885632.0000\n",
      "Epoch 218/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1168582528.0000\n",
      "Epoch 219/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1133846016.0000\n",
      "Epoch 220/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1141983744.0000\n",
      "Epoch 221/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1138450688.0000\n",
      "Epoch 222/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1178636160.0000\n",
      "Epoch 223/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1135547136.0000\n",
      "Epoch 224/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1135994752.0000\n",
      "Epoch 225/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1138955136.0000\n",
      "Epoch 226/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1125614592.0000\n",
      "Epoch 227/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1146779776.0000\n",
      "Epoch 228/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1112974592.0000\n",
      "Epoch 229/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1145023360.0000\n",
      "Epoch 230/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1128633600.0000\n",
      "Epoch 231/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1117753856.0000\n",
      "Epoch 232/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1114571776.0000\n",
      "Epoch 233/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1111556224.0000\n",
      "Epoch 234/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1138306304.0000\n",
      "Epoch 235/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1135575296.0000\n",
      "Epoch 236/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1133416960.0000\n",
      "Epoch 237/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1116083584.0000\n",
      "Epoch 238/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1140733568.0000\n",
      "Epoch 239/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1124061312.0000\n",
      "Epoch 240/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1114376448.0000\n",
      "Epoch 241/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1100529792.0000\n",
      "Epoch 242/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1119478912.0000\n",
      "Epoch 243/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1090614016.0000\n",
      "Epoch 244/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1110864256.0000\n",
      "Epoch 245/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1105496960.0000\n",
      "Epoch 246/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1092675584.0000\n",
      "Epoch 247/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1086414464.0000\n",
      "Epoch 248/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1119297664.0000\n",
      "Epoch 249/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1146130432.0000\n",
      "Epoch 250/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1093157376.0000\n",
      "Epoch 251/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1086590976.0000\n",
      "Epoch 252/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1071177856.0000\n",
      "Epoch 253/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1081739776.0000\n",
      "Epoch 254/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1097059456.0000\n",
      "Epoch 255/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1090586496.0000\n",
      "Epoch 256/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1071869888.0000\n",
      "Epoch 257/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1073440512.0000\n",
      "Epoch 258/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1068938304.0000\n",
      "Epoch 259/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1058489536.0000\n",
      "Epoch 260/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1071287616.0000\n",
      "Epoch 261/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1068797376.0000\n",
      "Epoch 262/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1058010688.0000\n",
      "Epoch 263/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1084819200.0000\n",
      "Epoch 264/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1075873152.0000\n",
      "Epoch 265/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1078187008.0000\n",
      "Epoch 266/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1057737856.0000\n",
      "Epoch 267/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1061481536.0000\n",
      "Epoch 268/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1083850880.0000\n",
      "Epoch 269/500\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "46/46 [==============================] - 0s 1ms/step - loss: 1078889728.0000\n",
      "Epoch 270/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1035378368.0000\n",
      "Epoch 271/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1049342336.0000\n",
      "Epoch 272/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 1045032768.0000\n",
      "Epoch 273/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1037640192.0000\n",
      "Epoch 274/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1046001344.0000\n",
      "Epoch 275/500\n",
      "46/46 [==============================] - 0s 955us/step - loss: 1074191232.0000\n",
      "Epoch 276/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1034056832.0000\n",
      "Epoch 277/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1066371520.0000\n",
      "Epoch 278/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1059518976.0000\n",
      "Epoch 279/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1039452416.0000\n",
      "Epoch 280/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1020784576.0000\n",
      "Epoch 281/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1025558528.0000\n",
      "Epoch 282/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 1035885376.0000\n",
      "Epoch 283/500\n",
      "46/46 [==============================] - 0s 955us/step - loss: 1029284160.0000\n",
      "Epoch 284/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1021881664.0000\n",
      "Epoch 285/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1025891648.0000\n",
      "Epoch 286/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1023467072.0000\n",
      "Epoch 287/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1035143744.0000\n",
      "Epoch 288/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1011919744.0000\n",
      "Epoch 289/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1012461632.0000\n",
      "Epoch 290/500\n",
      "46/46 [==============================] - 0s 911us/step - loss: 1011675264.0000\n",
      "Epoch 291/500\n",
      "46/46 [==============================] - 0s 911us/step - loss: 1021221184.0000\n",
      "Epoch 292/500\n",
      "46/46 [==============================] - 0s 888us/step - loss: 1017904960.0000\n",
      "Epoch 293/500\n",
      "46/46 [==============================] - 0s 911us/step - loss: 1020187136.0000\n",
      "Epoch 294/500\n",
      "46/46 [==============================] - 0s 888us/step - loss: 994124736.0000\n",
      "Epoch 295/500\n",
      "46/46 [==============================] - 0s 933us/step - loss: 1019785344.0000\n",
      "Epoch 296/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1007840448.0000\n",
      "Epoch 297/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 995293376.0000\n",
      "Epoch 298/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 987683392.0000\n",
      "Epoch 299/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 991394304.0000\n",
      "Epoch 300/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 998160256.0000\n",
      "Epoch 301/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 997489600.0000\n",
      "Epoch 302/500\n",
      "46/46 [==============================] - 0s 955us/step - loss: 986753856.0000\n",
      "Epoch 303/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1012064704.0000\n",
      "Epoch 304/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 1009188480.0000\n",
      "Epoch 305/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 989572928.0000\n",
      "Epoch 306/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 979872576.0000\n",
      "Epoch 307/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 983294976.0000\n",
      "Epoch 308/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 989040256.0000\n",
      "Epoch 309/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 983921408.0000\n",
      "Epoch 310/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 976866752.0000\n",
      "Epoch 311/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 994716096.0000\n",
      "Epoch 312/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 984231296.0000\n",
      "Epoch 313/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 991042816.0000\n",
      "Epoch 314/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 970341120.0000\n",
      "Epoch 315/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 1027121408.0000\n",
      "Epoch 316/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 955926784.0000\n",
      "Epoch 317/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 964636864.0000\n",
      "Epoch 318/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 960651456.0000\n",
      "Epoch 319/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 952366528.0000\n",
      "Epoch 320/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 993445888.0000\n",
      "Epoch 321/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 964525184.0000\n",
      "Epoch 322/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 952062720.0000\n",
      "Epoch 323/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 946027264.0000\n",
      "Epoch 324/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 946536384.0000\n",
      "Epoch 325/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 947513024.0000\n",
      "Epoch 326/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 966275456.0000\n",
      "Epoch 327/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 945361984.0000\n",
      "Epoch 328/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 962488512.0000\n",
      "Epoch 329/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 957330560.0000\n",
      "Epoch 330/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 944028992.0000\n",
      "Epoch 331/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 935593792.0000\n",
      "Epoch 332/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 946736384.0000\n",
      "Epoch 333/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 924229888.0000\n",
      "Epoch 334/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 940896192.0000\n",
      "Epoch 335/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 944615104.0000\n",
      "Epoch 336/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 929386240.0000\n",
      "Epoch 337/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 934466496.0000\n",
      "Epoch 338/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 930142784.0000\n",
      "Epoch 339/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 916115968.0000\n",
      "Epoch 340/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 928658048.0000\n",
      "Epoch 341/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 932606080.0000\n",
      "Epoch 342/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 909687872.0000\n",
      "Epoch 343/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 927023680.0000\n",
      "Epoch 344/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 907213120.0000\n",
      "Epoch 345/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 916673216.0000\n",
      "Epoch 346/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 917616512.0000\n",
      "Epoch 347/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 917037888.0000\n",
      "Epoch 348/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 926373632.0000\n",
      "Epoch 349/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 916780416.0000\n",
      "Epoch 350/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 889629568.0000\n",
      "Epoch 351/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 902101440.0000\n",
      "Epoch 352/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 902054208.0000\n",
      "Epoch 353/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 891707328.0000\n",
      "Epoch 354/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 889834496.0000\n",
      "Epoch 355/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 889163264.0000\n",
      "Epoch 356/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 888539840.0000\n",
      "Epoch 357/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 890941568.0000\n",
      "Epoch 358/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 877194752.0000\n",
      "Epoch 359/500\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "46/46 [==============================] - 0s 1ms/step - loss: 893879360.0000\n",
      "Epoch 360/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 892241856.0000\n",
      "Epoch 361/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 904608320.0000\n",
      "Epoch 362/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 903725184.0000\n",
      "Epoch 363/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 882247808.0000\n",
      "Epoch 364/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 888326656.0000\n",
      "Epoch 365/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 875102592.0000\n",
      "Epoch 366/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 892183424.0000\n",
      "Epoch 367/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 885738240.0000\n",
      "Epoch 368/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 887383360.0000\n",
      "Epoch 369/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 870346816.0000\n",
      "Epoch 370/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 871754112.0000\n",
      "Epoch 371/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 885057152.0000\n",
      "Epoch 372/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 860710080.0000\n",
      "Epoch 373/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 880146240.0000\n",
      "Epoch 374/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 888295232.0000\n",
      "Epoch 375/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 848576832.0000\n",
      "Epoch 376/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 881296768.0000\n",
      "Epoch 377/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 854821440.0000\n",
      "Epoch 378/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 847504128.0000\n",
      "Epoch 379/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 858502272.0000\n",
      "Epoch 380/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 867522816.0000\n",
      "Epoch 381/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 847150208.0000\n",
      "Epoch 382/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 841750336.0000\n",
      "Epoch 383/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 849404672.0000\n",
      "Epoch 384/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 862501440.0000\n",
      "Epoch 385/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 842962816.0000\n",
      "Epoch 386/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 845214016.0000\n",
      "Epoch 387/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 842575424.0000\n",
      "Epoch 388/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 841449088.0000\n",
      "Epoch 389/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 831639424.0000\n",
      "Epoch 390/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 829542720.0000\n",
      "Epoch 391/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 837692032.0000\n",
      "Epoch 392/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 831156800.0000\n",
      "Epoch 393/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 833320064.0000\n",
      "Epoch 394/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 815663104.0000\n",
      "Epoch 395/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 826783744.0000\n",
      "Epoch 396/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 821752576.0000\n",
      "Epoch 397/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 827355392.0000\n",
      "Epoch 398/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 810789376.0000\n",
      "Epoch 399/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 823243584.0000\n",
      "Epoch 400/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 812663104.0000\n",
      "Epoch 401/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 815886400.0000\n",
      "Epoch 402/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 821693952.0000\n",
      "Epoch 403/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 812631232.0000\n",
      "Epoch 404/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 812990592.0000\n",
      "Epoch 405/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 818763264.0000\n",
      "Epoch 406/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 851595520.0000\n",
      "Epoch 407/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 809798080.0000\n",
      "Epoch 408/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 798012864.0000\n",
      "Epoch 409/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 797718464.0000\n",
      "Epoch 410/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 792502400.0000\n",
      "Epoch 411/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 791417216.0000\n",
      "Epoch 412/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 825629248.0000\n",
      "Epoch 413/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 803254912.0000\n",
      "Epoch 414/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 799788800.0000\n",
      "Epoch 415/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 785388288.0000\n",
      "Epoch 416/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 804405376.0000\n",
      "Epoch 417/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 796961024.0000\n",
      "Epoch 418/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 778267904.0000\n",
      "Epoch 419/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 786482176.0000\n",
      "Epoch 420/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 783820992.0000\n",
      "Epoch 421/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 773273600.0000\n",
      "Epoch 422/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 765001472.0000\n",
      "Epoch 423/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 779123456.0000\n",
      "Epoch 424/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 788736192.0000\n",
      "Epoch 425/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 803368128.0000\n",
      "Epoch 426/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 783811648.0000\n",
      "Epoch 427/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 777583296.0000\n",
      "Epoch 428/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 766140608.0000\n",
      "Epoch 429/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 773652992.0000\n",
      "Epoch 430/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 777049280.0000\n",
      "Epoch 431/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 769630976.0000\n",
      "Epoch 432/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 755233152.0000\n",
      "Epoch 433/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 772867200.0000\n",
      "Epoch 434/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 764967104.0000\n",
      "Epoch 435/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 754724096.0000\n",
      "Epoch 436/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 753194368.0000\n",
      "Epoch 437/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 758577664.0000\n",
      "Epoch 438/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 754775872.0000\n",
      "Epoch 439/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 741661312.0000\n",
      "Epoch 440/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 770015744.0000\n",
      "Epoch 441/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 763563456.0000\n",
      "Epoch 442/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 779692224.0000\n",
      "Epoch 443/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 755714752.0000\n",
      "Epoch 444/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 746163648.0000\n",
      "Epoch 445/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 759222592.0000\n",
      "Epoch 446/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 741984256.0000\n",
      "Epoch 447/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 731224960.0000\n",
      "Epoch 448/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 753258240.0000\n",
      "Epoch 449/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 754941120.0000\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Epoch 450/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 744339328.0000\n",
      "Epoch 451/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 731061824.0000\n",
      "Epoch 452/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 751195072.0000\n",
      "Epoch 453/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 745265984.0000\n",
      "Epoch 454/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 735612032.0000\n",
      "Epoch 455/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 737673344.0000\n",
      "Epoch 456/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 756281408.0000\n",
      "Epoch 457/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 721129664.0000\n",
      "Epoch 458/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 723704512.0000\n",
      "Epoch 459/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 725321728.0000\n",
      "Epoch 460/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 745486272.0000\n",
      "Epoch 461/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 725184960.0000\n",
      "Epoch 462/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 755579648.0000\n",
      "Epoch 463/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 740417344.0000\n",
      "Epoch 464/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 723927104.0000\n",
      "Epoch 465/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 723545152.0000\n",
      "Epoch 466/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 710773760.0000\n",
      "Epoch 467/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 712326592.0000\n",
      "Epoch 468/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 740827648.0000\n",
      "Epoch 469/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 694423168.0000\n",
      "Epoch 470/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 714485376.0000\n",
      "Epoch 471/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 727464128.0000\n",
      "Epoch 472/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 703323392.0000\n",
      "Epoch 473/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 719006848.0000\n",
      "Epoch 474/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 705147776.0000\n",
      "Epoch 475/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 714283456.0000\n",
      "Epoch 476/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 698055552.0000\n",
      "Epoch 477/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 692166016.0000\n",
      "Epoch 478/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 692859200.0000\n",
      "Epoch 479/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 702442624.0000\n",
      "Epoch 480/500\n",
      "46/46 [==============================] - 0s 999us/step - loss: 698750336.0000\n",
      "Epoch 481/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 716783936.0000\n",
      "Epoch 482/500\n",
      "46/46 [==============================] - 0s 2ms/step - loss: 700262080.0000\n",
      "Epoch 483/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 696695488.0000\n",
      "Epoch 484/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 682924992.0000\n",
      "Epoch 485/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 702941632.0000\n",
      "Epoch 486/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 680571712.0000\n",
      "Epoch 487/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 684169536.0000\n",
      "Epoch 488/500\n",
      "46/46 [==============================] - 0s 977us/step - loss: 677566592.0000\n",
      "Epoch 489/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 688804032.0000\n",
      "Epoch 490/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 682103104.0000\n",
      "Epoch 491/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 684446976.0000\n",
      "Epoch 492/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 685825536.0000\n",
      "Epoch 493/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 697722432.0000\n",
      "Epoch 494/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 687685120.0000\n",
      "Epoch 495/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 678528896.0000\n",
      "Epoch 496/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 685280448.0000\n",
      "Epoch 497/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 678163904.0000\n",
      "Epoch 498/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 674273216.0000\n",
      "Epoch 499/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 660889344.0000\n",
      "Epoch 500/500\n",
      "46/46 [==============================] - 0s 1ms/step - loss: 664310272.0000\n",
      "46/46 [==============================] - 0s 800us/step\n",
      "Model: \"Basic\"\n",
      "_________________________________________________________________\n",
      " Layer (type)                Output Shape              Param #   \n",
      "=================================================================\n",
      " dense_3 (Dense)             (None, 72)                5256      \n",
      "                                                                 \n",
      " dense_4 (Dense)             (None, 32)                2336      \n",
      "                                                                 \n",
      " dense_5 (Dense)             (None, 1)                 33        \n",
      "                                                                 \n",
      "=================================================================\n",
      "Total params: 7,625\n",
      "Trainable params: 7,625\n",
      "Non-trainable params: 0\n",
      "_________________________________________________________________\n"
     ]
    }
   ],
   "source": [
    "\n",
    "\n",
    "logging.getLogger(\"tensorflow\").setLevel(logging.ERROR)\n",
    "\n",
    "#tf.random.set_seed(1234)\n",
    "model = Sequential(\n",
    "    [     \n",
    "          Dense(units=72, activation='relu', kernel_regularizer=tf.keras.regularizers.l2(0.1)),\n",
    "          Dense(units=32, activation='relu', kernel_regularizer=tf.keras.regularizers.l2(0.1)),\n",
    "          Dense(units=1, activation='linear')\n",
    "     ], name=\"Basic\"\n",
    ")\n",
    "model.compile(\n",
    "   \n",
    "    loss=tf.keras.losses.MeanSquaredError(),\n",
    "    optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3),\n",
    ")\n",
    "\n",
    "\n",
    "model.fit(\n",
    "    X_train, Y_train,\n",
    "    epochs=500\n",
    ")\n",
    "\n",
    "\n",
    "y=model.predict(X_test)\n",
    "\n",
    "model.summary()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "e372831f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[133295.39 ],\n",
       "       [140550.42 ],\n",
       "       [188135.55 ],\n",
       "       ...,\n",
       "       [172603.48 ],\n",
       "       [ 98058.414],\n",
       "       [225884.2  ]], dtype=float32)"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "y\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "437aa4fa",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       1461\n",
       "1       1462\n",
       "2       1463\n",
       "3       1464\n",
       "4       1465\n",
       "        ... \n",
       "1454    2915\n",
       "1455    2916\n",
       "1456    2917\n",
       "1457    2918\n",
       "1458    2919\n",
       "Name: Id, Length: 1459, dtype: int32"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "maskid"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "1da3009d",
   "metadata": {},
   "outputs": [],
   "source": [
    "df_final = pd.DataFrame(y, columns = ['SalePrice'])\n",
    "df_final['SalePrice'] = df_final['SalePrice'].astype(np.float32)\n",
    "\n",
    "df_final = df_final.join(maskid)\n",
    "df_final['SalePrice'] = df_final['SalePrice'].round(decimals = 3)\n",
    "df_final.head()\n",
    "House_Prices_csv = df_final.to_csv('submission.csv', index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "id": "d1fb021f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 1459 entries, 0 to 1458\n",
      "Data columns (total 2 columns):\n",
      " #   Column     Non-Null Count  Dtype  \n",
      "---  ------     --------------  -----  \n",
      " 0   SalePrice  1459 non-null   float32\n",
      " 1   Id         1459 non-null   int32  \n",
      "dtypes: float32(1), int32(1)\n",
      "memory usage: 11.5 KB\n",
      "----------------------------------------\n"
     ]
    }
   ],
   "source": [
    "df_final.info()\n",
    "print('-'*40)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "id": "475b2c70",
   "metadata": {},
   "outputs": [],
   "source": [
    "#pd.set_option('display.max_rows',None,'display.max_columns',None)\n",
    "#test_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "60097d23",
   "metadata": {},
   "outputs": [],
   "source": [
    "#df_final.isnull().sum()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "79e8e804",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}