Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PP-INRE-GNP-1920-GG15
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boas Demeson Pangaribuan
PP-INRE-GNP-1920-GG15
Commits
2257845a
Commit
2257845a
authored
May 29, 2020
by
Genii Silitonga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
130d626d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
326 additions
and
277 deletions
+326
-277
Proyek_Akhir_STBI.ipynb
Proyek_Akhir_STBI.ipynb
+318
-277
README.md
README.md
+8
-0
No files found.
Proyek_Akhir_STBI.ipynb
View file @
2257845a
...
...
@@ -847,7 +847,8 @@
" else:\n",
" res.append((result[1], result[0]))\n",
" if not prints:\n",
" return res"
" for result in similarities[:top_n]:\n",
" return f\"{data['NAME'][result[1]]} \\t {result[0]}\\n\""
]
},
{
...
...
@@ -859,18 +860,18 @@
"name": "stdout",
"output_type": "stream",
"text": [
"
Men Suits: Formal S
uits\n",
"
Men Suits: Formal S
uits\n",
"
man s
uits\n",
"
man s
uits\n",
"\n",
"
Lino Perros Men Red & Blue Accessory Gift Set \t 0.3818812966346741
\n",
"
Royal Enfield Men Black Short Summer Riding Leather Gloves \t 0.19364917278289795
\n",
"\n",
"
Swiss Military Unisex Black Free Flow Travel Organiser \t 0.3689323663711548
\n",
"
Baggit Men Black Solid Two Fold Wallet \t 0.1819017082452774
\n",
"\n",
"
Alvaro Castagnino Pack of 3 White Solid Cotton Handkerchief Gift Set \t 0.3572172522544861
\n",
"
Tossido Men Blue & Black Accessory Gift Set \t 0.13608276844024658
\n",
"\n",
"
Being Human Clothing Men Navy Genuine Leather Belt \t 0.27907276153564453
\n",
"
Lino Perros Men Red & Blue Accessory Gift Set \t 0.13363061845302582
\n",
"\n",
"
FabSeasons Beige Solid Scarf \t 0.27399832010269165
\n",
"
Lino Perros Yellow Patterned Tie \t 0.1330380141735077
\n",
"\n"
]
}
...
...
@@ -972,18 +973,18 @@
"name": "stdout",
"output_type": "stream",
"text": [
"
Men Suits Formal
\n",
"
Men Suits Formal
\n",
"
man suits
\n",
"
man suits
\n",
"\n",
"
Lino Perros Yellow Patterned Tie \t 0.30940839648246765
\n",
"
Royal Enfield Men Black Short Summer Riding Leather Gloves \t 0.4765750467777252
\n",
"\n",
"
Lino Perros Men Red & Blue Accessory Gift Set \t 0.28751063346862793
\n",
"
Baggit Men Black Solid Two Fold Wallet \t 0.44735321402549744
\n",
"\n",
"
Fastrack Men Tan Brown Solid Belt \t 0.2718902826309204
\n",
"
Lino Perros Yellow Patterned Tie \t 0.26982423663139343
\n",
"\n",
"
Swiss Military Unisex Black Free Flow Travel Organiser \t 0.25618454813957214
\n",
"
Lino Perros Men Red & Blue Accessory Gift Set \t 0.25037795305252075
\n",
"\n",
"F
rench Connection Men Navy Blue Solid Leather Belt \t 0.23481214046478271
\n",
"F
astrack Men Tan Brown Solid Belt \t 0.23710601031780243
\n",
"\n"
]
}
...
...
@@ -1322,7 +1323,7 @@
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x2
d674272b
48>]"
"[<matplotlib.lines.Line2D at 0x2
56ce9450
48>]"
]
},
"execution_count": 44,
...
...
@@ -1659,18 +1660,18 @@
"name": "stdout",
"output_type": "stream",
"text": [
"
fort collin men red solid pad jacket
\n",
"
fort collin men red solid pad jacket
\n",
"
man suits
\n",
"
man suits
\n",
"\n",
"
U.S. Polo Assn. Men Brown Genuine Leather Two Fold Wallet \t 5.350090026855469
\n",
"
Baggit Men Black Solid Two Fold Wallet \t 2.119823455810547
\n",
"\n",
"
SCHARF Men Brown Leather Solid Belt \t 4.53424453735351
6\n",
"
Royal Enfield Men Black Short Summer Riding Leather Gloves \t 2.10705137252807
6\n",
"\n",
"
Tommy Hilfiger Men Black Solid Genuine Leather Belt \t 4.481557369232178
\n",
"
Swiss Military Unisex Black Free Flow Travel Organiser \t 1.7023154497146606
\n",
"\n",
"
Adidas Originals Unisex Black NMD Printed Baseball Cap \t 4.477484703063965
\n",
"
Da Milano Men Brown Textured Two Fold Wallet \t 1.462896466255188
\n",
"\n",
"
Alvaro Castagnino Men Coffee Brown Textured Belt \t 4.455972671508789
\n",
"
Lino Perros Red Solid Tie \t 1.4308322668075562
\n",
"\n"
]
}
...
...
@@ -1723,13 +1724,13 @@
"[(0,\n",
" '0.780*\",\" + 0.321*\"men\" + 0.224*\"buy\" + 0.214*\"apparel\" + 0.119*\"shirt\" + 0.115*\"fit\" + 0.112*\"india\" + 0.112*\"online\" + 0.112*\"for\" + 0.112*\"in\"'),\n",
" (1,\n",
" '
-0.541*\"jeans\" + 0.275*\"shirt\" + 0.263*\"t\" + 0.262*\"tshirts\" + -0.255*\"rise\" + -0.246*\"fit\" + -0.217*\"mid\" + -0.204*\"stretchable\" + -0.197*\"look\" + -
0.197*\"clean\"'),\n",
" '
0.541*\"jeans\" + -0.275*\"shirt\" + -0.263*\"t\" + -0.262*\"tshirts\" + 0.255*\"rise\" + 0.246*\"fit\" + 0.217*\"mid\" + 0.204*\"stretchable\" + 0.197*\"look\" +
0.197*\"clean\"'),\n",
" (2,\n",
" '
-0.422*\"trousers\" + 0.342*\"jeans\" + -0.274*\".\" + 0.273*\"t\" + 0.271*\"tshirts\" + -0.240*\"fit\" + 0.202*\"neck\" + -0.201*\"formal\" + -0.191*\"solid\" +
0.180*\"round\"'),\n",
" '
0.422*\"trousers\" + -0.342*\"jeans\" + 0.274*\".\" + -0.273*\"t\" + -0.271*\"tshirts\" + 0.240*\"fit\" + -0.202*\"neck\" + 0.201*\"formal\" + 0.191*\"solid\" + -
0.180*\"round\"'),\n",
" (3,\n",
" '
-0.754*\".\" + -0.317*\"polo\" + -0.248*\"s\" + -0.240*\"u\" + -0.240*\"assn\" + -0.132*\"jeans\" + -0.125*\"t\" + -0.125*\"tshirts\" + 0.099*\"solid\" +
0.097*\"trousers\"'),\n",
" '
0.754*\".\" + 0.317*\"polo\" + 0.248*\"s\" + 0.240*\"u\" + 0.240*\"assn\" + 0.132*\"jeans\" + 0.125*\"t\" + 0.125*\"tshirts\" + -0.099*\"solid\" + -
0.097*\"trousers\"'),\n",
" (4,\n",
" '
0.429*\"shirts\" + 0.346*\"shirt\" + -0.338*\"trousers\" + 0.305*\"&\" + -0.281*\"solid\" + 0.259*\"fit\" + 0.251*\"slim\" + 0.185*\"casual\" + 0.182*\"blue\" +
0.150*\"formal\"')]"
" '
-0.429*\"shirts\" + -0.346*\"shirt\" + 0.338*\"trousers\" + -0.305*\"&\" + 0.281*\"solid\" + -0.259*\"fit\" + -0.251*\"slim\" + -0.185*\"casual\" + -0.182*\"blue\" + -
0.150*\"formal\"')]"
]
},
"execution_count": 55,
...
...
@@ -1750,256 +1751,256 @@
"name": "stdout",
"output_type": "stream",
"text": [
"0 282.295705672574
5
282.29570567257457 True\n",
"1 80.812579470827
79
80.8125794708277 True\n",
"2 61.2025092822
799
61.20250928228014 True\n",
"3 54.82496635290
205
54.82496635290246 True\n",
"4 45.567046504958
2
45.567046504959784 True\n",
"5 38.59821952923
8044
38.59821952924385 True\n",
"6 37.2691314481
43646
37.26913144815381 True\n",
"7 33.99246596229
948
33.992465962326975 True\n",
"8 30.3932957631
65092
30.393295763239777 True\n",
"9 29.24664300126
496
29.246643001359455 True\n",
"10 28.2639875120
25277
28.26398751215802 True\n",
"11 27.14532503
702664
27.14532503722892 True\n",
"12 25.415980716
45504
25.41598071675283 True\n",
"13 24.9813101889
2752
24.98131018927059 True\n",
"14 24.165360255
54687
24.165360256313193 True\n",
"15 22.996149284
34986
22.996149285216802 True\n",
"16 22.882010207
75814
22.88201020877216 True\n",
"17 22.44838823
5571667
22.448388237247304 True\n",
"18 21.818995181
426622
21.818995182649086 True\n",
"19 21.240045011
40754
21.240045012655823 True\n",
"20 21.168987570
64605
6 21.168987572195757 True\n",
"21 21.005236901
67399
6 21.005236903568335 True\n",
"22 20.16207469
6274146
20.162074700408372 True\n",
"23 19.912973188
90671
19.912973191044898 True\n",
"24 19.407942238
696013
19.407942242225236 True\n",
"25 19.02312469
3691763
19.023124699013543 True\n",
"26 18.70026854
6037467
18.700268551646744 True\n",
"27 18.2911349
7448139
18.29113497941287 True\n",
"28 18.015883984
501855
18.015883990507948 True\n",
"29 17.58155199
770854
17.581552004832204 True\n",
"30 17.2954239
5054032
17.295423957233293 True\n",
"31 16.71848273
71753
5 16.71848275255207 True\n",
"32 16.6098196
02230935
16.609819635955624 True\n",
"33 16.309400
090363674
16.309400120331937 True\n",
"34 16.0582668
39219534
16.058266869171515 True\n",
"35 15.9211972
88478133
15.921197312865562 True\n",
"36 15.68860869
331597
15.68860872882099 True\n",
"37 15.653385
295109098
15.65338532296361 True\n",
"38 15.2271632
68297298
15.227163292617222 True\n",
"39 15.0677163
80653842
15.067716433896795 True\n",
"40 15.0586792
68403141
15.058679294840521 True\n",
"41 14.7266097
2057054
7 14.726609780193257 True\n",
"42 14.658026
288294467
14.658026367364325 True\n",
"43 14.3353927
8880494
14.335392865427117 True\n",
"44 14.1924375
28767188
14.19243761219465 True\n",
"45 13.9910633
73266023
13.991063422651143 True\n",
"46 13.8355856
17129746
13.835585710950633 True\n",
"47 13.6248653
2009778
13.624865495900362 True\n",
"48 13.563687
816555877
13.563687894147451 True\n",
"49 13.4605264
21153721
13.460526516149844 True\n",
"50 13.3264014
53571647
13.326401584245959 True\n",
"51 13.1461914
6899115
13.146191590631155 True\n",
"52 13.0510978
17979066
13.051097914633186 True\n",
"53 12.899368
982935457
12.899369115930666 True\n",
"54 12.786273
094003551
12.78627322934749 True\n",
"55 12.603896
283530736
12.603896521149265 True\n",
"56 12.244594
78219181
12.244595016075253 True\n",
"57 12.081890
7377641
27 12.081891139298037 True\n",
"58 11.963153
012825172
11.963153577378659 True\n",
"59 11.8669873
7983579
11.866987626205537 True\n",
"60 11.846454
128079248
11.846454543383365 True\n",
"61 11.632708
232573489
11.632708740365016 True\n",
"62 11.479736
76293262
11.479737381101435 True\n",
"63 11.310523
431410934
11.31052387809046 True\n",
"64 11.245673
669093398
11.245674002000872 True\n",
"65 11.191724
799146208
11.191725592009057 True\n",
"66 11.064180
295091159
11.064180657871876 True\n",
"67 11.013120
35030076
11.013120873574962 True\n",
"68 10.84809
7950650242
10.848098659000257 True\n",
"69 10.6408781
98499426
10.64087901321515 True\n",
"70 10.48102
3956640286
10.481025165464422 True\n",
"71 10.4192502
56408837
10.419250979085225 True\n",
"72 10.39575
35848857
1 10.395755708029727 True\n",
"73 10.290910
825430666
10.290911928292331 True\n",
"74 10.11286
8234883017
10.112869297815083 True\n",
"75 10.09228
261402501
1 10.092283618317 True\n",
"76 9.97474
634403688
8 9.9747482072759 True\n",
"77 9.87467
0678577123
9.87467271023612 True\n",
"78 9.691867
206272638
9.691868983455695 True\n",
"79 9.66657
5422820127
9.666577199908287 True\n",
"80 9.54605
6437289687
9.54606137821152 True\n",
"81 9.36450
734324066
9.364509197321494 True\n",
"82 9.29262
6734073629
9.292629871191895 True\n",
"83 9.13765
2889219025
9.137655692229586 True\n",
"84 9.08630
5330546848
9.086307826132957 True\n",
"85 8.98799
2793030617
8.987997457307765 True\n",
"86 8.96853
3538954633
8.968537825712612 True\n",
"87 8.82198
802768483
8.821990136961672 True\n",
"88 8.79600
3139844219
8.796006916396774 True\n",
"89 8.7892
8731962543
8.78929631636091 True\n",
"90 8.6425
28452336498
8.642533211490786 True\n",
"91 8.63553
3406222772
8.635538142898882 True\n",
"92 8.5816
57825440374
8.581667073055607 True\n",
"93 8.50076
7414797899
8.500774258627553 True\n",
"94 8.4392
13481791196
8.439219025715683 True\n",
"95 8.41795
450262968
7 8.417963233975339 True\n",
"96 8.36615
0944565332
8.36616379640356 True\n",
"97 8.3090
2725914819
8.309044591957754 True\n",
"98 8.234769
901609708
8.234777067900914 True\n",
"99 8.21393
4700224106
8.213940050434301 True\n",
"100 8.188820
47362826
8.188828352008155 True\n",
"101 8.08676
6617834444
8.086782081203387 True\n",
"102 8.05650
1992951606
8.056512862531214 True\n",
"103 7.994
904953368551
7.994910349902213 True\n",
"104 7.86836
1262390078
7.868376794373796 True\n",
"105 7.8364
14910556654
7.836431569473695 True\n",
"106 7.75991
685186361
5 7.759923877695468 True\n",
"107 7.7330
12717870695
7.733030155785209 True\n",
"108 7.68590
6971899503
7.685918284682891 True\n",
"109 7.6291
37778803163
7.629154897298439 True\n",
"110 7.5511
24777035608
7.551138943943203 True\n",
"111 7.51952
44714520
5 7.519541907576092 True\n",
"112 7.4746
4883393366
7.474670931289876 True\n",
"113 7.4305
62575660156
7.430578314816374 True\n",
"114 7.4208
63915594336
7.420893232568204 True\n",
"115 7.323
596819308681
7.323629977455387 True\n",
"116 7.29993
7858729446
7.299963520256556 True\n",
"117 7.24592
3788631047
7.245941553580699 True\n",
"118 7.1799
3073068489
5 7.179975894897942 True\n",
"119 7.1674
3838901172
7.1674679131011105 True\n",
"120 7.1455
65706927993
7.1455989201764005 True\n",
"121 7.01036
8806344
33 7.010412620837399 True\n",
"122 6.99538
6024954567
6.995409963521163 True\n",
"123 6.9773
28845675479
6.977377264978789 True\n",
"124 6.936
881610097396
6.936930212840086 True\n",
"125 6.89328
673733997
6.893329278977496 True\n",
"126 6.817
939354483354 6.81796767643536 Tru
e\n",
"127 6.79
5993194345026
6.796037309695072 True\n",
"128 6.7617
70032418167
6.761807475787397 True\n",
"129 6.7368
0467776714
6.736865073662728 True\n",
"130 6.658
5197447038755
6.658548664699633 True\n",
"131 6.6348
23192577358
6.634864128904676 True\n",
"132 6.6221
06937168293
6.622165487790968 True\n",
"133 6.55562
9792548903
6.5556849471717635 True\n",
"134 6.469
187643453936 6.46926267659238 Fals
e\n",
"135 6.4499
64704221819 6.450021258899795 Tru
e\n",
"136 6.3848
5502042841
9 6.384946629268907 False\n",
"137 6.3577
87760327908 6.357839661801575 Tru
e\n",
"138 6.2879
32629109054
6.288070534072515 False\n",
"139 6.270
833116963148 6.270892776188856 Tru
e\n",
"140 6.226
48714198718
6.226636984486413 False\n",
"141 6.2161
62261488712
6.216231810200055 False\n",
"142 6.1872
1000773872
1 6.187338196525775 False\n",
"143 6.1853
54089488428
6.1854258850753965 False\n",
"144 6.136
678408091446
6.136764407409564 False\n",
"145 6.127
296152114972
6.127437734129397 False\n",
"146 6.052
6602594631544 6.05279358443227 Fals
e\n",
"147 6.0394
04245099761
6.039548117002396 False\n",
"148 6.013
76025485382
2 6.013831133557258 False\n",
"149 5.97273
9611264569
5.972849844024313 False\n",
"150 5.9545
90432389776
5.954698413616891 False\n",
"151 5.9364
408564344
4 5.9365735078135256 False\n",
"152 5.895
55777452276
5 5.895778124931551 False\n",
"153 5.87
2938233743961
5.8731909865733085 False\n",
"154 5.864
127736940418
5.864232210225334 False\n",
"155 5.843
940073986173
5.844049679072953 False\n",
"156 5.809
56953038909
5.809780820076843 False\n",
"157 5.742
411999974989
5.7425805794035565 False\n",
"158 5.727
840106342784
5.728003297472801 False\n",
"159 5.70
4138799486538
5.704229513376295 False\n",
"160 5.6713
26562996116
5.671594306515941 False\n",
"161 5.6612
29319791581
5.661401888244609 False\n",
"162 5.6312
32809288845
5 5.631469865505804 False\n",
"163 5.623
501378848894
5.623792961078581 False\n",
"164 5.594
53586177812
1 5.594737412450218 False\n",
"165 5.567
319752743344
5.5675334261408285 False\n",
"166 5.5613
57944207198
5.561556437477851 False\n",
"167 5.5348
27123698119
5.535040085666817 False\n",
"168 5.4759
44008711171
5.476286286775192 False\n",
"169 5.447
181930906447
5.447534093630126 False\n",
"170 5.393
653520645915
5.393844339164585 False\n",
"171 5.373
7008877034
89 5.373989813339329 False\n",
"172 5.346
287186702591
5.346733706096892 False\n",
"173 5.302
403918974314
5.302961970886246 False\n",
"174 5.281
699650312229
5 5.282220163011061 False\n",
"175 5.241
11025917357
5.241595833100238 False\n",
"176 5.230
961513009
5.231267023137635 False\n",
"177 5.183
291888027453
5.183916390702387 False\n",
"178 5.166
5825947188155
5.167166958515638 False\n",
"179 5.1546
695166161
22 5.1551360959126775 False\n",
"180 5.138
64577472713
5.13918870469448 False\n",
"181 5.1068
2389412179
5.107752319927996 False\n",
"182 5.09
49201338583485
5.095543723552137 False\n",
"183 5.084
528543854696
5.084799390822841 False\n",
"184 5.031
7973208337285
5.032430170526123 False\n",
"185 5.007
215494867228
5.007867368543465 False\n",
"186 4.995
309743889807
4.995957911562522 False\n",
"187 4.959
332675442447
4.959835242745164 False\n",
"188 4.913
029814256754
4.913924957034896 False\n",
"189 4.892
585635944614
4.893604705378042 False\n",
"190 4.879
42427691294
4.88011350912293 False\n",
"191 4.869
225989664856
4.869763713624773 False\n",
"192 4.851
602766339177
4.852059636952089 False\n",
"193 4.818
271130854635
4.819338237603759 False\n",
"194 4.81
4107272395931
4.815437721168763 False\n",
"195 4.777
16996884317
4 4.778055691333868 False\n",
"196 4.73
68200933695315
4.7377481581488885 False\n",
"197 4.714
5680256576545
4.715121691594005 False\n",
"198 4.696
462455972060
5 4.697598538355146 False\n",
"199 4.64
77842851530
62 4.648902453761702 False\n",
"200 4.61
6205217590328
4.618461117930671 False\n",
"201 4.60
3546342046109
4.60454143897401 False\n",
"202 4.5784
04095564949
4.58018135141145 False\n",
"203 4.54
6653228618853
4.547927218193237 False\n",
"204 4.496
42380629184
4.498256762688885 False\n",
"205 4.48
42744967122865
4.48508866138501 False\n",
"206 4.456
866633535383
4.4587117010898245 False\n",
"207 4.44
1378341345862
4.443110107204811 False\n",
"208 4.38
1956171910071
4.385869421654407 False\n",
"209 4.367
757357717589
4.369089343028882 False\n",
"210 4.33
92449635811845
4.340542813553938 False\n",
"211 4.29
6042946430803
4.297981414076213 False\n",
"212 4.29
15688976359565
4.2940109822279595 False\n",
"213 4.281
601078302176
4.283240227670502 False\n",
"214 4.27
4873751959374
4.276701492270051 False\n",
"215 4.25
4451707750888
4.2576081807984725 False\n",
"216 4.23
2739592238667
4.235215861986921 False\n",
"217 4.22
7414726772738
4.229951380920869 False\n",
"218 4.21
3820734933847
4.217342404059044 False\n",
"219 4.212
0032048894265
4.214087138293985 False\n",
"220 4.20
22250973163064
4.203888873116322 False\n",
"221 4.18
6936733932766
4.1900256026039395 False\n",
"222 4.176
031144085105
4.178338501226308 False\n",
"223 4.1
519061825887285
4.153214751140703 False\n",
"224 4.13
37325533036084
4.13707545108394 False\n",
"225 4.13
2643342231077
4.13485133185874 False\n",
"226 4.12
5992039381686
5 4.128018816389408 False\n",
"227 4.11
3506102935065
4.115909017995836 False\n",
"228 4.09
9098235930706
4.1014889925978535 False\n",
"229 4.08
9196996158331
4.093103694196744 False\n",
"230 4.0
67704842364876
4.071473280002942 False\n",
"231 4.049
264891253607
4.0525298074424425 False\n",
"232 4.03
6409873661451
4.038930156020619 False\n",
"233 4.01
6661178837895
4.023541213720316 False\n",
"234 4.00
5879913800353
4.010089303241536 False\n",
"235 3.9
795821857197233
3.982581464130896 False\n",
"236 3.97
081223015206
3 3.979808995018844 False\n",
"237 3.9
490826978552525
3.957390684000785 False\n",
"238 3.90
36729427789423
3.908248032864678 False\n",
"239 3.89
82113434568286
3.9019974355018743 False\n",
"240 3.8
79352215416703
3.884067664543178 False\n",
"241 3.86
1092855126919
2 3.8697909783397386 False\n",
"242 3.83
63273260355673
3.8386062395652254 False\n",
"243 3.83
15690929245996
3.837673964215226 False\n",
"244 3.81
5415204819316
3.822185661055782 False\n",
"245 3.80
1078950366636
3.807433943896055 False\n",
"246 3.7911
71624218988
3.7969130819332775 False\n",
"247 3.76
4743818100182
4 3.7711552432125575 False\n",
"248 3.75
456370319337
4 3.759990416757248 False\n",
"249 3.73
42344824303906
3.7391928266703394 False\n"
"0 282.295705672574
23
282.29570567257457 True\n",
"1 80.812579470827
67
80.8125794708277 True\n",
"2 61.2025092822
8007
61.20250928228014 True\n",
"3 54.82496635290
196
54.82496635290246 True\n",
"4 45.567046504958
61
45.567046504959784 True\n",
"5 38.59821952923
482
38.59821952924385 True\n",
"6 37.2691314481
3921
37.26913144815381 True\n",
"7 33.99246596229
2876
33.992465962326975 True\n",
"8 30.3932957631
9288
30.393295763239777 True\n",
"9 29.24664300126
23
29.246643001359455 True\n",
"10 28.2639875120
07613
28.26398751215802 True\n",
"11 27.14532503
689811
27.14532503722892 True\n",
"12 25.415980716
099885
25.41598071675283 True\n",
"13 24.9813101889
91227
24.98131018927059 True\n",
"14 24.165360255
69852
24.165360256313193 True\n",
"15 22.996149284
481763
22.996149285216802 True\n",
"16 22.882010207
899878
22.88201020877216 True\n",
"17 22.44838823
607819
22.448388237247304 True\n",
"18 21.818995181
0088
21.818995182649086 True\n",
"19 21.240045011
348002
21.240045012655823 True\n",
"20 21.168987570
70457
6 21.168987572195757 True\n",
"21 21.005236901
75621
6 21.005236903568335 True\n",
"22 20.16207469
7952303
20.162074700408372 True\n",
"23 19.912973188
388158
19.912973191044898 True\n",
"24 19.407942238
45312
19.407942242225236 True\n",
"25 19.02312469
5203816
19.023124699013543 True\n",
"26 18.70026854
3611063
18.700268551646744 True\n",
"27 18.2911349
69329004
18.29113497941287 True\n",
"28 18.015883984
368692
18.015883990507948 True\n",
"29 17.58155199
8527598
17.581552004832204 True\n",
"30 17.2954239
475833
17.295423957233293 True\n",
"31 16.71848273
954195
5 16.71848275255207 True\n",
"32 16.6098196
19098037
16.609819635955624 True\n",
"33 16.309400
104773395
16.309400120331937 True\n",
"34 16.0582668
53376118
16.058266869171515 True\n",
"35 15.9211972
92961821
15.921197312865562 True\n",
"36 15.68860869
8896468
15.68860872882099 True\n",
"37 15.653385
303496092
15.65338532296361 True\n",
"38 15.2271632
58671846
15.227163292617222 True\n",
"39 15.0677163
72558303
15.067716433896795 True\n",
"40 15.0586792
51287106
15.058679294840521 True\n",
"41 14.7266097
3652342
7 14.726609780193257 True\n",
"42 14.658026
330534808
14.658026367364325 True\n",
"43 14.3353927
77537875
14.335392865427117 True\n",
"44 14.1924375
45859887
14.19243761219465 True\n",
"45 13.9910633
10361032
13.991063422651143 True\n",
"46 13.8355856
3259328
13.835585710950633 True\n",
"47 13.6248653
87961071
13.624865495900362 True\n",
"48 13.563687
752011024
13.563687894147451 True\n",
"49 13.4605264
40932282
13.460526516149844 True\n",
"50 13.3264014
87117039
13.326401584245959 True\n",
"51 13.1461914
4473399
13.146191590631155 True\n",
"52 13.0510978
55165194
13.051097914633186 True\n",
"53 12.899368
765789468
12.899369115930666 True\n",
"54 12.786273
128878118
12.78627322934749 True\n",
"55 12.603896
159471114
12.603896521149265 True\n",
"56 12.244594
83854504
12.244595016075253 True\n",
"57 12.081890
9359593
27 12.081891139298037 True\n",
"58 11.963153
181957699
11.963153577378659 True\n",
"59 11.8669873
66543476
11.866987626205537 True\n",
"60 11.846454
254251205
11.846454543383365 True\n",
"61 11.632708
311651522
11.632708740365016 True\n",
"62 11.479736
946355013
11.479737381101435 True\n",
"63 11.310523
346901332
11.31052387809046 True\n",
"64 11.245673
502803884
11.245674002000872 True\n",
"65 11.191724
972430812
11.191725592009057 True\n",
"66 11.064180
31206743
11.064180657871876 True\n",
"67 11.013120
501498017
11.013120873574962 True\n",
"68 10.84809
8097271997
10.848098659000257 True\n",
"69 10.6408781
20553019
10.64087901321515 True\n",
"70 10.48102
4113889113
10.481025165464422 True\n",
"71 10.4192502
4930544
10.419250979085225 True\n",
"72 10.39575
42118051
1 10.395755708029727 True\n",
"73 10.290910
41568209
10.290911928292331 True\n",
"74 10.11286
7809320235
10.112869297815083 True\n",
"75 10.09228
134370396
1 10.092283618317 True\n",
"76 9.97474
747534469
8 9.9747482072759 True\n",
"77 9.87467
145378299
9.87467271023612 True\n",
"78 9.691867
47462841
9.691868983455695 True\n",
"79 9.66657
482189091
9.666577199908287 True\n",
"80 9.54605
9172168109
9.54606137821152 True\n",
"81 9.36450
680643162
9.364509197321494 True\n",
"82 9.29262
8642832971
9.292629871191895 True\n",
"83 9.13765
341015983
9.137655692229586 True\n",
"84 9.08630
64234283
9.086307826132957 True\n",
"85 8.98799
4846211759
8.987997457307765 True\n",
"86 8.96853
4574665208
8.968537825712612 True\n",
"87 8.82198
3249255675
8.821990136961672 True\n",
"88 8.79600
2784577556
8.796006916396774 True\n",
"89 8.7892
93855760258
8.78929631636091 True\n",
"90 8.6425
09581189325
8.642533211490786 True\n",
"91 8.63553
2886542821
8.635538142898882 True\n",
"92 8.5816
62333622281
8.581667073055607 True\n",
"93 8.50076
9511135836
8.500774258627553 True\n",
"94 8.4392
0846720157
8.439219025715683 True\n",
"95 8.41795
85239819
7 8.417963233975339 True\n",
"96 8.36615
7089987354
8.36616379640356 True\n",
"97 8.3090
37343499016
8.309044591957754 True\n",
"98 8.234769
419656203
8.234777067900914 True\n",
"99 8.21393
0635756908
8.213940050434301 True\n",
"100 8.188820
553641209
8.188828352008155 True\n",
"101 8.08676
8206663423
8.086782081203387 True\n",
"102 8.05650
3601722161
8.056512862531214 True\n",
"103 7.994
898308345787
7.994910349902213 True\n",
"104 7.86836
5085763679
7.868376794373796 True\n",
"105 7.8364
2278985161
7.836431569473695 True\n",
"106 7.75991
2347141634
5 7.759923877695468 True\n",
"107 7.7330
05702420836
7.733030155785209 True\n",
"108 7.68590
4588971587
7.685918284682891 True\n",
"109 7.6291
44043626104
7.629154897298439 True\n",
"110 7.5511
06655067341
7.551138943943203 True\n",
"111 7.51952
591581548
5 7.519541907576092 True\n",
"112 7.4746
55935961377
7.474670931289876 True\n",
"113 7.4305
56921032008
7.430578314816374 True\n",
"114 7.4208
72899841925
7.420893232568204 True\n",
"115 7.323
606843370866
7.323629977455387 True\n",
"116 7.29993
5352793829
7.299963520256556 True\n",
"117 7.24592
0605434483
7.245941553580699 True\n",
"118 7.1799
60112008437
5 7.179975894897942 True\n",
"119 7.1674
531347215416
7.1674679131011105 True\n",
"120 7.1455
44948396368
7.1455989201764005 True\n",
"121 7.01036
70981725
33 7.010412620837399 True\n",
"122 6.99538
2073419483
6.995409963521163 True\n",
"123 6.9773
32592982995
6.977377264978789 True\n",
"124 6.936
902630887171
6.936930212840086 True\n",
"125 6.89328
8310704246
6.893329278977496 True\n",
"126 6.817
889335651047 6.81796767643536 Fals
e\n",
"127 6.79
6001925946704
6.796037309695072 True\n",
"128 6.7617
67955011231
6.761807475787397 True\n",
"129 6.7368
19353601687
6.736865073662728 True\n",
"130 6.658
488662894567
6.658548664699633 True\n",
"131 6.6348
03689885012
6.634864128904676 True\n",
"132 6.6221
360687019475
6.622165487790968 True\n",
"133 6.55562
3950532734
6.5556849471717635 True\n",
"134 6.469
206992381582 6.46926267659238 Tru
e\n",
"135 6.4499
28692209615 6.450021258899795 Fals
e\n",
"136 6.3848
334111507
9 6.384946629268907 False\n",
"137 6.3577
4361745446 6.357839661801575 Fals
e\n",
"138 6.2879
82395682518
6.288070534072515 False\n",
"139 6.270
768244677501 6.270892776188856 Fals
e\n",
"140 6.226
50096165163
6.226636984486413 False\n",
"141 6.2161
51975473096
6.216231810200055 False\n",
"142 6.1872
5958446344
1 6.187338196525775 False\n",
"143 6.1853
38045167987
6.1854258850753965 False\n",
"144 6.136
567673664515
6.136764407409564 False\n",
"145 6.127
315766644174
6.127437734129397 False\n",
"146 6.052
73666512158 6.05279358443227 Tru
e\n",
"147 6.0394
10403770248
6.039548117002396 False\n",
"148 6.013
69103570653
2 6.013831133557258 False\n",
"149 5.97273
4009761526
5.972849844024313 False\n",
"150 5.9545
22317302211
5.954698413616891 False\n",
"151 5.9364
0689685318
4 5.9365735078135256 False\n",
"152 5.895
60790780849
5 5.895778124931551 False\n",
"153 5.87
3070381206518
5.8731909865733085 False\n",
"154 5.864
0623983250775
5.864232210225334 False\n",
"155 5.843
856448293965
5.844049679072953 False\n",
"156 5.809
7013795852295
5.809780820076843 False\n",
"157 5.742
296830110277
5.7425805794035565 False\n",
"158 5.727
787717181513
5.728003297472801 False\n",
"159 5.70
3990992274023
5.704229513376295 False\n",
"160 5.6713
62420190118
5.671594306515941 False\n",
"161 5.6612
55716214835
5.661401888244609 False\n",
"162 5.6312
52761952624
5 5.631469865505804 False\n",
"163 5.623
422380613316
5.623792961078581 False\n",
"164 5.594
45372799729
1 5.594737412450218 False\n",
"165 5.567
116546644625
5.5675334261408285 False\n",
"166 5.5613
457444883
5.561556437477851 False\n",
"167 5.5348
97720152284
5.535040085666817 False\n",
"168 5.4759
66874201733
5.476286286775192 False\n",
"169 5.447
235689226016
5.447534093630126 False\n",
"170 5.393
519359109608
5.393844339164585 False\n",
"171 5.373
6755323771
89 5.373989813339329 False\n",
"172 5.346
478555969167
5.346733706096892 False\n",
"173 5.302
651525953609
5.302961970886246 False\n",
"174 5.281
920550157396
5 5.282220163011061 False\n",
"175 5.241
27655369534
5.241595833100238 False\n",
"176 5.230
803288017326
5.231267023137635 False\n",
"177 5.183
632367296181
5.183916390702387 False\n",
"178 5.166
648510423473
5.167166958515638 False\n",
"179 5.1546
465036902
22 5.1551360959126775 False\n",
"180 5.138
439028899184
5.13918870469448 False\n",
"181 5.1068
81158102181
5.107752319927996 False\n",
"182 5.09
5150989102234
5.095543723552137 False\n",
"183 5.084
3349975042
5.084799390822841 False\n",
"184 5.031
914889931756
5.032430170526123 False\n",
"185 5.007
488784158766
5.007867368543465 False\n",
"186 4.995
114941240579
4.995957911562522 False\n",
"187 4.959
417125654179
4.959835242745164 False\n",
"188 4.913
30167323612
4.913924957034896 False\n",
"189 4.892
816966829473
4.893604705378042 False\n",
"190 4.879
048473115278
4.88011350912293 False\n",
"191 4.869
158078724695
4.869763713624773 False\n",
"192 4.851
2333191850825
4.852059636952089 False\n",
"193 4.818
542759580067
4.819338237603759 False\n",
"194 4.81
500775271639
4.815437721168763 False\n",
"195 4.777
46703807983
4 4.778055691333868 False\n",
"196 4.73
7211711619157
4.7377481581488885 False\n",
"197 4.714
443031239303
4.715121691594005 False\n",
"198 4.696
10871108633
5 4.697598538355146 False\n",
"199 4.64
80670198492
62 4.648902453761702 False\n",
"200 4.61
7134059910867
4.618461117930671 False\n",
"201 4.60
2613337976195
4.60454143897401 False\n",
"202 4.5784
11884399181
4.58018135141145 False\n",
"203 4.54
5841939066675
4.547927218193237 False\n",
"204 4.496
816491472595
4.498256762688885 False\n",
"205 4.48
3375051577317
4.48508866138501 False\n",
"206 4.456
410997143484
4.4587117010898245 False\n",
"207 4.44
0156409822983
4.443110107204811 False\n",
"208 4.38
2812007539389
4.385869421654407 False\n",
"209 4.367
372840888642
4.369089343028882 False\n",
"210 4.33
8778043423859
4.340542813553938 False\n",
"211 4.29
5480987058756
4.297981414076213 False\n",
"212 4.29
2417574019701
4.2940109822279595 False\n",
"213 4.281
715126469481
4.283240227670502 False\n",
"214 4.27
50725278843476
4.276701492270051 False\n",
"215 4.25
5768326282822
4.2576081807984725 False\n",
"216 4.23
305570376171
4.235215861986921 False\n",
"217 4.22
8550107154597
4.229951380920869 False\n",
"218 4.21
4917706313943
4.217342404059044 False\n",
"219 4.212
277311260583
4.214087138293985 False\n",
"220 4.20
0125181708883
4.203888873116322 False\n",
"221 4.18
84782071166295
4.1900256026039395 False\n",
"222 4.176
247511976992
4.178338501226308 False\n",
"223 4.1
49564217806229
4.153214751140703 False\n",
"224 4.13
48085841618385
4.13707545108394 False\n",
"225 4.13
1645840135839
4.13485133185874 False\n",
"226 4.12
395833569254
5 4.128018816389408 False\n",
"227 4.11
1705145415796
4.115909017995836 False\n",
"228 4.09
7767117027009
4.1014889925978535 False\n",
"229 4.08
8137241892387
4.093103694196744 False\n",
"230 4.0
70317477000433
4.071473280002942 False\n",
"231 4.049
365418515412
4.0525298074424425 False\n",
"232 4.03
2726885360853
4.038930156020619 False\n",
"233 4.01
721835675212
4.023541213720316 False\n",
"234 4.00
7080399681326
4.010089303241536 False\n",
"235 3.9
8054486428575
3.982581464130896 False\n",
"236 3.97
4866102662607
3 3.979808995018844 False\n",
"237 3.9
543161557617252
3.957390684000785 False\n",
"238 3.90
5344733644587
3.908248032864678 False\n",
"239 3.89
9358397680305
3.9019974355018743 False\n",
"240 3.8
810992248222815
3.884067664543178 False\n",
"241 3.86
561623915096
2 3.8697909783397386 False\n",
"242 3.83
54587052455447
3.8386062395652254 False\n",
"243 3.83
24196626110987
3.837673964215226 False\n",
"244 3.81
79250035042243
3.822185661055782 False\n",
"245 3.80
2594167096563
3.807433943896055 False\n",
"246 3.7911
28232001944
3.7969130819332775 False\n",
"247 3.76
6707172005666
4 3.7711552432125575 False\n",
"248 3.75
748539328110
4 3.759990416757248 False\n",
"249 3.73
3598431803078
3.7391928266703394 False\n"
]
}
],
...
...
@@ -2007,6 +2008,46 @@
"for i in range(rank_svd):\n",
" print(i, model_lsi.projection.s[i], s_trunced[i], np.allclose(model_lsi.projection.s[i], s_trunced[i]))"
]
},
{
"cell_type": "code",
"execution_count": 57,
"metadata": {},
"outputs": [],
"source": [
"import anvil.server"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Connecting to wss://anvil.works/uplink\n",
"Anvil websocket open\n",
"Authenticated OK\n"
]
}
],
"source": [
"anvil.server.connect('KFA7RH76TGDGT2MTT75HY3AJ-SKCOH5Z2H6TTPDM6')"
]
},
{
"cell_type": "code",
"execution_count": 59,
"metadata": {},
"outputs": [],
"source": [
"@anvil.server.callable\n",
"def tfidfProductSearch(str):\n",
" data = search(index_tfidf, str) \n",
" return data"
]
}
],
"metadata": {
...
...
README.md
View file @
2257845a
Proyek STBI GG15 - Product Search Using TFIDF
UI untuk Program Python dikembangkan dalam bentuk website menggunakan Anvil
Link website: https://ppstbi15.anvil.app/
Step untuk menggunakan program python di website:
1.
Jalankan Program Python di Jupyter Notebook dengan requirement penginstalan anvil uplink
"pip install anvil-uplink"
2.
Akses website menggunakan link di atas
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment