Created
March 3, 2018 06:56
-
-
Save zhusimaji/c8ac2d588ef0c0d3e0df3f259d59533f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# movielens数据集\n", | |
"使用的数据集大小是10万数据量的微小数据集,其官网也给出了全部数据集,且数据集一直在不断更新\n", | |
"由于代码写的搓,没有任何优化,只用了文件前2000行数据作为基础数据" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 54, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"from collections import defaultdict\n", | |
"\n", | |
"from tqdm import tqdm" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 获取评分邻接矩阵" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 55, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"process over\n" | |
] | |
} | |
], | |
"source": [ | |
"readAdjacentMatrix=defaultdict(dict)\n", | |
"item_user_matrix=defaultdict(dict)\n", | |
"with open('/Users/leiyang/Desktop/ml-latest-small/test.csv','r') as f:\n", | |
" fisrtline=f.readline()\n", | |
" linedata=f.readline().strip()\n", | |
" while linedata:\n", | |
" rawdata=linedata.split(',')\n", | |
" readAdjacentMatrix[rawdata[0]][rawdata[1]]=1 \n", | |
" item_user_matrix[rawdata[1]][rawdata[0]]=1\n", | |
" linedata=f.readline().strip()\n", | |
"print 'process over'" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 计算用户的度" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 56, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"DegreeUser=dict()\n", | |
"for user in readAdjacentMatrix:\n", | |
" DegreeUser[user]=len(readAdjacentMatrix[user])" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 57, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"{'11': 38, '10': 46, '13': 53, '12': 61, '15': 1037, '14': 20, '1': 20, '3': 51, '2': 76, '5': 100, '4': 204, '7': 88, '6': 44, '9': 45, '8': 116}\n" | |
] | |
} | |
], | |
"source": [ | |
"print DegreeUser" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 计算电影的度" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 58, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"DegreeItem=dict()\n", | |
"for item in item_user_matrix:\n", | |
" DegreeItem[item]=len(item_user_matrix[item])" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 59, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"{'2581': 1, '4446': 1, '4027': 1, '4025': 2, '4022': 2, '4023': 1, '4020': 1, '165': 2, '4029': 1, '198': 2, '3556': 1, '3555': 1, '5989': 3, '4149': 1, '3552': 1, '3250': 1, '3251': 1, '3253': 1, '3255': 3, '3256': 1, '1945': 1, '344': 3, '345': 2, '3854': 1, '2078': 1, '3852': 1, '5650': 2, '342': 1, '3998': 1, '3996': 2, '3994': 1, '3993': 1, '349': 3, '3990': 1, '2858': 3, '2912': 1, '4308': 2, '2915': 1, '2916': 2, '2006': 1, '2918': 5, '1792': 1, '43871': 1, '32': 2, '2857': 1, '1266': 1, '54286': 1, '44191': 1, '5464': 3, '6157': 1, '1499': 1, '1264': 1, '2991': 1, '1994': 2, '5308': 1, '5266': 2, '79132': 1, '1704': 4, '1625': 2, '2318': 2, '4571': 1, '1061': 1, '1060': 1, '4738': 1, '2313': 1, '5269': 1, '2311': 1, '84236': 1, '2427': 2, '2096': 1, '6303': 1, '296': 7, '1259': 5, '292': 2, '293': 2, '3773': 1, '1129': 2, '593': 5, '592': 5, '595': 3, '594': 4, '597': 2, '596': 2, '6598': 1, '196': 1, '1125': 2, '1089': 3, '1127': 3, '4654': 1, '272': 2, '273': 1, '3146': 2, '277': 2, '3148': 2, '3624': 2, '2826': 1, '3671': 2, '4658': 1, '2822': 1, '3386': 1, '2542': 1, '2541': 1, '58559': 2, '5410': 1, '3967': 1, '3006': 1, '2987': 2, '2986': 1, '2985': 1, '3020': 1, '524': 3, '2268': 3, '527': 6, '520': 2, '2387': 1, '2568': 1, '1373': 1, '2263': 1, '1016': 1, '1407': 1, '1011': 1, '1405': 3, '799': 1, '1234': 1, '1235': 3, '2769': 1, '5000': 1, '1230': 3, '1231': 2, '1233': 1, '2763': 1, '442': 2, '2761': 3, '440': 3, '1544': 3, '1333': 1, '1332': 1, '4306': 3, '5673': 1, '588': 6, '5679': 2, '101': 1, '107': 1, '104': 3, '4148': 1, '2046': 1, '903': 4, '39': 3, '2042': 1, '4816': 1, '904': 1, '2041': 1, '26614': 1, '6502': 1, '31': 2, '909': 1, '36': 2, '1845': 1, '34': 3, '6378': 2, '1240': 4, '1243': 2, '1242': 1, '1244': 1, '1247': 2, '1246': 1, '1249': 1, '648': 1, '434': 2, '435': 2, '2161': 2, '2160': 1, '1201': 2, '6377': 5, '8368': 1, '2616': 1, '2993': 1, '3809': 1, '3267': 1, '335': 1, '3801': 2, '3800': 1, '333': 1, '42007': 1, '3298': 2, '1120': 1, '8464': 1, '1909': 2, '1904': 1, '4085': 1, '851': 1, '4744': 1, '3512': 1, '3510': 2, '858': 4, '748': 1, '541': 3, '91529': 1, '6203': 1, '3892': 1, '3893': 1, '2686': 1, '1022': 2, '3896': 1, '3897': 2, '2683': 4, '4914': 1, '3635': 1, '3999': 1, '1211': 1, '3421': 1, '48783': 1, '3633': 1, '4776': 1, '1020': 1, '3864': 1, '104841': 1, '94': 1, '32587': 1, '150': 3, '5952': 3, '4079': 1, '5954': 1, '1997': 2, '5956': 1, '5959': 1, '5222': 1, '5400': 1, '3785': 1, '5225': 1, '3208': 1, '33679': 1, '41566': 1, '5792': 1, '5791': 1, '2145': 1, '2574': 1, '5816': 2, '3969': 1, '2861': 1, '2366': 1, '745': 2, '3638': 1, '2867': 1, '555': 1, '3016': 1, '3634': 1, '556': 1, '551': 3, '550': 1, '552': 1, '3060': 2, '2949': 1, '2947': 1, '235': 2, '237': 1, '41569': 1, '231': 2, '232': 1, '233': 1, '1199': 1, '1198': 5, '93363': 1, '2340': 1, '1059': 2, '1193': 2, '562': 1, '1194': 1, '1197': 7, '1196': 6, '1': 4, '1694': 1, '1690': 2, '1754': 2, '1753': 1, '1752': 1, '2403': 1, '1278': 2, '1176': 1, '144': 1, '145': 1, '1173': 1, '1172': 1, '1171': 1, '141': 3, '1270': 4, '1271': 1, '610': 3, '616': 2, '1275': 1, '1276': 2, '149': 1, '2360': 1, '1484': 1, '1889': 1, '2678': 1, '1887': 1, '1884': 1, '1883': 1, '1882': 1, '914': 2, '1285': 2, '97938': 1, '1287': 3, '2125': 1, '2124': 2, '1283': 1, '1282': 1, '2080': 1, '2081': 2, '2086': 1, '1288': 3, '2085': 1, '2539': 3, '1476': 1, '2060': 1, '45': 1, '1573': 1, '8644': 1, '1479': 1, '6037': 1, '680': 1, '534': 2, '6155': 1, '1304': 1, '2713': 1, '5171': 1, '1307': 4, '2716': 5, '2717': 1, '1302': 3, '1303': 1, '2396': 2, '2718': 1, '2657': 2, '4262': 2, '916': 1, '2348': 1, '549': 1, '494': 1, '4225': 1, '4226': 2, '497': 2, '3418': 1, '5075': 1, '25': 1, '26': 1, '1831': 1, '3799': 1, '21': 2, '35836': 1, '4383': 1, '3794': 2, '4381': 1, '4380': 1, '3791': 1, '4386': 1, '3793': 2, '5620': 1, '1371': 3, '1370': 1, '405': 1, '1372': 2, '1375': 1, '1374': 3, '1377': 2, '1376': 2, '1378': 1, '931': 1, '2011': 1, '2010': 1, '2409': 1, '34162': 2, '788': 2, '3831': 1, '1028': 2, '5388': 1, '1344': 1, '5995': 2, '1954': 2, '4033': 1, '1956': 1, '5991': 1, '4034': 2, '1953': 3, '1952': 1, '457': 3, '48516': 1, '6711': 1, '8873': 1, '3566': 1, '8874': 2, '3243': 1, '2502': 4, '3569': 1, '3246': 1, '3841': 1, '2997': 2, '3844': 1, '44': 1, '371': 2, '370': 2, '373': 1, '372': 2, '4489': 1, '377': 5, '2903': 1, '4310': 2, '911': 1, '708': 2, '1391': 1, '2905': 1, '1280': 1, '2908': 2, '3915': 1, '4878': 2, '1483': 1, '2710': 1, '3150': 1, '33794': 1, '82': 1, '3307': 1, '5669': 5, '3300': 2, '3301': 1, '910': 2, '5319': 1, '1717': 1, '6299': 1, '5254': 1, '5313': 1, '77455': 1, '1719': 2, '2302': 3, '4720': 1, '4723': 1, '5968': 1, '1653': 1, '1290': 1, '1272': 1, '913': 2, '2288': 1, '2289': 2, '585': 1, '3747': 1, '2282': 1, '3745': 1, '3742': 1, '1136': 3, '30707': 1, '589': 5, '3152': 1, '247': 2, '4623': 1, '3157': 2, '1179': 1, '4975': 2, '3210': 2, '1178': 1, '248': 1, '4546': 1, '6874': 1, '3390': 1, '3019': 2, '2273': 3, '2579': 1, '1663': 2, '3010': 1, '2575': 1, '2572': 2, '2278': 2, '2571': 6, '2378': 1, '1639': 3, '2841': 4, '2795': 2, '515': 2, '2371': 2, '2594': 1, '3948': 3, '2596': 1, '6287': 1, '1223': 2, '1222': 2, '1221': 2, '1220': 5, '2455': 2, '2454': 1, '1342': 1, '628': 2, '454': 2, '2599': 1, '1228': 1, '1876': 3, '5662': 1, '318': 7, '176': 1, '175': 1, '4344': 1, '173': 2, '172': 1, '170': 1, '4731': 1, '288': 1, '2881': 2, '2054': 2, '222': 1, '2058': 1, '5541': 1, '1500': 2, '3707': 1, '1502': 1, '1503': 1, '180': 1, '2': 1, '186': 1, '185': 3, '2110': 1, '3089': 1, '2114': 1, '2115': 2, '6365': 1, '3082': 1, '8376': 1, '3879': 1, '4322': 1, '96861': 1, '2624': 1, '1284': 1, '3871': 1, '1265': 4, '3873': 1, '1918': 3, '1148': 2, '5893': 1, '193': 1, '1281': 1, '3285': 1, '81834': 1, '1914': 1, '1917': 2, '48385': 1, '3885': 1, '2143': 1, '33166': 2, '3886': 1, '3448': 1, '17': 3, '16': 1, '19': 1, '3081': 1, '2126': 1, '225': 2, '866': 2, '2025': 1, '1923': 3, '2020': 2, '3083': 1, '2699': 2, '2023': 1, '2694': 2, '2028': 4, '2692': 2, '6218': 2, '3780': 1, '4823': 1, '3114': 5, '2303': 1, '2014': 1, '1289': 1, '3147': 3, '2001': 1, '1079': 3, '2087': 1, '307': 1, '1225': 4, '4014': 2, '5218': 1, '5219': 1, '4167': 1, '2827': 1, '1968': 3, '4161': 1, '356': 8, '1964': 1, '1617': 2, '1615': 1, '4005': 1, '1962': 1, '4168': 1, '322': 1, '5809': 1, '51084': 1, '58295': 1, '3977': 1, '3979': 1, '3988': 2, '4321': 2, '329': 3, '2628': 4, '1073': 3, '2872': 1, '2871': 1, '2877': 1, '5957': 1, '207': 1, '208': 2, '3623': 2, '78499': 1, '5416': 1, '4995': 3, '3626': 1, '3354': 1, '3477': 1, '4144': 1, '70': 2, '2973': 1, '2598': 1, '2976': 1, '3358': 1, '3578': 2, '5363': 1, '5449': 1, '800': 1, '2334': 1, '5364': 1, '3527': 1, '2231': 1, '2232': 1, '4718': 3, '4719': 1, '5445': 2, '5444': 1, '1680': 2, '1682': 3, '1687': 1, '1361': 1, '1689': 1, '96079': 1, '804': 1, '3577': 1, '7143': 1, '2959': 4, '4302': 1, '3717': 1, '1147': 1, '3499': 1, '1131': 1, '1262': 1, '665': 1, '1260': 1, '1267': 1, '2659': 1, '8622': 2, '5419': 1, '2094': 1, '5170': 1, '2091': 1, '5508': 1, '3286': 1, '5507': 1, '5504': 1, '5502': 1, '3504': 1, '5500': 1, '8784': 2, '1546': 1, '3128': 1, '4621': 1, '4666': 1, '6003': 1, '4679': 1, '1541': 1, '1343': 1, '1297': 1, '4675': 1, '4902': 1, '2529': 2, '2528': 2, '4903': 1, '543': 2, '540': 1, '2269': 1, '2248': 2, '2249': 1, '2174': 3, '1464': 1, '1466': 1, '2243': 1, '4007': 1, '994': 1, '2467': 2, '2709': 1, '230': 1, '10': 4, '4881': 1, '2707': 1, '2706': 2, '2701': 1, '2700': 1, '4886': 3, '2702': 2, '3265': 2, '123': 1, '125': 1, '4239': 1, '4238': 1, '3409': 1, '3408': 3, '4235': 1, '8533': 1, '4232': 1, '14': 1, '4011': 2, '5618': 1, '4873': 1, '5477': 1, '2460': 1, '7438': 1, '1827': 1, '3882': 1, '5617': 1, '529': 1, '2410': 1, '2413': 1, '2144': 1, '1388': 1, '4979': 1, '2141': 1, '2140': 3, '4974': 1, '1385': 1, '922': 1, '2791': 3, '1380': 3, '2797': 3, '926': 1, '4973': 2, '3827': 2, '3826': 1, '319': 1, '33493': 1, '3823': 1, '1029': 1, '3943': 1, '317': 2, '316': 2, '3829': 1, '314': 1, '1921': 1, '3275': 1, '3272': 1, '3273': 1, '3040': 1, '1339': 2, '223': 2, '2447': 1, '832': 1, '3476': 1, '5071': 1, '836': 1, '3471': 1, '4343': 1, '7361': 4, '4121': 1, '3571': 1, '784': 1, '737': 2, '3044': 1, '2344': 1, '3': 1, '5074': 1, '91500': 1, '2762': 7, '367': 5, '364': 5, '4223': 1, '362': 1, '441': 1, '2668': 1, '2021': 1, '5008': 1, '785': 2, '1777': 3, '380': 3, '3318': 1, '382': 2, '923': 2, '95': 1, '1836': 1, '3783': 1, '3317': 1, '3316': 1, '1645': 1, '1644': 1, '4734': 1, '4018': 2, '5463': 1, '4052': 1, '1729': 1, '1396': 2, '2324': 2, '1722': 1, '1721': 5, '5872': 1, '924': 2, '215': 1, '5878': 1, '2759': 1, '2329': 2, '1732': 2, '3617': 1, '3751': 3, '81158': 1, '3753': 1, '3752': 1, '3755': 1, '4056': 1, '2294': 4, '3005': 2, '3004': 1, '3007': 1, '2193': 2, '2194': 3, '3000': 1, '3168': 1, '3169': 1, '252': 1, '253': 3, '4639': 1, '4638': 1, '3008': 1, '3160': 1, '4372': 1, '1408': 2, '6327': 1, '1423': 1, '88125': 1, '7090': 1, '2407': 1, '2560': 1, '1580': 3, '7153': 3, '3361': 1, '3362': 1, '88129': 1, '733': 2, '2405': 1, '735': 1, '5481': 1, '64614': 1, '736': 4, '1032': 2, '2150': 2, '1030': 1, '1031': 1, '1036': 4, '500': 4, '2018': 2, '2428': 1, '6271': 1, '4271': 1, '1358': 5, '468': 1, '1214': 2, '2580': 1, '1353': 1, '464': 1, '1218': 1, '1219': 3, '2424': 2, '786': 2, '1200': 3, '1860': 1, '4378': 1, '1862': 1, '168': 1, '169': 1, '5553': 1, '4447': 2, '80489': 1, '780': 2, '4370': 1, '586': 3, '161': 2, '162': 1, '163': 1, '3863': 2, '282': 1, '3770': 1, '1177': 1, '5418': 1, '3683': 1, '6296': 1, '3639': 1, '2890': 3, '50068': 1, '5577': 1, '2109': 1, '2108': 2, '6059': 1, '1100': 1, '1101': 2, '2102': 1, '587': 3, '2100': 3, '1459': 1, '1513': 1, '2513': 1, '2734': 1, '1094': 1, '3869': 1, '3868': 1, '5110': 1, '5298': 1, '5299': 2, '5296': 1, '1649': 1, '3861': 2, '919': 4, '5293': 1, '3865': 1, '5291': 1, '5528': 1, '1097': 3, '3535': 1, '3534': 1, '3536': 1, '3538': 1, '4678': 1, '5459': 1, '4993': 3, '1816': 1, '4055': 1, '1810': 1, '3129': 1, '5391': 1, '1183': 1, '1387': 4, '112': 3, '4958': 1, '4369': 1, '1208': 2, '3185': 1, '91548': 1, '2034': 1, '4848': 1, '3181': 1, '3182': 1, '2005': 2, '4844': 1, '466': 1, '3825': 2, '2038': 1, '3916': 1, '2064': 2, '647': 1, '3911': 1, '3910': 1, '3949': 2, '899': 1, '1834': 1, '410': 2, '5458': 1, '1248': 1, '2803': 1, '2167': 1, '1805': 2, '1608': 1, '4019': 2, '6373': 2, '6281': 1, '4030': 1, '3225': 1, '1393': 3, '4158': 1, '4010': 1, '4017': 1, '4015': 1, '3396': 1, '357': 4, '1616': 1, '355': 3, '353': 1, '3989': 1, '7502': 1, '350': 1, '3984': 1, '802': 1, '3986': 2, '3987': 1, '1263': 2, '3981': 1, '805': 1, '3983': 1, '216': 1, '2617': 1, '214': 1, '1967': 1, '4037': 1, '5064': 1, '762': 1, '158': 1, '4036': 1, '1784': 3, '2968': 2, '2840': 2, '1961': 5, '3320': 1, '920': 1, '3324': 1, '4006': 2, '6879': 1, '3328': 1, '339': 2, '1611': 1, '1033': 1, '5478': 1, '6870': 1, '6283': 1, '2321': 1, '1084': 1, '5378': 2, '4701': 1, '4700': 1, '1077': 1, '5377': 1, '1779': 1, '5279': 1, '27369': 1, '289': 1, '5903': 1, '608': 3, '1674': 2, '1676': 1, '5909': 1, '2291': 2, '1673': 1, '3489': 1, '1095': 1, '5066': 1, '3763': 1, '1092': 1, '1093': 1, '674': 1, '8636': 3, '1912': 1, '40583': 1, '3484': 1, '673': 1, '3134': 1, '261': 1, '260': 4, '267': 1, '266': 1, '265': 2, '5902': 1, '2000': 2, '1334': 2, '574': 1, '5515': 1, '1562': 1, '60': 1, '1552': 2, '2012': 1, '3039': 2, '1215': 2, '6016': 1, '4642': 1, '2490': 2, '1556': 1, '3030': 1, '62': 2, '3033': 1, '537': 1, '3034': 1, '2394': 1, '2395': 1, '2501': 2, '2259': 1, '4643': 1, '3735': 1, '1411': 1, '1295': 1, '5060': 1, '538': 1, '164': 1, '1320': 1, '5013': 1, '5015': 1, '2770': 4, '1589': 1, '4890': 1, '22': 1, '4896': 2, '50': 5, '2724': 1, '111': 2, '110': 6, '4901': 1, '1047': 1, '52': 2, '1080': 1, '5135': 1, '1027': 2, '1858': 1, '2712': 1, '5568': 1, '40819': 2, '2720': 1, '3618': 1, '2788': 1, '4082': 1, '4410': 1, '429': 1, '1257': 1, '1254': 1, '1527': 1, '1252': 1, '2804': 3, '1250': 2, '1251': 1, '106487': 1, '2072': 1, '1394': 2, '4963': 3, '1529': 1, '1258': 3, '912': 1, '308': 1, '2605': 1, '153': 3, '2600': 1, '531': 1, '3543': 1, '300': 2, '3952': 1, '4270': 1, '2391': 2, '3956': 1, '306': 1, '778': 3, '3261': 1, '1035': 2, '3263': 1, '3262': 1, '5128': 1, '246': 1, '3266': 1, '2076': 1, '5120': 1, '5630': 2, '1955': 1, '4299': 1, '3462': 1, '3461': 1, '1747': 2, '69757': 1, '4888': 1, '3505': 1, '2671': 1, '539': 3, '2406': 3, '160': 1, '3435': 1, '1209': 1, '1610': 1, '4448': 2, '5010': 1, '2902': 1, '44004': 1, '2925': 1, '663': 1, '2926': 1, '81562': 1, '724': 2, '1584': 2, '5339': 1, '2907': 1, '80906': 1, '5220': 1, '1517': 1, '5945': 1, '4066': 1, '1635': 1, '3052': 2, '3474': 1, '1735': 1, '3219': 1, '431': 2, '4388': 1, '4351': 1, '480': 5, '3113': 1, '750': 1, '2369': 1, '6942': 1, '4210': 1, '661': 1, '6': 1, '2819': 1, '1041': 1, '1950': 1, '3179': 1, '3071': 1, '1597': 1, '2333': 1, '2186': 1, '3077': 1, '43556': 1, '3173': 1, '2478': 1, '3175': 2, '3174': 1, '2952': 1, '3176': 3, '30793': 1, '5346': 1, '2336': 1, '1189': 1, '1186': 1, '2990': 1, '4713': 1, '2585': 1, '5349': 3, '2983': 1, '1748': 1, '720': 3, '2353': 2, '2351': 1, '2357': 1, '2355': 5, '151': 1, '1212': 1, '2439': 1, '152': 1, '4361': 1, '1485': 2, '157': 1, '1213': 2, '4246': 1, '4247': 1, '1207': 1, '71211': 1, '1088': 1, '1210': 6, '1203': 1, '590': 5, '1204': 2, '4451': 1, '4450': 1, '5524': 1, '3968': 1, '908': 1, '1895': 1, '4641': 2, '1897': 1, '3730': 1, '11': 1, '2134': 1, '3108': 2, '2133': 1, '3104': 2, '47': 5, '953': 1, '3107': 1, '3101': 2, '40': 1, '2139': 1, '1569': 1, '1298': 2, '6184': 1, '5': 1, '6180': 1, '4021': 1, '1293': 2, '2505': 1, '1291': 5, '6025': 1, '1449': 1, '6188': 1, '2648': 1, '2726': 1, '671': 1, '508': 2, '2723': 3, '30749': 1, '1859': 1, '2640': 2, '1357': 1, '5283': 1, '2033': 1, '1206': 2, '3598': 1, '2729': 1, '1356': 2, '4367': 1, '535': 1, '2551': 1, '485': 2, '5026': 1, '483': 1, '481': 1, '4728': 1, '1807': 1, '509': 2, '3429': 1, '3786': 1, '3787': 1, '2105': 3, '3481': 1, '3788': 1, '803': 1, '3798': 2, '2722': 1, '3424': 1, '2002': 1, '2003': 2, '2019': 2, '471': 1, '4992': 1, '6331': 1, '474': 2, '6333': 1, '3728': 1, '2423': 1, '1217': 1, '126': 1, '4727': 1, '2995': 1}\n" | |
] | |
} | |
], | |
"source": [ | |
"print DegreeItem" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 计算二部图权重矩阵" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 65, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"100%|██████████| 1330/1330 [00:10<00:00, 122.76it/s]\n" | |
] | |
} | |
], | |
"source": [ | |
"def calculateW_molecular(x,y):\n", | |
" \"\"\"\n", | |
" x,y均表示电影,此处计算\n", | |
" \"\"\"\n", | |
" result=0\n", | |
" for user in all_users:\n", | |
" # 判断x movie中是否存在用户的评分\n", | |
" if user not in item_user_matrix[x]:\n", | |
" p=0\n", | |
" else:\n", | |
" p=item_user_matrix[x][user]\n", | |
" if user not in item_user_matrix[y]:\n", | |
" q=0\n", | |
" else:\n", | |
" q=item_user_matrix[y][user] \n", | |
" \n", | |
" result+=(p+q)*1.0/DegreeUser[user]\n", | |
" return result\n", | |
"#初始化电影与电影的全总矩阵,初始值都是0\n", | |
"item_item_w=defaultdict(dict)\n", | |
"\n", | |
"all_movies=item_user_matrix.keys()\n", | |
"all_users=readAdjacentMatrix.keys()\n", | |
"for x in all_movies:\n", | |
" for y in all_movies:\n", | |
" item_item_w[x][y]=0.0\n", | |
"#迭代更新权重矩阵\n", | |
"for x in tqdm(all_movies): \n", | |
" for y in all_movies:\n", | |
" item_item_w[x][y]=calculateW_molecular(x,y)/DegreeItem[y]\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 66, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"{'2581': 0.0290528233151184,\n", | |
" '4446': 0.0290528233151184,\n", | |
" '4027': 0.0290528233151184,\n", | |
" '4025': 0.019526411657559202,\n", | |
" '4022': 0.019526411657559202,\n", | |
" '4023': 0.0290528233151184,\n", | |
" '4020': 0.0290528233151184,\n", | |
" '165': 0.02110535902598025,\n", | |
" '4029': 0.0290528233151184,\n", | |
" '198': 0.02020822983937738,\n", | |
" '3556': 0.0290528233151184,\n", | |
" '3555': 0.0290528233151184,\n", | |
" '5989': 0.01884714583286423,\n", | |
" '4149': 0.0290528233151184,\n", | |
" '3552': 0.0290528233151184,\n", | |
" '3250': 0.0290528233151184,\n", | |
" '3251': 0.0329904639451409,\n", | |
" '3253': 0.0290528233151184,\n", | |
" '3255': 0.017607569542578003,\n", | |
" '3256': 0.0290528233151184,\n", | |
" '1945': 0.0290528233151184,\n", | |
" '344': 0.020263984583300337,\n", | |
" '345': 0.030595634979623074,\n", | |
" '3854': 0.0290528233151184,\n", | |
" '2078': 0.0329904639451409,\n", | |
" '3852': 0.0290528233151184,\n", | |
" '5650': 0.018836756485145406,\n", | |
" '342': 0.0290528233151184,\n", | |
" '3998': 0.0290528233151184,\n", | |
" '3996': 0.018836756485145406,\n", | |
" '3994': 0.0290528233151184,\n", | |
" '3993': 0.0290528233151184,\n", | |
" '349': 0.015704226278758077,\n", | |
" '3990': 0.0290528233151184,\n", | |
" '2858': 0.019093785369181906,\n", | |
" '2912': 0.0290528233151184,\n", | |
" '4308': 0.019526411657559202,\n", | |
" '2915': 0.0290528233151184,\n", | |
" '2916': 0.016977392049716062,\n", | |
" '2006': 0.0290528233151184,\n", | |
" '2918': 0.014288679656581284,\n", | |
" '1792': 0.0290528233151184,\n", | |
" '43871': 0.03670919281599959,\n", | |
" '32': 0.018836756485145406,\n", | |
" '2857': 0.0503107253830494,\n", | |
" '1266': 0.0290528233151184,\n", | |
" '54286': 0.046956427689129054,\n", | |
" '44191': 0.047696346298082073,\n", | |
" '5464': 0.01589117099009694,\n", | |
" '6157': 0.0290528233151184,\n", | |
" '1499': 0.04982763359560978,\n", | |
" '1264': 0.0290528233151184,\n", | |
" '2991': 0.0329904639451409,\n", | |
" '1994': 0.016977392049716062,\n", | |
" '5308': 0.0290528233151184,\n", | |
" '5266': 0.019526411657559202,\n", | |
" '79132': 0.05440429263451138,\n", | |
" '1704': 0.02040871640682391,\n", | |
" '1625': 0.018836756485145406,\n", | |
" '2318': 0.02433033322618665,\n", | |
" '4571': 0.0290528233151184,\n", | |
" '1061': 0.07808850316082717,\n", | |
" '1060': 0.0290528233151184,\n", | |
" '4738': 0.0290528233151184,\n", | |
" '2313': 0.0290528233151184,\n", | |
" '5269': 0.0290528233151184,\n", | |
" '2311': 0.0290528233151184,\n", | |
" '84236': 0.047696346298082073,\n", | |
" '2427': 0.02563752276867031,\n", | |
" '2096': 0.0329904639451409,\n", | |
" '6303': 0.0290528233151184,\n", | |
" '296': 0.01721784651866966,\n", | |
" '1259': 0.01683413420203583,\n", | |
" '292': 0.02110535902598025,\n", | |
" '293': 0.025890048021195565,\n", | |
" '3773': 0.044481945783777996,\n", | |
" '1129': 0.04472606976223177,\n", | |
" '593': 0.018532294613322006,\n", | |
" '592': 0.018984265597526875,\n", | |
" '595': 0.023019994220572815,\n", | |
" '594': 0.023829605115767122,\n", | |
" '597': 0.019526411657559202,\n", | |
" '596': 0.027858868336206814,\n", | |
" '6598': 0.05440429263451138,\n", | |
" '196': 0.0290528233151184,\n", | |
" '1125': 0.02217705015438863,\n", | |
" '1089': 0.01856463817807158,\n", | |
" '1127': 0.01856463817807158,\n", | |
" '4654': 0.0290528233151184,\n", | |
" '272': 0.026305017130652822,\n", | |
" '273': 0.041246397897669276,\n", | |
" '3146': 0.02272313296903461,\n", | |
" '277': 0.02847821384456453,\n", | |
" '3148': 0.02272313296903461,\n", | |
" '3624': 0.023960373921710142,\n", | |
" '2826': 0.04982763359560978,\n", | |
" '3671': 0.0395264116575592,\n", | |
" '4658': 0.0290528233151184,\n", | |
" '2822': 0.0329904639451409,\n", | |
" '3386': 0.0290528233151184,\n", | |
" '2542': 0.0290528233151184,\n", | |
" '2541': 0.0290528233151184,\n", | |
" '58559': 0.03328213541319198,\n", | |
" '5410': 0.0290528233151184,\n", | |
" '3967': 0.0290528233151184,\n", | |
" '3006': 0.0290528233151184,\n", | |
" '2987': 0.016977392049716062,\n", | |
" '2986': 0.0329904639451409,\n", | |
" '2985': 0.0290528233151184,\n", | |
" '3020': 0.0290528233151184,\n", | |
" '524': 0.01884714583286423,\n", | |
" '2268': 0.01872566877388478,\n", | |
" '527': 0.018588232932485325,\n", | |
" '520': 0.018836756485145406,\n", | |
" '2387': 0.0290528233151184,\n", | |
" '2568': 0.0290528233151184,\n", | |
" '1373': 0.03945213952446354,\n", | |
" '2263': 0.0329904639451409,\n", | |
" '1016': 0.0329904639451409,\n", | |
" '1407': 0.0290528233151184,\n", | |
" '1011': 0.0329904639451409,\n", | |
" '1405': 0.030138819892918254,\n", | |
" '799': 0.0290528233151184,\n", | |
" '1234': 0.0290528233151184,\n", | |
" '1235': 0.02168470302510804,\n", | |
" '2769': 0.0290528233151184,\n", | |
" '5000': 0.0290528233151184,\n", | |
" '1230': 0.016782742240794315,\n", | |
" '1231': 0.02020822983937738,\n", | |
" '1233': 0.0290528233151184,\n", | |
" '2763': 0.0290528233151184,\n", | |
" '442': 0.016977392049716062,\n", | |
" '2761': 0.023549340190231003,\n", | |
" '440': 0.014651594699810708,\n", | |
" '1544': 0.014651594699810708,\n", | |
" '1333': 0.0290528233151184,\n", | |
" '1332': 0.0329904639451409,\n", | |
" '4306': 0.01930691594780676,\n", | |
" '5673': 0.0290528233151184,\n", | |
" '588': 0.01468069305619425,\n", | |
" '5679': 0.019526411657559202,\n", | |
" '101': 0.0290528233151184,\n", | |
" '107': 0.0290528233151184,\n", | |
" '104': 0.01680548655958492,\n", | |
" '4148': 0.0290528233151184,\n", | |
" '2046': 0.0329904639451409,\n", | |
" '903': 0.01667051420667621,\n", | |
" '39': 0.017403572683986835,\n", | |
" '2042': 0.05440429263451138,\n", | |
" '4816': 0.0290528233151184,\n", | |
" '904': 0.0290528233151184,\n", | |
" '2041': 0.0290528233151184,\n", | |
" '26614': 0.05440429263451138,\n", | |
" '6502': 0.038088503160827174,\n", | |
" '31': 0.04472606976223177,\n", | |
" '909': 0.0290528233151184,\n", | |
" '36': 0.02563752276867031,\n", | |
" '1845': 0.0290528233151184,\n", | |
" '34': 0.015106140154356162,\n", | |
" '6378': 0.018836756485145406,\n", | |
" '1240': 0.016764387724462777,\n", | |
" '1243': 0.016977392049716062,\n", | |
" '1242': 0.03945213952446354,\n", | |
" '1244': 0.0290528233151184,\n", | |
" '1247': 0.019526411657559202,\n", | |
" '1246': 0.0290528233151184,\n", | |
" '1249': 0.0290528233151184,\n", | |
" '648': 0.0290528233151184,\n", | |
" '434': 0.016977392049716062,\n", | |
" '435': 0.016977392049716062,\n", | |
" '2161': 0.016977392049716062,\n", | |
" '2160': 0.0290528233151184,\n", | |
" '1201': 0.027684306394401302,\n", | |
" '6377': 0.01722985612716952,\n", | |
" '8368': 0.05081577588809991,\n", | |
" '2616': 0.0329904639451409,\n", | |
" '2993': 0.0290528233151184,\n", | |
" '3809': 0.044481945783777996,\n", | |
" '3267': 0.0290528233151184,\n", | |
" '335': 0.0290528233151184,\n", | |
" '3801': 0.02272313296903461,\n", | |
" '3800': 0.0290528233151184,\n", | |
" '333': 0.03945213952446354,\n", | |
" '42007': 0.03670919281599959,\n", | |
" '3298': 0.02272313296903461,\n", | |
" '1120': 0.0290528233151184,\n", | |
" '8464': 0.038088503160827174,\n", | |
" '1909': 0.025890048021195565,\n", | |
" '1904': 0.0290528233151184,\n", | |
" '4085': 0.0290528233151184,\n", | |
" '851': 0.0290528233151184,\n", | |
" '4744': 0.0290528233151184,\n", | |
" '3512': 0.0290528233151184,\n", | |
" '3510': 0.02433033322618665,\n", | |
" '858': 0.013143868438651136,\n", | |
" '748': 0.0290528233151184,\n", | |
" '541': 0.015106140154356162,\n", | |
" '91529': 0.05440429263451138,\n", | |
" '6203': 0.0290528233151184,\n", | |
" '3892': 0.0290528233151184,\n", | |
" '3893': 0.0290528233151184,\n", | |
" '2686': 0.0290528233151184,\n", | |
" '1022': 0.02149523197257045,\n", | |
" '3896': 0.0290528233151184,\n", | |
" '3897': 0.019526411657559202,\n", | |
" '2683': 0.023488696024858032,\n", | |
" '4914': 0.0290528233151184,\n", | |
" '3635': 0.0290528233151184,\n", | |
" '3999': 0.0290528233151184,\n", | |
" '1211': 0.0290528233151184,\n", | |
" '3421': 0.0290528233151184,\n", | |
" '48783': 0.047696346298082073,\n", | |
" '3633': 0.0290528233151184,\n", | |
" '4776': 0.0290528233151184,\n", | |
" '1020': 0.0290528233151184,\n", | |
" '3864': 0.044481945783777996,\n", | |
" '104841': 0.05440429263451138,\n", | |
" '94': 0.0290528233151184,\n", | |
" '32587': 0.03670919281599959,\n", | |
" '150': 0.017403572683986835,\n", | |
" '5952': 0.020133595232521184,\n", | |
" '4079': 0.0290528233151184,\n", | |
" '5954': 0.0290528233151184,\n", | |
" '1997': 0.019526411657559202,\n", | |
" '5956': 0.0290528233151184,\n", | |
" '5959': 0.0290528233151184,\n", | |
" '5222': 0.0290528233151184,\n", | |
" '5400': 0.0290528233151184,\n", | |
" '3785': 0.0290528233151184,\n", | |
" '5225': 0.0290528233151184,\n", | |
" '3208': 0.0329904639451409,\n", | |
" '33679': 0.038088503160827174,\n", | |
" '41566': 0.038088503160827174,\n", | |
" '5792': 0.0290528233151184,\n", | |
" '5791': 0.0290528233151184,\n", | |
" '2145': 0.0290528233151184,\n", | |
" '2574': 0.0290528233151184,\n", | |
" '5816': 0.019526411657559202,\n", | |
" '3969': 0.0290528233151184,\n", | |
" '2861': 0.07808850316082717,\n", | |
" '2366': 0.0290528233151184,\n", | |
" '745': 0.02020822983937738,\n", | |
" '3638': 0.0290528233151184,\n", | |
" '2867': 0.0329904639451409,\n", | |
" '555': 0.0290528233151184,\n", | |
" '3016': 0.0329904639451409,\n", | |
" '3634': 0.0290528233151184,\n", | |
" '556': 0.0290528233151184,\n", | |
" '551': 0.01785811813853229,\n", | |
" '550': 0.041246397897669276,\n", | |
" '552': 0.041246397897669276,\n", | |
" '3060': 0.016977392049716062,\n", | |
" '2949': 0.0290528233151184,\n", | |
" '2947': 0.0290528233151184,\n", | |
" '235': 0.02110535902598025,\n", | |
" '237': 0.0290528233151184,\n", | |
" '41569': 0.038088503160827174,\n", | |
" '231': 0.019526411657559202,\n", | |
" '232': 0.0290528233151184,\n", | |
" '233': 0.0290528233151184,\n", | |
" '1199': 0.0290528233151184,\n", | |
" '1198': 0.015135648110604704,\n", | |
" '93363': 0.046956427689129054,\n", | |
" '2340': 0.0290528233151184,\n", | |
" '1059': 0.02563752276867031,\n", | |
" '1193': 0.019526411657559202,\n", | |
" '562': 0.0290528233151184,\n", | |
" '1194': 0.0329904639451409,\n", | |
" '1197': 0.015954218044747035,\n", | |
" '1196': 0.020946373425503918,\n", | |
" '1': 0.020376651607319718,\n", | |
" '1694': 0.0290528233151184,\n", | |
" '1690': 0.0253959768749505,\n", | |
" '1754': 0.018836756485145406,\n", | |
" '1753': 0.0290528233151184,\n", | |
" '1752': 0.0290528233151184,\n", | |
" '2403': 0.0329904639451409,\n", | |
" '1278': 0.02217705015438863,\n", | |
" '1176': 0.0290528233151184,\n", | |
" '144': 0.041246397897669276,\n", | |
" '145': 0.0290528233151184,\n", | |
" '1173': 0.0290528233151184,\n", | |
" '1172': 0.07808850316082717,\n", | |
" '1171': 0.0290528233151184,\n", | |
" '141': 0.01811803343625909,\n", | |
" '1270': 0.013484777529560225,\n", | |
" '1271': 0.047696346298082073,\n", | |
" '610': 0.015106140154356162,\n", | |
" '616': 0.0230741793409915,\n", | |
" '1275': 0.03945213952446354,\n", | |
" '1276': 0.025890048021195565,\n", | |
" '149': 0.0290528233151184,\n", | |
" '2360': 0.0290528233151184,\n", | |
" '1484': 0.0290528233151184,\n", | |
" '1889': 0.0290528233151184,\n", | |
" '2678': 0.0290528233151184,\n", | |
" '1887': 0.04982763359560978,\n", | |
" '1884': 0.047696346298082073,\n", | |
" '1883': 0.0290528233151184,\n", | |
" '1882': 0.0290528233151184,\n", | |
" '914': 0.023960373921710142,\n", | |
" '1285': 0.027858868336206814,\n", | |
" '97938': 0.05440429263451138,\n", | |
" '1287': 0.030138819892918254,\n", | |
" '2125': 0.0503107253830494,\n", | |
" '2124': 0.016977392049716062,\n", | |
" '1283': 0.0290528233151184,\n", | |
" '1282': 0.0329904639451409,\n", | |
" '2080': 0.0329904639451409,\n", | |
" '2081': 0.02149523197257045,\n", | |
" '2086': 0.0329904639451409,\n", | |
" '1288': 0.015106140154356162,\n", | |
" '2085': 0.0329904639451409,\n", | |
" '2539': 0.02433805865737441,\n", | |
" '1476': 0.0290528233151184,\n", | |
" '2060': 0.0290528233151184,\n", | |
" '45': 0.03670919281599959,\n", | |
" '1573': 0.0290528233151184,\n", | |
" '8644': 0.038088503160827174,\n", | |
" '1479': 0.0290528233151184,\n", | |
" '6037': 0.0290528233151184,\n", | |
" '680': 0.0290528233151184,\n", | |
" '534': 0.03083718087334288,\n", | |
" '6155': 0.0290528233151184,\n", | |
" '1304': 0.0290528233151184,\n", | |
" '2713': 0.0290528233151184,\n", | |
" '5171': 0.0290528233151184,\n", | |
" '1307': 0.013829605115767123,\n", | |
" '2716': 0.02243666337837189,\n", | |
" '2717': 0.0290528233151184,\n", | |
" '1302': 0.016345716444642392,\n", | |
" '1303': 0.0290528233151184,\n", | |
" '2396': 0.02563752276867031,\n", | |
" '2718': 0.0290528233151184,\n", | |
" '2657': 0.025890048021195565,\n", | |
" '4262': 0.018836756485145406,\n", | |
" '916': 0.0290528233151184,\n", | |
" '2348': 0.0329904639451409,\n", | |
" '549': 0.0290528233151184,\n", | |
" '494': 0.0290528233151184,\n", | |
" '4225': 0.0290528233151184,\n", | |
" '4226': 0.018836756485145406,\n", | |
" '497': 0.03173431005994575,\n", | |
" '3418': 0.0290528233151184,\n", | |
" '5075': 0.0290528233151184,\n", | |
" '25': 0.0290528233151184,\n", | |
" '26': 0.0503107253830494,\n", | |
" '1831': 0.0290528233151184,\n", | |
" '3799': 0.044481945783777996,\n", | |
" '21': 0.02020822983937738,\n", | |
" '35836': 0.038088503160827174,\n", | |
" '4383': 0.0290528233151184,\n", | |
" '3794': 0.02272313296903461,\n", | |
" '4381': 0.0290528233151184,\n", | |
" '4380': 0.0290528233151184,\n", | |
" '3791': 0.044481945783777996,\n", | |
" '4386': 0.0290528233151184,\n", | |
" '3793': 0.02272313296903461,\n", | |
" '5620': 0.0290528233151184,\n", | |
" '1371': 0.03145136676959242,\n", | |
" '1370': 0.0290528233151184,\n", | |
" '405': 0.041246397897669276,\n", | |
" '1372': 0.02217705015438863,\n", | |
" '1375': 0.03945213952446354,\n", | |
" '1374': 0.020249180977242695,\n", | |
" '1377': 0.016977392049716062,\n", | |
" '1376': 0.02217705015438863,\n", | |
" '1378': 0.047696346298082073,\n", | |
" '931': 0.0290528233151184,\n", | |
" '2011': 0.0290528233151184,\n", | |
" '2010': 0.0290528233151184,\n", | |
" '2409': 0.0329904639451409,\n", | |
" '34162': 0.023354596407999792,\n", | |
" '788': 0.019526411657559202,\n", | |
" '3831': 0.044481945783777996,\n", | |
" '1028': 0.02469195328404586,\n", | |
" '5388': 0.0290528233151184,\n", | |
" '1344': 0.0329904639451409,\n", | |
" '5995': 0.019526411657559202,\n", | |
" '1954': 0.016977392049716062,\n", | |
" '4033': 0.0290528233151184,\n", | |
" '1956': 0.0290528233151184,\n", | |
" '5991': 0.0290528233151184,\n", | |
" '4034': 0.018836756485145406,\n", | |
" '1953': 0.02798492803314404,\n", | |
" '1952': 0.0290528233151184,\n", | |
" '457': 0.016943802569044306,\n", | |
" '48516': 0.05440429263451138,\n", | |
" '6711': 0.038088503160827174,\n", | |
" '8873': 0.03670919281599959,\n", | |
" '3566': 0.0290528233151184,\n", | |
" '8874': 0.029718232771636162,\n", | |
" '3243': 0.047696346298082073,\n", | |
" '2502': 0.017600196424390886,\n", | |
" '3569': 0.0290528233151184,\n", | |
" '3246': 0.0290528233151184,\n", | |
" '3841': 0.044481945783777996,\n", | |
" '2997': 0.019526411657559202,\n", | |
" '3844': 0.044481945783777996,\n", | |
" '44': 0.0290528233151184,\n", | |
" '371': 0.02110535902598025,\n", | |
" '370': 0.02110535902598025,\n", | |
" '373': 0.0290528233151184,\n", | |
" '372': 0.02110535902598025,\n", | |
" '4489': 0.0290528233151184,\n", | |
" '377': 0.016636439510570356,\n", | |
" '2903': 0.0329904639451409,\n", | |
" '4310': 0.023960373921710142,\n", | |
" '911': 0.0290528233151184,\n", | |
" '708': 0.02020822983937738,\n", | |
" '1391': 0.0290528233151184,\n", | |
" '2905': 0.0290528233151184,\n", | |
" '1280': 0.0290528233151184,\n", | |
" '2908': 0.023960373921710142,\n", | |
" '3915': 0.0290528233151184,\n", | |
" '4878': 0.023960373921710142,\n", | |
" '1483': 0.0290528233151184,\n", | |
" '2710': 0.0290528233151184,\n", | |
" '3150': 0.0290528233151184,\n", | |
" '33794': 0.03670919281599959,\n", | |
" '82': 0.0290528233151184,\n", | |
" '3307': 0.0290528233151184,\n", | |
" '5669': 0.018719429116245988,\n", | |
" '3300': 0.025890048021195565,\n", | |
" '3301': 0.0290528233151184,\n", | |
" '910': 0.016977392049716062,\n", | |
" '5319': 0.0290528233151184,\n", | |
" '1717': 0.0290528233151184,\n", | |
" '6299': 0.0290528233151184,\n", | |
" '5254': 0.0290528233151184,\n", | |
" '5313': 0.0290528233151184,\n", | |
" '77455': 0.05440429263451138,\n", | |
" '1719': 0.0253959768749505,\n", | |
" '2302': 0.019965245064171012,\n", | |
" '4720': 0.0290528233151184,\n", | |
" '4723': 0.0290528233151184,\n", | |
" '5968': 0.0290528233151184,\n", | |
" '1653': 0.0290528233151184,\n", | |
" '1290': 0.0290528233151184,\n", | |
" '1272': 0.0290528233151184,\n", | |
" '913': 0.016977392049716062,\n", | |
" '2288': 0.0290528233151184,\n", | |
" '2289': 0.016977392049716062,\n", | |
" '585': 0.041246397897669276,\n", | |
" '3747': 0.0290528233151184,\n", | |
" '2282': 0.0290528233151184,\n", | |
" '3745': 0.0290528233151184,\n", | |
" '3742': 0.0290528233151184,\n", | |
" '1136': 0.015106140154356162,\n", | |
" '30707': 0.038088503160827174,\n", | |
" '589': 0.013419400971016602,\n", | |
" '3152': 0.0290528233151184,\n", | |
" '247': 0.02433033322618665,\n", | |
" '4623': 0.0290528233151184,\n", | |
" '3157': 0.0395264116575592,\n", | |
" '1179': 0.0290528233151184,\n", | |
" '4975': 0.025890048021195565,\n", | |
" '3210': 0.016977392049716062,\n", | |
" '1178': 0.0290528233151184,\n", | |
" '248': 0.041246397897669276,\n", | |
" '4546': 0.0290528233151184,\n", | |
" '6874': 0.03670919281599959,\n", | |
" '3390': 0.0290528233151184,\n", | |
" '3019': 0.0253959768749505,\n", | |
" '2273': 0.02042501517911354,\n", | |
" '2579': 0.0290528233151184,\n", | |
" '1663': 0.016977392049716062,\n", | |
" '3010': 0.0290528233151184,\n", | |
" '2575': 0.0290528233151184,\n", | |
" '2572': 0.023960373921710142,\n", | |
" '2278': 0.02563752276867031,\n", | |
" '2571': 0.02053834381381171,\n", | |
" '2378': 0.0290528233151184,\n", | |
" '1639': 0.022724512888447318,\n", | |
" '2841': 0.01975512163558208,\n", | |
" '2795': 0.016977392049716062,\n", | |
" '515': 0.03173431005994575,\n", | |
" '2371': 0.016977392049716062,\n", | |
" '2594': 0.0290528233151184,\n", | |
" '3948': 0.01589117099009694,\n", | |
" '2596': 0.05440429263451138,\n", | |
" '6287': 0.0290528233151184,\n", | |
" '1223': 0.02020822983937738,\n", | |
" '1222': 0.016977392049716062,\n", | |
" '1221': 0.019526411657559202,\n", | |
" '1220': 0.016690198704160383,\n", | |
" '2455': 0.0395264116575592,\n", | |
" '2454': 0.0329904639451409,\n", | |
" '1342': 0.0290528233151184,\n", | |
" '628': 0.018836756485145406,\n", | |
" '454': 0.02110535902598025,\n", | |
" '2599': 0.0290528233151184,\n", | |
" '1228': 0.0290528233151184,\n", | |
" '1876': 0.020133595232521184,\n", | |
" '5662': 0.0290528233151184,\n", | |
" '318': 0.01878203852235554,\n", | |
" '176': 0.0290528233151184,\n", | |
" '175': 0.0290528233151184,\n", | |
" '4344': 0.0290528233151184,\n", | |
" '173': 0.027858868336206814,\n", | |
" '172': 0.0290528233151184,\n", | |
" '170': 0.0290528233151184,\n", | |
" '4731': 0.0290528233151184,\n", | |
" '288': 0.0290528233151184,\n", | |
" '2881': 0.0253959768749505,\n", | |
" '2054': 0.016977392049716062,\n", | |
" '222': 0.041246397897669276,\n", | |
" '2058': 0.0290528233151184,\n", | |
" '5541': 0.0290528233151184,\n", | |
" '1500': 0.018836756485145406,\n", | |
" '3707': 0.0290528233151184,\n", | |
" '1502': 0.0290528233151184,\n", | |
" '1503': 0.0290528233151184,\n", | |
" '180': 0.0290528233151184,\n", | |
" '2': 0.0290528233151184,\n", | |
" '186': 0.041246397897669276,\n", | |
" '185': 0.015704226278758077,\n", | |
" '2110': 0.0329904639451409,\n", | |
" '3089': 0.0290528233151184,\n", | |
" '2114': 0.0329904639451409,\n", | |
" '2115': 0.016977392049716062,\n", | |
" '6365': 0.0290528233151184,\n", | |
" '3082': 0.0290528233151184,\n", | |
" '8376': 0.038088503160827174,\n", | |
" '3879': 0.044481945783777996,\n", | |
" '4322': 0.0290528233151184,\n", | |
" '96861': 0.05440429263451138,\n", | |
" '2624': 0.0290528233151184,\n", | |
" '1284': 0.0290528233151184,\n", | |
" '3871': 0.044481945783777996,\n", | |
" '1265': 0.015360849570726608,\n", | |
" '3873': 0.044481945783777996,\n", | |
" '1918': 0.026058059315708995,\n", | |
" '1148': 0.02020822983937738,\n", | |
" '5893': 0.0290528233151184,\n", | |
" '193': 0.0290528233151184,\n", | |
" '1281': 0.0290528233151184,\n", | |
" '3285': 0.0290528233151184,\n", | |
" '81834': 0.046956427689129054,\n", | |
" '1914': 0.0290528233151184,\n", | |
" '1917': 0.016977392049716062,\n", | |
" '48385': 0.038088503160827174,\n", | |
" '3885': 0.044481945783777996,\n", | |
" '2143': 0.0329904639451409,\n", | |
" '33166': 0.023354596407999792,\n", | |
" '3886': 0.044481945783777996,\n", | |
" '3448': 0.0290528233151184,\n", | |
" '17': 0.02147764675806091,\n", | |
" '16': 0.0290528233151184,\n", | |
" '19': 0.0290528233151184,\n", | |
" '3081': 0.0290528233151184,\n", | |
" '2126': 0.0290528233151184,\n", | |
" '225': 0.02110535902598025,\n", | |
" '866': 0.02433033322618665,\n", | |
" '2025': 0.0290528233151184,\n", | |
" '1923': 0.020263984583300337,\n", | |
" '2020': 0.016977392049716062,\n", | |
" '3083': 0.0290528233151184,\n", | |
" '2699': 0.016977392049716062,\n", | |
" '2023': 0.038088503160827174,\n", | |
" '2694': 0.02884817314904104,\n", | |
" '2028': 0.019875894582441985,\n", | |
" '2692': 0.025890048021195565,\n", | |
" '6218': 0.019526411657559202,\n", | |
" '3780': 0.044481945783777996,\n", | |
" '4823': 0.0290528233151184,\n", | |
" '3114': 0.026129604114138606,\n", | |
" '2303': 0.0290528233151184,\n", | |
" '2014': 0.0329904639451409,\n", | |
" '1289': 0.0290528233151184,\n", | |
" '3147': 0.01884714583286423,\n", | |
" '2001': 0.05081577588809991,\n", | |
" '1079': 0.015106140154356162,\n", | |
" '2087': 0.0329904639451409,\n", | |
" '307': 0.0290528233151184,\n", | |
" '1225': 0.013484777529560225,\n", | |
" '4014': 0.019526411657559202,\n", | |
" '5218': 0.0290528233151184,\n", | |
" '5219': 0.0290528233151184,\n", | |
" '4167': 0.0290528233151184,\n", | |
" '2827': 0.04982763359560978,\n", | |
" '1968': 0.014651594699810708,\n", | |
" '4161': 0.0290528233151184,\n", | |
" '356': 0.014446596565079975,\n", | |
" '1964': 0.0290528233151184,\n", | |
" '1617': 0.018836756485145406,\n", | |
" '1615': 0.0290528233151184,\n", | |
" '4005': 0.0290528233151184,\n", | |
" '1962': 0.0290528233151184,\n", | |
" '4168': 0.0290528233151184,\n", | |
" '322': 0.0290528233151184,\n", | |
" '5809': 0.0290528233151184,\n", | |
" '51084': 0.05440429263451138,\n", | |
" '58295': 0.05440429263451138,\n", | |
" '3977': 0.0290528233151184,\n", | |
" '3979': 0.0290528233151184,\n", | |
" '3988': 0.0395264116575592,\n", | |
" '4321': 0.023960373921710142,\n", | |
" '329': 0.015106140154356162,\n", | |
" '2628': 0.026544251580413587,\n", | |
" '1073': 0.015106140154356162,\n", | |
" '2872': 0.0329904639451409,\n", | |
" '2871': 0.0290528233151184,\n", | |
" '2877': 0.0329904639451409,\n", | |
" '5957': 0.0290528233151184,\n", | |
" '207': 0.03945213952446354,\n", | |
" '208': 0.02110535902598025,\n", | |
" '3623': 0.0395264116575592,\n", | |
" '78499': 0.046956427689129054,\n", | |
" '5416': 0.0290528233151184,\n", | |
" '4995': 0.01589117099009694,\n", | |
" '3626': 0.0290528233151184,\n", | |
" '3354': 0.07808850316082717,\n", | |
" '3477': 0.0290528233151184,\n", | |
" '4144': 0.0290528233151184,\n", | |
" '70': 0.027684306394401302,\n", | |
" '2973': 0.0290528233151184,\n", | |
" '2598': 0.0290528233151184,\n", | |
" '2976': 0.0290528233151184,\n", | |
" '3358': 0.0290528233151184,\n", | |
" '3578': 0.018836756485145406,\n", | |
" '5363': 0.0290528233151184,\n", | |
" '5449': 0.0290528233151184,\n", | |
" '800': 0.0290528233151184,\n", | |
" '2334': 0.0290528233151184,\n", | |
" '5364': 0.0290528233151184,\n", | |
" '3527': 0.0290528233151184,\n", | |
" '2231': 0.0290528233151184,\n", | |
" '2232': 0.0290528233151184,\n", | |
" '4718': 0.01930691594780676,\n", | |
" '4719': 0.0290528233151184,\n", | |
" '5445': 0.018836756485145406,\n", | |
" '5444': 0.0290528233151184,\n", | |
" '1680': 0.02563752276867031,\n", | |
" '1682': 0.02042501517911354,\n", | |
" '1687': 0.05081577588809991,\n", | |
" '1361': 0.0290528233151184,\n", | |
" '1689': 0.0290528233151184,\n", | |
" '96079': 0.05440429263451138,\n", | |
" '804': 0.0290528233151184,\n", | |
" '3577': 0.0290528233151184,\n", | |
" '7143': 0.03670919281599959,\n", | |
" '2959': 0.018418699682624134,\n", | |
" '4302': 0.0290528233151184,\n", | |
" '3717': 0.0290528233151184,\n", | |
" '1147': 0.0290528233151184,\n", | |
" '3499': 0.0290528233151184,\n", | |
" '1131': 0.0290528233151184,\n", | |
" '1262': 0.0290528233151184,\n", | |
" '665': 0.0290528233151184,\n", | |
" '1260': 0.0290528233151184,\n", | |
" '1267': 0.0290528233151184,\n", | |
" '2659': 0.0329904639451409,\n", | |
" '8622': 0.02884817314904104,\n", | |
" '5419': 0.0290528233151184,\n", | |
" '2094': 0.0329904639451409,\n", | |
" '5170': 0.0290528233151184,\n", | |
" '2091': 0.0329904639451409,\n", | |
" '5508': 0.0290528233151184,\n", | |
" '3286': 0.0290528233151184,\n", | |
" '5507': 0.0290528233151184,\n", | |
" '5504': 0.0290528233151184,\n", | |
" '5502': 0.0290528233151184,\n", | |
" '3504': 0.0290528233151184,\n", | |
" '5500': 0.0290528233151184,\n", | |
" '8784': 0.029718232771636162,\n", | |
" '1546': 0.0290528233151184,\n", | |
" '3128': 0.0290528233151184,\n", | |
" '4621': 0.0290528233151184,\n", | |
" '4666': 0.0290528233151184,\n", | |
" '6003': 0.0290528233151184,\n", | |
" '4679': 0.0290528233151184,\n", | |
" '1541': 0.0503107253830494,\n", | |
" '1343': 0.07808850316082717,\n", | |
" '1297': 0.0290528233151184,\n", | |
" '4675': 0.0290528233151184,\n", | |
" '4902': 0.0290528233151184,\n", | |
" '2529': 0.03360460925552536,\n", | |
" '2528': 0.025890048021195565,\n", | |
" '4903': 0.0290528233151184,\n", | |
" '543': 0.018836756485145406,\n", | |
" '540': 0.0290528233151184,\n", | |
" '2269': 0.0290528233151184,\n", | |
" '2248': 0.016977392049716062,\n", | |
" '2249': 0.0503107253830494,\n", | |
" '2174': 0.018894018942234952,\n", | |
" '1464': 0.0290528233151184,\n", | |
" '1466': 0.0290528233151184,\n", | |
" '2243': 0.0290528233151184,\n", | |
" '4007': 0.0290528233151184,\n", | |
" '994': 0.0290528233151184,\n", | |
" '2467': 0.016977392049716062,\n", | |
" '2709': 0.0290528233151184,\n", | |
" '230': 0.0290528233151184,\n", | |
" '10': 0.014619078799977647,\n", | |
" '4881': 0.0290528233151184,\n", | |
" '2707': 0.0290528233151184,\n", | |
" '2706': 0.019526411657559202,\n", | |
" '2701': 0.0290528233151184,\n", | |
" '2700': 0.0290528233151184,\n", | |
" '4886': 0.01884714583286423,\n", | |
" '2702': 0.02433033322618665,\n", | |
" '3265': 0.016977392049716062,\n", | |
" '123': 0.0290528233151184,\n", | |
" '125': 0.0290528233151184,\n", | |
" '4239': 0.0290528233151184,\n", | |
" '4238': 0.0290528233151184,\n", | |
" '3409': 0.0290528233151184,\n", | |
" '3408': 0.018482088646023076,\n", | |
" '4235': 0.0290528233151184,\n", | |
" '8533': 0.03670919281599959,\n", | |
" '4232': 0.0290528233151184,\n", | |
" '14': 0.0290528233151184,\n", | |
" '4011': 0.018836756485145406,\n", | |
" '5618': 0.0290528233151184,\n", | |
" '4873': 0.0290528233151184,\n", | |
" '5477': 0.0290528233151184,\n", | |
" '2460': 0.044481945783777996,\n", | |
" '7438': 0.03670919281599959,\n", | |
" '1827': 0.0290528233151184,\n", | |
" '3882': 0.0290528233151184,\n", | |
" '5617': 0.0290528233151184,\n", | |
" '529': 0.044481945783777996,\n", | |
" '2410': 0.04982763359560978,\n", | |
" '2413': 0.0290528233151184,\n", | |
" '2144': 0.0329904639451409,\n", | |
" '1388': 0.0329904639451409,\n", | |
" '4979': 0.0290528233151184,\n", | |
" '2141': 0.0329904639451409,\n", | |
" '2140': 0.01872566877388478,\n", | |
" '4974': 0.0290528233151184,\n", | |
" '1385': 0.0290528233151184,\n", | |
" '922': 0.0290528233151184,\n", | |
" '2791': 0.014191824584868179,\n", | |
" '1380': 0.014651594699810708,\n", | |
" '2797': 0.014191824584868179,\n", | |
" '926': 0.0290528233151184,\n", | |
" '4973': 0.018836756485145406,\n", | |
" '3827': 0.02272313296903461,\n", | |
" '3826': 0.0290528233151184,\n", | |
" '319': 0.041246397897669276,\n", | |
" '33493': 0.03670919281599959,\n", | |
" '3823': 0.0290528233151184,\n", | |
" '1029': 0.07808850316082717,\n", | |
" '3943': 0.0290528233151184,\n", | |
" '317': 0.02110535902598025,\n", | |
" '316': 0.02020822983937738,\n", | |
" '3829': 0.044481945783777996,\n", | |
" '314': 0.041246397897669276,\n", | |
" '1921': 0.0290528233151184,\n", | |
" '3275': 0.0290528233151184,\n", | |
" '3272': 0.0290528233151184,\n", | |
" '3273': 0.0290528233151184,\n", | |
" '3040': 0.0329904639451409,\n", | |
" '1339': 0.0395264116575592,\n", | |
" '223': 0.02110535902598025,\n", | |
" '2447': 0.0290528233151184,\n", | |
" '832': 0.0290528233151184,\n", | |
" '3476': 0.0290528233151184,\n", | |
" '5071': 0.0290528233151184,\n", | |
" '836': 0.0290528233151184,\n", | |
" '3471': 0.0290528233151184,\n", | |
" '4343': 0.0290528233151184,\n", | |
" '7361': 0.024478058302207274,\n", | |
" '4121': 0.0290528233151184,\n", | |
" '3571': 0.0290528233151184,\n", | |
" '784': 0.0290528233151184,\n", | |
" '737': 0.02792279107370718,\n", | |
" '3044': 0.0290528233151184,\n", | |
" '2344': 0.04982763359560978,\n", | |
" '3': 0.038088503160827174,\n", | |
" '5074': 0.0290528233151184,\n", | |
" '91500': 0.05440429263451138,\n", | |
" '2762': 0.019241041761679144,\n", | |
" '367': 0.01369526303998212,\n", | |
" '364': 0.01369526303998212,\n", | |
" '4223': 0.0290528233151184,\n", | |
" '362': 0.046956427689129054,\n", | |
" '441': 0.0290528233151184,\n", | |
" '2668': 0.044481945783777996,\n", | |
" '2021': 0.0329904639451409,\n", | |
" '5008': 0.0290528233151184,\n", | |
" '785': 0.027684306394401302,\n", | |
" '1777': 0.01589117099009694,\n", | |
" '380': 0.015106140154356162,\n", | |
" '3318': 0.0290528233151184,\n", | |
" '382': 0.02110535902598025,\n", | |
" '923': 0.027684306394401302,\n", | |
" '95': 0.0290528233151184,\n", | |
" '1836': 0.0290528233151184,\n", | |
" '3783': 0.0290528233151184,\n", | |
" '3317': 0.0290528233151184,\n", | |
" '3316': 0.0290528233151184,\n", | |
" '1645': 0.0290528233151184,\n", | |
" '1644': 0.0290528233151184,\n", | |
" '4734': 0.0290528233151184,\n", | |
" '4018': 0.019526411657559202,\n", | |
" '5463': 0.0290528233151184,\n", | |
" '4052': 0.0290528233151184,\n", | |
" '1729': 0.0290528233151184,\n", | |
" '1396': 0.016977392049716062,\n", | |
" '2324': 0.018836756485145406,\n", | |
" '1722': 0.0290528233151184,\n", | |
" '1721': 0.026176577734919104,\n", | |
" '5872': 0.0290528233151184,\n", | |
" '924': 0.02020822983937738,\n", | |
" '215': 0.0290528233151184,\n", | |
" '5878': 0.0290528233151184,\n", | |
" '2759': 0.0290528233151184,\n", | |
" '2329': 0.018836756485145406,\n", | |
" '1732': 0.02272313296903461,\n", | |
" '3617': 0.0290528233151184,\n", | |
" '3751': 0.03392669868079704,\n", | |
" '81158': 0.05440429263451138,\n", | |
" '3753': 0.038088503160827174,\n", | |
" '3752': 0.0290528233151184,\n", | |
" '3755': 0.0290528233151184,\n", | |
" '4056': 0.0290528233151184,\n", | |
" '2294': 0.02781876138433516,\n", | |
" '3005': 0.0253959768749505,\n", | |
" '3004': 0.0290528233151184,\n", | |
" '3007': 0.0290528233151184,\n", | |
" '2193': 0.04149523197257045,\n", | |
" '2194': 0.014191824584868179,\n", | |
" '3000': 0.0290528233151184,\n", | |
" '3168': 0.0290528233151184,\n", | |
" '3169': 0.0329904639451409,\n", | |
" '252': 0.0290528233151184,\n", | |
" '253': 0.01953472022497044,\n", | |
" '4639': 0.0290528233151184,\n", | |
" '4638': 0.0290528233151184,\n", | |
" '3008': 0.0290528233151184,\n", | |
" '3160': 0.0290528233151184,\n", | |
" '4372': 0.0290528233151184,\n", | |
" '1408': 0.032883964499073874,\n", | |
" '6327': 0.0290528233151184,\n", | |
" '1423': 0.04982763359560978,\n", | |
" '88125': 0.046956427689129054,\n", | |
" '7090': 0.05081577588809991,\n", | |
" '2407': 0.0290528233151184,\n", | |
" '2560': 0.0290528233151184,\n", | |
" '1580': 0.017854209078895678,\n", | |
" '7153': 0.026348102893509074,\n", | |
" '3361': 0.0290528233151184,\n", | |
" '3362': 0.0290528233151184,\n", | |
" '88129': 0.05440429263451138,\n", | |
" '733': 0.02563752276867031,\n", | |
" '2405': 0.0290528233151184,\n", | |
" '735': 0.04982763359560978,\n", | |
" '5481': 0.0290528233151184,\n", | |
" '64614': 0.046956427689129054,\n", | |
" '736': 0.019104436359740122,\n", | |
" '1032': 0.02469195328404586,\n", | |
" '2150': 0.0395264116575592,\n", | |
" '1030': 0.0329904639451409,\n", | |
" '1031': 0.0329904639451409,\n", | |
" '1036': 0.016764387724462777,\n", | |
" '500': 0.015893588603899216,\n", | |
" '2018': 0.016977392049716062,\n", | |
" '2428': 0.0290528233151184,\n", | |
" '6271': 0.0290528233151184,\n", | |
" '4271': 0.0290528233151184,\n", | |
" '1358': 0.020872427670913678,\n", | |
" '468': 0.041246397897669276,\n", | |
" '1214': 0.016977392049716062,\n", | |
" '2580': 0.0290528233151184,\n", | |
" '1353': 0.03945213952446354,\n", | |
" '464': 0.0329904639451409,\n", | |
" '1218': 0.0290528233151184,\n", | |
" '1219': 0.014191824584868179,\n", | |
" '2424': 0.019526411657559202,\n", | |
" '786': 0.02020822983937738,\n", | |
" '1200': 0.01856463817807158,\n", | |
" '1860': 0.0290528233151184,\n", | |
" '4378': 0.0290528233151184,\n", | |
" '1862': 0.0290528233151184,\n", | |
" '168': 0.041246397897669276,\n", | |
" '169': 0.05440429263451138,\n", | |
" '5553': 0.0290528233151184,\n", | |
" '4447': 0.019526411657559202,\n", | |
" '80489': 0.05440429263451138,\n", | |
" '780': 0.02020822983937738,\n", | |
" '4370': 0.0290528233151184,\n", | |
" '586': 0.017403572683986835,\n", | |
" '161': 0.02110535902598025,\n", | |
" '162': 0.0290528233151184,\n", | |
" '163': 0.0290528233151184,\n", | |
" '3863': 0.02272313296903461,\n", | |
" '282': 0.03670919281599959,\n", | |
" '3770': 0.044481945783777996,\n", | |
" '1177': 0.0503107253830494,\n", | |
" '5418': 0.0290528233151184,\n", | |
" '3683': 0.0290528233151184,\n", | |
" '6296': 0.0290528233151184,\n", | |
" '3639': 0.0290528233151184,\n", | |
" '2890': 0.02450640882572458,\n", | |
" '50068': 0.047696346298082073,\n", | |
" '5577': 0.0290528233151184,\n", | |
" '2109': 0.0329904639451409,\n", | |
" '2108': 0.0253959768749505,\n", | |
" '6059': 0.0290528233151184,\n", | |
" '1100': 0.0290528233151184,\n", | |
" '1101': 0.0253959768749505,\n", | |
" '2102': 0.0329904639451409,\n", | |
" '587': 0.020359547526754132,\n", | |
" '2100': 0.014191824584868179,\n", | |
" '1459': 0.04982763359560978,\n", | |
" '1513': 0.0290528233151184,\n", | |
" '2513': 0.047696346298082073,\n", | |
" '2734': 0.0329904639451409,\n", | |
" '1094': 0.0290528233151184,\n", | |
" '3869': 0.044481945783777996,\n", | |
" '3868': 0.0290528233151184,\n", | |
" '5110': 0.0290528233151184,\n", | |
" '5298': 0.0290528233151184,\n", | |
" '5299': 0.019526411657559202,\n", | |
" '5296': 0.0290528233151184,\n", | |
" '1649': 0.0290528233151184,\n", | |
" '3861': 0.02272313296903461,\n", | |
" '919': 0.015705677156933502,\n", | |
" '5293': 0.0290528233151184,\n", | |
" '3865': 0.044481945783777996,\n", | |
" '5291': 0.0290528233151184,\n", | |
" '5528': 0.0290528233151184,\n", | |
" '1097': 0.015106140154356162,\n", | |
" '3535': 0.0290528233151184,\n", | |
" '3534': 0.0290528233151184,\n", | |
" '3536': 0.0290528233151184,\n", | |
" '3538': 0.0290528233151184,\n", | |
" '4678': 0.0290528233151184,\n", | |
" '5459': 0.0290528233151184,\n", | |
" '4993': 0.01884714583286423,\n", | |
" '1816': 0.0290528233151184,\n", | |
" '4055': 0.0290528233151184,\n", | |
" '1810': 0.0290528233151184,\n", | |
" '3129': 0.0290528233151184,\n", | |
" '5391': 0.0290528233151184,\n", | |
" '1183': 0.0290528233151184,\n", | |
" '1387': 0.01474222909438884,\n", | |
" '112': 0.015106140154356162,\n", | |
" '4958': 0.0290528233151184,\n", | |
" '4369': 0.0290528233151184,\n", | |
" '1208': 0.016977392049716062,\n", | |
" '3185': 0.0290528233151184,\n", | |
" '91548': 0.05440429263451138,\n", | |
" '2034': 0.0329904639451409,\n", | |
" '4848': 0.0290528233151184,\n", | |
" '3181': 0.0290528233151184,\n", | |
" '3182': 0.0290528233151184,\n", | |
" '2005': 0.016977392049716062,\n", | |
" '4844': 0.0290528233151184,\n", | |
" '466': 0.0290528233151184,\n", | |
" '3825': 0.02272313296903461,\n", | |
" '2038': 0.07808850316082717,\n", | |
" '3916': 0.03670919281599959,\n", | |
" '2064': 0.016977392049716062,\n", | |
" '647': 0.0290528233151184,\n", | |
" '3911': 0.0290528233151184,\n", | |
" '3910': 0.0290528233151184,\n", | |
" '3949': 0.02433033322618665,\n", | |
" '899': 0.0290528233151184,\n", | |
" '1834': 0.0290528233151184,\n", | |
" '410': 0.0230741793409915,\n", | |
" '5458': 0.0290528233151184,\n", | |
" '1248': 0.0290528233151184,\n", | |
" '2803': 0.0290528233151184,\n", | |
" '2167': 0.0290528233151184,\n", | |
" '1805': 0.016977392049716062,\n", | |
" '1608': 0.0290528233151184,\n", | |
" '4019': 0.018836756485145406,\n", | |
" '6373': 0.019526411657559202,\n", | |
" '6281': 0.0290528233151184,\n", | |
" '4030': 0.0290528233151184,\n", | |
" '3225': 0.0290528233151184,\n", | |
" '1393': 0.01589117099009694,\n", | |
" '4158': 0.0290528233151184,\n", | |
" '4010': 0.0290528233151184,\n", | |
" '4017': 0.0290528233151184,\n", | |
" '4015': 0.0290528233151184,\n", | |
" '3396': 0.046956427689129054,\n", | |
" '357': 0.014619078799977647,\n", | |
" '1616': 0.0290528233151184,\n", | |
" '355': 0.02000810093866989,\n", | |
" '353': 0.0290528233151184,\n", | |
" '3989': 0.0290528233151184,\n", | |
" '7502': 0.046956427689129054,\n", | |
" '350': 0.041246397897669276,\n", | |
" '3984': 0.0290528233151184,\n", | |
" '802': 0.0290528233151184,\n", | |
" '3986': 0.0395264116575592,\n", | |
" '3987': 0.0290528233151184,\n", | |
" '1263': 0.0395264116575592,\n", | |
" '3981': 0.0290528233151184,\n", | |
" '805': 0.03670919281599959,\n", | |
" '3983': 0.0290528233151184,\n", | |
" '216': 0.0290528233151184,\n", | |
" '2617': 0.0290528233151184,\n", | |
" '214': 0.0290528233151184,\n", | |
" '1967': 0.0329904639451409,\n", | |
" '4037': 0.0290528233151184,\n", | |
" ...}" | |
] | |
}, | |
"execution_count": 66, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"item_item_w['2268']" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 统计用户没有评价的商品列表" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 67, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"User_unrate_movie=defaultdict(list)\n", | |
"for user in all_users:\n", | |
" for movie in all_movies:\n", | |
" if movie not in readAdjacentMatrix[user]:\n", | |
" User_unrate_movie[user].append(movie)\n", | |
" " | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 计算用户没有评价商品的评分" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 68, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"100%|██████████| 15/15 [00:03<00:00, 3.78it/s]\n" | |
] | |
} | |
], | |
"source": [ | |
"def calculateScore(user,item):\n", | |
" \"\"\"\n", | |
" 计算评分\n", | |
" \"\"\"\n", | |
" score=0\n", | |
" for movie in all_movies:\n", | |
" if movie==item:\n", | |
" continue\n", | |
" #判断当前的user是否在电影的观看者中,存在则计算对应的分数\n", | |
" if user in item_user_matrix[movie]:\n", | |
" score+=item_item_w[movie][item]*item_user_matrix[movie][user]\n", | |
" \n", | |
" return score\n", | |
"\n", | |
"\n", | |
"User_unrate_movie_score=defaultdict(dict)\n", | |
"\n", | |
"#循环遍历所有的用户,为每个用户的未评分商品进行打分预测\n", | |
"for user in tqdm(all_users):\n", | |
" for unrate_movie in User_unrate_movie[user]:\n", | |
" \n", | |
" User_unrate_movie_score[user][unrate_movie]=calculateScore(user,unrate_movie)\n", | |
" \n", | |
"\n", | |
" \n", | |
" \n", | |
" " | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 69, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"{'2581': 1.1434441327450007,\n", | |
" '4446': 1.1434441327450007,\n", | |
" '4027': 1.1434441327450007,\n", | |
" '4025': 0.6717220663725004,\n", | |
" '4022': 0.6717220663725004,\n", | |
" '4023': 1.1434441327450007,\n", | |
" '4020': 1.1434441327450007,\n", | |
" '165': 0.7033010137409216,\n", | |
" '4029': 1.1434441327450007,\n", | |
" '198': 0.6853584300088639,\n", | |
" '3556': 1.1434441327450007,\n", | |
" '3555': 1.1434441327450007,\n", | |
" '5989': 0.5644054721381622,\n", | |
" '4149': 1.1434441327450007,\n", | |
" '3552': 1.1434441327450007,\n", | |
" '3250': 1.1434441327450007,\n", | |
" '3251': 1.2221969453454506,\n", | |
" '3253': 1.1434441327450007,\n", | |
" '3255': 0.5396139463324376,\n", | |
" '3256': 1.1434441327450007,\n", | |
" '1945': 1.1434441327450007,\n", | |
" '344': 0.5927422471468842,\n", | |
" '345': 0.8931065328137779,\n", | |
" '3854': 1.1434441327450007,\n", | |
" '2078': 1.2221969453454506,\n", | |
" '3852': 1.1434441327450007,\n", | |
" '5650': 0.6579289629242245,\n", | |
" '342': 1.1434441327450007,\n", | |
" '3998': 1.1434441327450007,\n", | |
" '3996': 0.6579289629242245,\n", | |
" '3994': 1.1434441327450007,\n", | |
" '3993': 1.1434441327450007,\n", | |
" '349': 0.5015470810560391,\n", | |
" '3990': 1.1434441327450007,\n", | |
" '2858': 0.5693382628645157,\n", | |
" '2912': 1.1434441327450007,\n", | |
" '4308': 0.6717220663725004,\n", | |
" '2915': 1.1434441327450007,\n", | |
" '2916': 0.6207416742156378,\n", | |
" '2918': 0.3982511264201522,\n", | |
" '1792': 1.1434441327450007,\n", | |
" '43871': 1.2965715227626247,\n", | |
" '32': 0.6579289629242245,\n", | |
" '2857': 1.5686021741036205,\n", | |
" '1266': 1.1434441327450007,\n", | |
" '54286': 1.5015162202252141,\n", | |
" '44191': 1.516314592404274,\n", | |
" '5464': 0.5052859752828164,\n", | |
" '6157': 1.1434441327450007,\n", | |
" '1499': 1.558940338354828,\n", | |
" '1264': 1.1434441327450007,\n", | |
" '2991': 1.2221969453454506,\n", | |
" '1994': 0.6207416742156378,\n", | |
" '5308': 1.1434441327450007,\n", | |
" '5266': 0.6717220663725004,\n", | |
" '79132': 1.6504735191328601,\n", | |
" '1704': 0.5487712447471366,\n", | |
" '1625': 0.6579289629242245,\n", | |
" '2318': 0.7678004977450495,\n", | |
" '4571': 1.1434441327450007,\n", | |
" '1060': 1.1434441327450007,\n", | |
" '4738': 1.1434441327450007,\n", | |
" '2313': 1.1434441327450007,\n", | |
" '5269': 1.1434441327450007,\n", | |
" '2311': 1.1434441327450007,\n", | |
" '84236': 1.516314592404274,\n", | |
" '2427': 0.7939442885947227,\n", | |
" '2096': 1.2221969453454506,\n", | |
" '1258': 0.4712990471782412,\n", | |
" '296': 0.4246980255794838,\n", | |
" '1259': 0.44916021732924316,\n", | |
" '292': 0.7033010137409216,\n", | |
" '293': 0.7989947936452277,\n", | |
" '3773': 1.4520265821181928,\n", | |
" '586': 0.5355340091606142,\n", | |
" '593': 0.48312342555496673,\n", | |
" '592': 0.4921628452390641,\n", | |
" '595': 0.6478624398923337,\n", | |
" '594': 0.6171890189260006,\n", | |
" '597': 0.6717220663725004,\n", | |
" '596': 0.8383711999454527,\n", | |
" '6598': 1.6504735191328601,\n", | |
" '196': 1.1434441327450007,\n", | |
" '1125': 0.7247348363090889,\n", | |
" '1089': 0.558755319042309,\n", | |
" '1127': 0.558755319042309,\n", | |
" '4654': 1.1434441327450007,\n", | |
" '272': 0.807294175834373,\n", | |
" '273': 1.387315624396018,\n", | |
" '3146': 0.7356564926020086,\n", | |
" '277': 0.850758110112607,\n", | |
" '3148': 0.7356564926020086,\n", | |
" '3624': 0.7604013116555193,\n", | |
" '2826': 1.558940338354828,\n", | |
" '2827': 1.558940338354828,\n", | |
" '4658': 1.1434441327450007,\n", | |
" '2822': 1.2221969453454506,\n", | |
" '3386': 1.1434441327450007,\n", | |
" '2542': 1.1434441327450007,\n", | |
" '2541': 1.1434441327450007,\n", | |
" '58559': 0.9468365414851558,\n", | |
" '5410': 1.1434441327450007,\n", | |
" '3967': 1.1434441327450007,\n", | |
" '2983': 1.1434441327450007,\n", | |
" '2987': 0.6207416742156378,\n", | |
" '2986': 1.2221969453454506,\n", | |
" '2985': 1.1434441327450007,\n", | |
" '3020': 1.1434441327450007,\n", | |
" '524': 0.5644054721381622,\n", | |
" '2268': 0.5619759309585732,\n", | |
" '527': 0.4654959363901451,\n", | |
" '520': 0.6579289629242245,\n", | |
" '2387': 1.1434441327450007,\n", | |
" '2568': 1.1434441327450007,\n", | |
" '1373': 1.351430456931903,\n", | |
" '2263': 1.2221969453454506,\n", | |
" '1016': 1.2221969453454506,\n", | |
" '1407': 1.1434441327450007,\n", | |
" '1011': 1.2221969453454506,\n", | |
" '799': 1.1434441327450007,\n", | |
" '1234': 1.1434441327450007,\n", | |
" '1235': 0.6211566159830384,\n", | |
" '2769': 1.1434441327450007,\n", | |
" '5000': 1.1434441327450007,\n", | |
" '1230': 0.523117400296764,\n", | |
" '1231': 0.6853584300088639,\n", | |
" '1233': 1.1434441327450007,\n", | |
" '2763': 1.1434441327450007,\n", | |
" '442': 0.6207416742156378,\n", | |
" '2761': 0.6584493592854976,\n", | |
" '440': 0.4804944494770918,\n", | |
" '1544': 0.4804944494770918,\n", | |
" '1333': 1.1434441327450007,\n", | |
" '1332': 1.2221969453454506,\n", | |
" '215': 1.1434441327450007,\n", | |
" '5673': 1.1434441327450007,\n", | |
" '588': 0.38734513886432387,\n", | |
" '5679': 0.6717220663725004,\n", | |
" '101': 1.1434441327450007,\n", | |
" '107': 1.1434441327450007,\n", | |
" '104': 0.5235722866725759,\n", | |
" '4148': 1.1434441327450007,\n", | |
" '2046': 1.2221969453454506,\n", | |
" '903': 0.47400720074418257,\n", | |
" '39': 0.5355340091606142,\n", | |
" '2042': 1.6504735191328601,\n", | |
" '4816': 1.1434441327450007,\n", | |
" '904': 1.1434441327450007,\n", | |
" '2041': 1.1434441327450007,\n", | |
" '26614': 1.6504735191328601,\n", | |
" '6502': 1.3241577296591764,\n", | |
" '4306': 0.5736008744370128,\n", | |
" '909': 1.1434441327450007,\n", | |
" '36': 0.7939442885947227,\n", | |
" '1845': 1.1434441327450007,\n", | |
" '34': 0.48958535856800084,\n", | |
" '6378': 0.6579289629242245,\n", | |
" '1240': 0.4758846710999138,\n", | |
" '1243': 0.6207416742156378,\n", | |
" '1242': 1.351430456931903,\n", | |
" '1244': 1.1434441327450007,\n", | |
" '1247': 0.6717220663725004,\n", | |
" '1246': 1.1434441327450007,\n", | |
" '1249': 1.1434441327450007,\n", | |
" '648': 1.1434441327450007,\n", | |
" '434': 0.6207416742156378,\n", | |
" '435': 0.6207416742156378,\n", | |
" '2161': 0.6207416742156378,\n", | |
" '2160': 1.1434441327450007,\n", | |
" '1201': 0.8348799611093422,\n", | |
" '6377': 0.45707465583191687,\n", | |
" '8368': 1.578703184204631,\n", | |
" '2616': 1.2221969453454506,\n", | |
" '2993': 1.1434441327450007,\n", | |
" '3809': 1.4520265821181928,\n", | |
" '3267': 1.1434441327450007,\n", | |
" '335': 1.1434441327450007,\n", | |
" '3801': 0.7356564926020086,\n", | |
" '3800': 1.1434441327450007,\n", | |
" '333': 1.351430456931903,\n", | |
" '42007': 1.2965715227626247,\n", | |
" '3298': 0.7356564926020086,\n", | |
" '1120': 1.1434441327450007,\n", | |
" '8464': 1.3241577296591764,\n", | |
" '1909': 0.7989947936452277,\n", | |
" '1904': 1.1434441327450007,\n", | |
" '4085': 1.1434441327450007,\n", | |
" '851': 1.1434441327450007,\n", | |
" '4744': 1.1434441327450007,\n", | |
" '3512': 1.1434441327450007,\n", | |
" '3510': 0.7678004977450495,\n", | |
" '858': 0.40347428538368096,\n", | |
" '748': 1.1434441327450007,\n", | |
" '541': 0.48958535856800084,\n", | |
" '91529': 1.6504735191328601,\n", | |
" '6203': 1.1434441327450007,\n", | |
" '3892': 1.1434441327450007,\n", | |
" '3893': 1.1434441327450007,\n", | |
" '2686': 1.1434441327450007,\n", | |
" '1022': 0.7110984726727254,\n", | |
" '3896': 1.1434441327450007,\n", | |
" '3897': 0.6717220663725004,\n", | |
" '2683': 0.6103708371078186,\n", | |
" '4914': 1.1434441327450007,\n", | |
" '3635': 1.1434441327450007,\n", | |
" '3999': 1.1434441327450007,\n", | |
" '1211': 1.1434441327450007,\n", | |
" '3421': 1.1434441327450007,\n", | |
" '48783': 1.516314592404274,\n", | |
" '3633': 1.1434441327450007,\n", | |
" '4776': 1.1434441327450007,\n", | |
" '1020': 1.1434441327450007,\n", | |
" '3864': 1.4520265821181928,\n", | |
" '104841': 1.6504735191328601,\n", | |
" '94': 1.1434441327450007,\n", | |
" '32587': 1.2965715227626247,\n", | |
" '150': 0.5355340091606142,\n", | |
" '5952': 0.5901344601313011,\n", | |
" '4079': 1.1434441327450007,\n", | |
" '5954': 1.1434441327450007,\n", | |
" '1997': 0.6717220663725004,\n", | |
" '5956': 1.1434441327450007,\n", | |
" '5959': 1.1434441327450007,\n", | |
" '5222': 1.1434441327450007,\n", | |
" '5400': 1.1434441327450007,\n", | |
" '5225': 1.1434441327450007,\n", | |
" '3208': 1.2221969453454506,\n", | |
" '33679': 1.3241577296591764,\n", | |
" '41566': 1.3241577296591764,\n", | |
" '5792': 1.1434441327450007,\n", | |
" '5791': 1.1434441327450007,\n", | |
" '2145': 1.1434441327450007,\n", | |
" '2574': 1.1434441327450007,\n", | |
" '5816': 0.6717220663725004,\n", | |
" '3969': 1.1434441327450007,\n", | |
" '2861': 2.1241577296591765,\n", | |
" '2366': 1.1434441327450007,\n", | |
" '745': 0.6853584300088639,\n", | |
" '3638': 1.1434441327450007,\n", | |
" '2867': 1.2221969453454506,\n", | |
" '555': 1.1434441327450007,\n", | |
" '3016': 1.2221969453454506,\n", | |
" '3634': 1.1434441327450007,\n", | |
" '556': 1.1434441327450007,\n", | |
" '551': 0.5446249182515234,\n", | |
" '550': 1.387315624396018,\n", | |
" '552': 1.387315624396018,\n", | |
" '3060': 0.6207416742156378,\n", | |
" '2949': 1.1434441327450007,\n", | |
" '2947': 1.1434441327450007,\n", | |
" '235': 0.7033010137409216,\n", | |
" '237': 1.1434441327450007,\n", | |
" '41569': 1.3241577296591764,\n", | |
" '231': 0.6717220663725004,\n", | |
" '232': 1.1434441327450007,\n", | |
" '233': 1.1434441327450007,\n", | |
" '1199': 1.1434441327450007,\n", | |
" '1198': 0.41519049550062054,\n", | |
" '93363': 1.5015162202252141,\n", | |
" '2340': 1.1434441327450007,\n", | |
" '1059': 0.7939442885947227,\n", | |
" '1193': 0.6717220663725004,\n", | |
" '562': 1.1434441327450007,\n", | |
" '1194': 1.2221969453454506,\n", | |
" '1197': 0.39942545610103103,\n", | |
" '1196': 0.512658746250517,\n", | |
" '1': 0.5481299487570526,\n", | |
" '1694': 1.1434441327450007,\n", | |
" '1690': 0.7891133707203263,\n", | |
" '1754': 0.6579289629242245,\n", | |
" '1753': 1.1434441327450007,\n", | |
" '1752': 1.1434441327450007,\n", | |
" '2403': 1.2221969453454506,\n", | |
" '1278': 0.7247348363090889,\n", | |
" '1176': 1.1434441327450007,\n", | |
" '144': 1.387315624396018,\n", | |
" '145': 1.1434441327450007,\n", | |
" '1173': 1.1434441327450007,\n", | |
" '1171': 1.1434441327450007,\n", | |
" '141': 0.5498232242060594,\n", | |
" '1270': 0.41029246720186263,\n", | |
" '1271': 1.516314592404274,\n", | |
" '610': 0.48958535856800084,\n", | |
" '616': 0.7426774200411462,\n", | |
" '1275': 1.351430456931903,\n", | |
" '1276': 0.7989947936452277,\n", | |
" '149': 1.1434441327450007,\n", | |
" '2360': 1.1434441327450007,\n", | |
" '1484': 1.1434441327450007,\n", | |
" '1889': 1.1434441327450007,\n", | |
" '2678': 1.1434441327450007,\n", | |
" '1887': 1.558940338354828,\n", | |
" '1884': 1.516314592404274,\n", | |
" '1883': 1.1434441327450007,\n", | |
" '1882': 1.1434441327450007,\n", | |
" '914': 0.7604013116555193,\n", | |
" '1285': 0.8383711999454527,\n", | |
" '97938': 1.6504735191328601,\n", | |
" '2125': 1.5686021741036205,\n", | |
" '2124': 0.6207416742156378,\n", | |
" '1283': 1.1434441327450007,\n", | |
" '1282': 1.2221969453454506,\n", | |
" '2080': 1.2221969453454506,\n", | |
" '2081': 0.7110984726727254,\n", | |
" '2086': 1.2221969453454506,\n", | |
" '1288': 0.48958535856800084,\n", | |
" '2085': 1.2221969453454506,\n", | |
" '2539': 0.6742237286283658,\n", | |
" '1476': 1.1434441327450007,\n", | |
" '2060': 1.1434441327450007,\n", | |
" '45': 1.2965715227626247,\n", | |
" '1573': 1.1434441327450007,\n", | |
" '8644': 1.3241577296591764,\n", | |
" '1479': 1.1434441327450007,\n", | |
" '6037': 1.1434441327450007,\n", | |
" '680': 1.1434441327450007,\n", | |
" '534': 0.8979374506881742,\n", | |
" '6155': 1.1434441327450007,\n", | |
" '1304': 1.1434441327450007,\n", | |
" '2713': 1.1434441327450007,\n", | |
" '5171': 1.1434441327450007,\n", | |
" '1307': 0.4171890189260005,\n", | |
" '2716': 0.5612108008559642,\n", | |
" '2717': 1.1434441327450007,\n", | |
" '1302': 0.5143768843737254,\n", | |
" '1303': 1.1434441327450007,\n", | |
" '2396': 0.7939442885947227,\n", | |
" '2718': 1.1434441327450007,\n", | |
" '2657': 0.7989947936452277,\n", | |
" '4262': 0.6579289629242245,\n", | |
" '916': 1.1434441327450007,\n", | |
" '2348': 1.2221969453454506,\n", | |
" '549': 1.1434441327450007,\n", | |
" '494': 1.1434441327450007,\n", | |
" '4225': 1.1434441327450007,\n", | |
" '4226': 0.6579289629242245,\n", | |
" '497': 0.9158800344202315,\n", | |
" '3418': 1.1434441327450007,\n", | |
" '5075': 1.1434441327450007,\n", | |
" '25': 1.1434441327450007,\n", | |
" '26': 1.5686021741036205,\n", | |
" '1831': 1.1434441327450007,\n", | |
" '3799': 1.4520265821181928,\n", | |
" '21': 0.6853584300088639,\n", | |
" '35836': 1.3241577296591764,\n", | |
" '4383': 1.1434441327450007,\n", | |
" '3794': 0.7356564926020086,\n", | |
" '4381': 1.1434441327450007,\n", | |
" '4380': 1.1434441327450007,\n", | |
" '3791': 1.4520265821181928,\n", | |
" '4386': 1.1434441327450007,\n", | |
" '3793': 0.7356564926020086,\n", | |
" '5620': 1.1434441327450007,\n", | |
" '6327': 1.1434441327450007,\n", | |
" '1370': 1.1434441327450007,\n", | |
" '405': 1.387315624396018,\n", | |
" '1372': 0.7247348363090889,\n", | |
" '1375': 1.351430456931903,\n", | |
" '1374': 0.5924461750257315,\n", | |
" '1377': 0.6207416742156378,\n", | |
" '1376': 0.7247348363090889,\n", | |
" '1378': 1.516314592404274,\n", | |
" '931': 1.1434441327450007,\n", | |
" '2011': 1.1434441327450007,\n", | |
" '2010': 1.1434441327450007,\n", | |
" '2409': 1.2221969453454506,\n", | |
" '34162': 0.7482857613813124,\n", | |
" '788': 0.6717220663725004,\n", | |
" '3831': 1.4520265821181928,\n", | |
" '1028': 0.7750328989022337,\n", | |
" '5388': 1.1434441327450007,\n", | |
" '1344': 1.2221969453454506,\n", | |
" '5995': 0.6717220663725004,\n", | |
" '1954': 0.6207416742156378,\n", | |
" '4033': 1.1434441327450007,\n", | |
" '1956': 1.1434441327450007,\n", | |
" '5991': 1.1434441327450007,\n", | |
" '4034': 0.6579289629242245,\n", | |
" '2712': 1.1434441327450007,\n", | |
" '1952': 1.1434441327450007,\n", | |
" '457': 0.5263386068617637,\n", | |
" '48516': 1.6504735191328601,\n", | |
" '6711': 1.3241577296591764,\n", | |
" '8873': 1.2965715227626247,\n", | |
" '3566': 1.1434441327450007,\n", | |
" '8874': 0.8755584886540395,\n", | |
" '3243': 1.516314592404274,\n", | |
" '2502': 0.49260084509847596,\n", | |
" '3569': 1.1434441327450007,\n", | |
" '3246': 1.1434441327450007,\n", | |
" '3841': 1.4520265821181928,\n", | |
" '2997': 0.6717220663725004,\n", | |
" '3844': 1.4520265821181928,\n", | |
" '44': 1.1434441327450007,\n", | |
" '371': 0.7033010137409216,\n", | |
" '370': 0.7033010137409216,\n", | |
" '373': 1.1434441327450007,\n", | |
" '372': 0.7033010137409216,\n", | |
" '4489': 1.1434441327450007,\n", | |
" '377': 0.44520632349993366,\n", | |
" '2903': 1.2221969453454506,\n", | |
" '4310': 0.7604013116555193,\n", | |
" '911': 1.1434441327450007,\n", | |
" '708': 0.6853584300088639,\n", | |
" '1391': 1.1434441327450007,\n", | |
" '2905': 1.1434441327450007,\n", | |
" '1280': 1.1434441327450007,\n", | |
" '2908': 0.7604013116555193,\n", | |
" '3915': 1.1434441327450007,\n", | |
" '4878': 0.7604013116555193,\n", | |
" '1483': 1.1434441327450007,\n", | |
" '2710': 1.1434441327450007,\n", | |
" '3150': 1.1434441327450007,\n", | |
" '33794': 1.2965715227626247,\n", | |
" '82': 1.1434441327450007,\n", | |
" '3307': 1.1434441327450007,\n", | |
" '5669': 0.4868661156134462,\n", | |
" '3300': 0.7989947936452277,\n", | |
" '3301': 1.1434441327450007,\n", | |
" '910': 0.6207416742156378,\n", | |
" '5319': 1.1434441327450007,\n", | |
" '1717': 1.1434441327450007,\n", | |
" '6299': 1.1434441327450007,\n", | |
" '5254': 1.1434441327450007,\n", | |
" '5313': 1.1434441327450007,\n", | |
" '77455': 1.6504735191328601,\n", | |
" '1719': 0.7891133707203263,\n", | |
" '2302': 0.5867674567642978,\n", | |
" '4720': 1.1434441327450007,\n", | |
" '4723': 1.1434441327450007,\n", | |
" '5968': 1.1434441327450007,\n", | |
" '1653': 1.1434441327450007,\n", | |
" '1290': 1.1434441327450007,\n", | |
" '1272': 1.1434441327450007,\n", | |
" '913': 0.6207416742156378,\n", | |
" '2288': 1.1434441327450007,\n", | |
" '2289': 0.6207416742156378,\n", | |
" '585': 1.387315624396018,\n", | |
" '3747': 1.1434441327450007,\n", | |
" '2282': 1.1434441327450007,\n", | |
" '3745': 1.1434441327450007,\n", | |
" '3742': 1.1434441327450007,\n", | |
" '1136': 0.48958535856800084,\n", | |
" '30707': 1.3241577296591764,\n", | |
" '589': 0.3808655527088586,\n", | |
" '3152': 1.1434441327450007,\n", | |
" '247': 0.7678004977450495,\n", | |
" '4623': 1.1434441327450007,\n", | |
" '3157': 1.0717220663725002,\n", | |
" '1179': 1.1434441327450007,\n", | |
" '4975': 0.7989947936452277,\n", | |
" '3210': 0.6207416742156378,\n", | |
" '1178': 1.1434441327450007,\n", | |
" '248': 1.387315624396018,\n", | |
" '4546': 1.1434441327450007,\n", | |
" '6874': 1.2965715227626247,\n", | |
" '3390': 1.1434441327450007,\n", | |
" '3019': 0.7891133707203263,\n", | |
" '2273': 0.5959628590631483,\n", | |
" '2579': 1.1434441327450007,\n", | |
" '1663': 0.6207416742156378,\n", | |
" '3010': 1.1434441327450007,\n", | |
" '2575': 1.1434441327450007,\n", | |
" '2572': 0.7604013116555193,\n", | |
" '2278': 0.7939442885947227,\n", | |
" '2571': 0.5044981540166731,\n", | |
" '2378': 1.1434441327450007,\n", | |
" '1639': 0.6419528132498238,\n", | |
" '2841': 0.5356993493222999,\n", | |
" '2795': 0.6207416742156378,\n", | |
" '515': 0.9158800344202315,\n", | |
" '2371': 0.6207416742156378,\n", | |
" '2594': 1.1434441327450007,\n", | |
" '3948': 0.5052859752828164,\n", | |
" '2596': 1.6504735191328601,\n", | |
" '6287': 1.1434441327450007,\n", | |
" '1223': 0.6853584300088639,\n", | |
" '1222': 0.6207416742156378,\n", | |
" '1221': 0.6717220663725004,\n", | |
" '1220': 0.4462815073717342,\n", | |
" '223': 0.7033010137409216,\n", | |
" '2454': 1.2221969453454506,\n", | |
" '1342': 1.1434441327450007,\n", | |
" '628': 0.6579289629242245,\n", | |
" '454': 0.7033010137409216,\n", | |
" '2599': 1.1434441327450007,\n", | |
" '1228': 1.1434441327450007,\n", | |
" '1876': 0.5901344601313011,\n", | |
" '5662': 1.1434441327450007,\n", | |
" '318': 0.45598186565320126,\n", | |
" '176': 1.1434441327450007,\n", | |
" '175': 1.1434441327450007,\n", | |
" '4344': 1.1434441327450007,\n", | |
" '173': 0.8383711999454527,\n", | |
" '172': 1.1434441327450007,\n", | |
" '170': 1.1434441327450007,\n", | |
" '4731': 1.1434441327450007,\n", | |
" '288': 1.1434441327450007,\n", | |
" '2881': 0.7891133707203263,\n", | |
" '2054': 0.6207416742156378,\n", | |
" '222': 1.387315624396018,\n", | |
" '2058': 1.1434441327450007,\n", | |
" '5541': 1.1434441327450007,\n", | |
" '1500': 0.6579289629242245,\n", | |
" '3707': 1.1434441327450007,\n", | |
" '1502': 1.1434441327450007,\n", | |
" '1503': 1.1434441327450007,\n", | |
" '180': 1.1434441327450007,\n", | |
" '2': 1.1434441327450007,\n", | |
" '186': 1.387315624396018,\n", | |
" '185': 0.5015470810560391,\n", | |
" '2110': 1.2221969453454506,\n", | |
" '3089': 1.1434441327450007,\n", | |
" '2114': 1.2221969453454506,\n", | |
" '2115': 0.6207416742156378,\n", | |
" '6365': 1.1434441327450007,\n", | |
" '3082': 1.1434441327450007,\n", | |
" '8376': 1.3241577296591764,\n", | |
" '3879': 1.4520265821181928,\n", | |
" '4322': 1.1434441327450007,\n", | |
" '96861': 1.6504735191328601,\n", | |
" '2624': 1.1434441327450007,\n", | |
" '1284': 1.1434441327450007,\n", | |
" '3871': 1.4520265821181928,\n", | |
" '1265': 0.4478139080251904,\n", | |
" '3873': 1.4520265821181928,\n", | |
" '1918': 0.7086237417950573,\n", | |
" '1148': 0.6853584300088639,\n", | |
" '5893': 1.1434441327450007,\n", | |
" '193': 1.1434441327450007,\n", | |
" '1281': 1.1434441327450007,\n", | |
" '3285': 1.1434441327450007,\n", | |
" '81834': 1.5015162202252141,\n", | |
" '1914': 1.1434441327450007,\n", | |
" '1917': 0.6207416742156378,\n", | |
" '48385': 1.3241577296591764,\n", | |
" '3885': 1.4520265821181928,\n", | |
" '2143': 1.2221969453454506,\n", | |
" '33166': 0.7482857613813124,\n", | |
" '3886': 1.4520265821181928,\n", | |
" '3448': 1.1434441327450007,\n", | |
" '17': 0.6170154906420956,\n", | |
" '16': 1.1434441327450007,\n", | |
" '19': 1.1434441327450007,\n", | |
" '3081': 1.1434441327450007,\n", | |
" '2126': 1.1434441327450007,\n", | |
" '225': 0.7033010137409216,\n", | |
" '866': 0.7678004977450495,\n", | |
" '2025': 1.1434441327450007,\n", | |
" '1923': 0.5927422471468842,\n", | |
" '2020': 0.6207416742156378,\n", | |
" '3083': 1.1434441327450007,\n", | |
" '2699': 0.6207416742156378,\n", | |
" '2023': 1.3241577296591764,\n", | |
" '2694': 0.8581572962021371,\n", | |
" '2028': 0.5381148082594979,\n", | |
" '2692': 0.7989947936452277,\n", | |
" '6218': 0.6717220663725004,\n", | |
" '3780': 1.4520265821181928,\n", | |
" '4823': 1.1434441327450007,\n", | |
" '3114': 0.6350696155712988,\n", | |
" '2303': 1.1434441327450007,\n", | |
" '2014': 1.2221969453454506,\n", | |
" '1289': 1.1434441327450007,\n", | |
" '3147': 0.5644054721381622,\n", | |
" '2001': 1.578703184204631,\n", | |
" '1079': 0.48958535856800084,\n", | |
" '2087': 1.2221969453454506,\n", | |
" '307': 1.1434441327450007,\n", | |
" '1225': 0.41029246720186263,\n", | |
" '4014': 0.6717220663725004,\n", | |
" '5218': 1.1434441327450007,\n", | |
" '5219': 1.1434441327450007,\n", | |
" '4167': 1.1434441327450007,\n", | |
" '3783': 1.1434441327450007,\n", | |
" '1968': 0.4804944494770918,\n", | |
" '4161': 1.1434441327450007,\n", | |
" '356': 0.35923038960692844,\n", | |
" '1964': 1.1434441327450007,\n", | |
" '1617': 0.6579289629242245,\n", | |
" '1615': 1.1434441327450007,\n", | |
" '4005': 1.1434441327450007,\n", | |
" '1962': 1.1434441327450007,\n", | |
" '4168': 1.1434441327450007,\n", | |
" '322': 1.1434441327450007,\n", | |
" '5809': 1.1434441327450007,\n", | |
" '51084': 1.6504735191328601,\n", | |
" '58295': 1.6504735191328601,\n", | |
" '3977': 1.1434441327450007,\n", | |
" '3979': 1.1434441327450007,\n", | |
" '3988': 1.0717220663725002,\n", | |
" '4321': 0.7604013116555193,\n", | |
" '329': 0.48958535856800084,\n", | |
" '2628': 0.6714819482189301,\n", | |
" '2872': 1.2221969453454506,\n", | |
" '2871': 1.1434441327450007,\n", | |
" '2877': 1.2221969453454506,\n", | |
" '5957': 1.1434441327450007,\n", | |
" '207': 1.351430456931903,\n", | |
" '208': 0.7033010137409216,\n", | |
" '3623': 1.0717220663725002,\n", | |
" '78499': 1.5015162202252141,\n", | |
" '5416': 1.1434441327450007,\n", | |
" '4995': 0.5052859752828164,\n", | |
" '3626': 1.1434441327450007,\n", | |
" '3354': 2.1241577296591765,\n", | |
" '3477': 1.1434441327450007,\n", | |
" '4144': 1.1434441327450007,\n", | |
" '70': 0.8348799611093422,\n", | |
" '2973': 1.1434441327450007,\n", | |
" '2598': 1.1434441327450007,\n", | |
" '2976': 1.1434441327450007,\n", | |
" '3358': 1.1434441327450007,\n", | |
" '3578': 0.6579289629242245,\n", | |
" '5363': 1.1434441327450007,\n", | |
" '5449': 1.1434441327450007,\n", | |
" '800': 1.1434441327450007,\n", | |
" '2334': 1.1434441327450007,\n", | |
" '5364': 1.1434441327450007,\n", | |
" '3527': 1.1434441327450007,\n", | |
" '2231': 1.1434441327450007,\n", | |
" '2232': 1.1434441327450007,\n", | |
" '4718': 0.5736008744370128,\n", | |
" '4719': 1.1434441327450007,\n", | |
" '5445': 0.6579289629242245,\n", | |
" '5444': 1.1434441327450007,\n", | |
" '1680': 0.7939442885947227,\n", | |
" '1682': 0.5959628590631483,\n", | |
" '1687': 1.578703184204631,\n", | |
" '1361': 1.1434441327450007,\n", | |
" '1689': 1.1434441327450007,\n", | |
" '96079': 1.6504735191328601,\n", | |
" '804': 1.1434441327450007,\n", | |
" '3577': 1.1434441327450007,\n", | |
" '7143': 1.2965715227626247,\n", | |
" '2959': 0.5089709102631408,\n", | |
" '4302': 1.1434441327450007,\n", | |
" '3717': 1.1434441327450007,\n", | |
" '1147': 1.1434441327450007,\n", | |
" '3499': 1.1434441327450007,\n", | |
" '1131': 1.1434441327450007,\n", | |
" '1262': 1.1434441327450007,\n", | |
" '665': 1.1434441327450007,\n", | |
" '1260': 1.1434441327450007,\n", | |
" '1267': 1.1434441327450007,\n", | |
" '2659': 1.2221969453454506,\n", | |
" '8622': 0.8581572962021371,\n", | |
" '5419': 1.1434441327450007,\n", | |
" '2094': 1.2221969453454506,\n", | |
" '5170': 1.1434441327450007,\n", | |
" '2091': 1.2221969453454506,\n", | |
" '5508': 1.1434441327450007,\n", | |
" '3286': 1.1434441327450007,\n", | |
" '5507': 1.1434441327450007,\n", | |
" '5504': 1.1434441327450007,\n", | |
" '5502': 1.1434441327450007,\n", | |
" '3504': 1.1434441327450007,\n", | |
" '5500': 1.1434441327450007,\n", | |
" '8784': 0.8755584886540395,\n", | |
" '1546': 1.1434441327450007,\n", | |
" '3128': 1.1434441327450007,\n", | |
" '4621': 1.1434441327450007,\n", | |
" '4666': 1.1434441327450007,\n", | |
" '6003': 1.1434441327450007,\n", | |
" '4679': 1.1434441327450007,\n", | |
" '1541': 1.5686021741036205,\n", | |
" '4901': 1.1434441327450007,\n", | |
" '1297': 1.1434441327450007,\n", | |
" '4675': 1.1434441327450007,\n", | |
" '4902': 1.1434441327450007,\n", | |
" '2529': 0.9532860183318239,\n", | |
" '2528': 0.7989947936452277,\n", | |
" '4903': 1.1434441327450007,\n", | |
" '543': 0.6579289629242245,\n", | |
" '540': 1.1434441327450007,\n", | |
" '2269': 1.1434441327450007,\n", | |
" '2248': 0.6207416742156378,\n", | |
" '2249': 1.5686021741036205,\n", | |
" '2174': 0.5653429343255765,\n", | |
" '1464': 1.1434441327450007,\n", | |
" '1466': 1.1434441327450007,\n", | |
" '2243': 1.1434441327450007,\n", | |
" '4007': 1.1434441327450007,\n", | |
" '994': 1.1434441327450007,\n", | |
" '2467': 0.6207416742156378,\n", | |
" '2709': 1.1434441327450007,\n", | |
" '230': 1.1434441327450007,\n", | |
" '10': 0.43297849261021115,\n", | |
" '4881': 1.1434441327450007,\n", | |
" '2707': 1.1434441327450007,\n", | |
" '2706': 0.6717220663725004,\n", | |
" '2701': 1.1434441327450007,\n", | |
" '2700': 1.1434441327450007,\n", | |
" '4886': 0.5644054721381622,\n", | |
" '2702': 0.7678004977450495,\n", | |
" '3265': 0.6207416742156378,\n", | |
" '123': 1.1434441327450007,\n", | |
" '125': 1.1434441327450007,\n", | |
" '4239': 1.1434441327450007,\n", | |
" '4238': 1.1434441327450007,\n", | |
" '3409': 1.1434441327450007,\n", | |
" '3408': 0.557104328401339,\n", | |
" '4235': 1.1434441327450007,\n", | |
" '8533': 1.2965715227626247,\n", | |
" '4232': 1.1434441327450007,\n", | |
" '14': 1.1434441327450007,\n", | |
" '4011': 0.6579289629242245,\n", | |
" '5618': 1.1434441327450007,\n", | |
" '4873': 1.1434441327450007,\n", | |
" '5477': 1.1434441327450007,\n", | |
" '2460': 1.4520265821181928,\n", | |
" '7438': 1.2965715227626247,\n", | |
" '1827': 1.1434441327450007,\n", | |
" '3882': 1.1434441327450007,\n", | |
" '5617': 1.1434441327450007,\n", | |
" '529': 1.4520265821181928,\n", | |
" '2410': 1.558940338354828,\n", | |
" '2413': 1.1434441327450007,\n", | |
" '2144': 1.2221969453454506,\n", | |
" '1388': 1.2221969453454506,\n", | |
" '4979': 1.1434441327450007,\n", | |
" '2141': 1.2221969453454506,\n", | |
" '2140': 0.5619759309585732,\n", | |
" '4974': 1.1434441327450007,\n", | |
" '1385': 1.1434441327450007,\n", | |
" '922': 1.1434441327450007,\n", | |
" '2791': 0.4712990471782412,\n", | |
" '1380': 0.4804944494770918,\n", | |
" '2797': 0.4712990471782412,\n", | |
" '926': 1.1434441327450007,\n", | |
" '4973': 0.6579289629242245,\n", | |
" '3827': 0.7356564926020086,\n", | |
" '3826': 1.1434441327450007,\n", | |
" '319': 1.387315624396018,\n", | |
" '33493': 1.2965715227626247,\n", | |
" '3823': 1.1434441327450007,\n", | |
" '3943': 1.1434441327450007,\n", | |
" '317': 0.7033010137409216,\n", | |
" '316': 0.6853584300088639,\n", | |
" '3829': 1.4520265821181928,\n", | |
" '314': 1.387315624396018,\n", | |
" '1921': 1.1434441327450007,\n", | |
" '3275': 1.1434441327450007,\n", | |
" '3272': 1.1434441327450007,\n", | |
" '3273': 1.1434441327450007,\n", | |
" '3040': 1.2221969453454506,\n", | |
" '2447': 1.1434441327450007,\n", | |
" '832': 1.1434441327450007,\n", | |
" '3476': 1.1434441327450007,\n", | |
" '5071': 1.1434441327450007,\n", | |
" '836': 1.1434441327450007,\n", | |
" '3471': 1.1434441327450007,\n", | |
" '4343': 1.1434441327450007,\n", | |
" '7361': 0.6301580826548034,\n", | |
" '4121': 1.1434441327450007,\n", | |
" '3571': 1.1434441327450007,\n", | |
" '784': 1.1434441327450007,\n", | |
" '737': 0.8396496546954597,\n", | |
" '3044': 1.1434441327450007,\n", | |
" '2344': 1.558940338354828,\n", | |
" '3': 1.3241577296591764,\n", | |
" '5074': 1.1434441327450007,\n", | |
" '91500': 1.6504735191328601,\n", | |
" '2762': 0.4651619304396733,\n", | |
" '367': 0.38638279408816883,\n", | |
" '364': 0.38638279408816883,\n", | |
" '4223': 1.1434441327450007,\n", | |
" '362': 1.5015162202252141,\n", | |
" '441': 1.1434441327450007,\n", | |
" '2668': 1.4520265821181928,\n", | |
" '2021': 1.2221969453454506,\n", | |
" '5008': 1.1434441327450007,\n", | |
" '785': 0.8348799611093422,\n", | |
" '1777': 0.5052859752828164,\n", | |
" '380': 0.48958535856800084,\n", | |
" '3318': 1.1434441327450007,\n", | |
" '382': 0.7033010137409216,\n", | |
" '923': 0.8348799611093422,\n", | |
" '95': 1.1434441327450007,\n", | |
" '1836': 1.1434441327450007,\n", | |
" '3317': 1.1434441327450007,\n", | |
" '3316': 1.1434441327450007,\n", | |
" '1645': 1.1434441327450007,\n", | |
" '1644': 1.1434441327450007,\n", | |
" '4734': 1.1434441327450007,\n", | |
" '4018': 0.6717220663725004,\n", | |
" '5463': 1.1434441327450007,\n", | |
" '4052': 1.1434441327450007,\n", | |
" '1729': 1.1434441327450007,\n", | |
" '1396': 0.6207416742156378,\n", | |
" '2324': 0.6579289629242245,\n", | |
" '1722': 1.1434441327450007,\n", | |
" '1721': 0.6360090879869086,\n", | |
" '5872': 1.1434441327450007,\n", | |
" '924': 0.6853584300088639,\n", | |
" '5878': 1.1434441327450007,\n", | |
" '2759': 1.1434441327450007,\n", | |
" '2329': 0.6579289629242245,\n", | |
" '1732': 0.7356564926020086,\n", | |
" '3617': 1.1434441327450007,\n", | |
" '3751': 0.8659965290968185,\n", | |
" '81158': 1.6504735191328601,\n", | |
" '3753': 1.3241577296591764,\n", | |
" '3752': 1.1434441327450007,\n", | |
" '3755': 1.1434441327450007,\n", | |
" '4056': 1.1434441327450007,\n", | |
" '1073': 0.48958535856800084,\n", | |
" '3005': 0.7891133707203263,\n", | |
" '3004': 1.1434441327450007,\n", | |
" '3007': 1.1434441327450007,\n", | |
" '3006': 1.1434441327450007,\n", | |
" '2194': 0.4712990471782412,\n", | |
" '3000': 1.1434441327450007,\n", | |
" '3168': 1.1434441327450007,\n", | |
" '3169': 1.2221969453454506,\n", | |
" '252': 1.1434441327450007,\n", | |
" '253': 0.5781569599802863,\n", | |
" '4639': 1.1434441327450007,\n", | |
" '4638': 1.1434441327450007,\n", | |
" '3008': 1.1434441327450007,\n", | |
" '3160': 1.1434441327450007,\n", | |
" '4372': 1.1434441327450007,\n", | |
" '1408': 0.9388731232027939,\n", | |
" '2406': 0.558755319042309,\n", | |
" '1423': 1.558940338354828,\n", | |
" '88125': 1.5015162202252141,\n", | |
" '7090': 1.578703184204631,\n", | |
" '2407': 1.1434441327450007,\n", | |
" '2560': 1.1434441327450007,\n", | |
" '1580': 0.5445467370587911,\n", | |
" '7153': 0.7144246133510591,\n", | |
" '3361': 1.1434441327450007,\n", | |
" '3362': 1.1434441327450007,\n", | |
" '88129': 1.6504735191328601,\n", | |
" '733': 0.7939442885947227,\n", | |
" '2405': 1.1434441327450007,\n", | |
" '735': 1.558940338354828,\n", | |
" '5481': 1.1434441327450007,\n", | |
" '64614': 1.5015162202252141,\n", | |
" '736': 0.5226856438054605,\n", | |
" '1032': 0.7750328989022337,\n", | |
" '2019': 0.7989947936452277,\n", | |
" '1030': 1.2221969453454506,\n", | |
" '1031': 1.2221969453454506,\n", | |
" '1036': 0.4758846710999138,\n", | |
" '500': 0.45846868868864243,\n", | |
" '2018': 0.6207416742156378,\n", | |
" '2428': 1.1434441327450007,\n", | |
" '6271': 1.1434441327450007,\n", | |
" '4271': 1.1434441327450007,\n", | |
" '1358': 0.5299260867068,\n", | |
" '468': 1.387315624396018,\n", | |
" '1214': 0.6207416742156378,\n", | |
" '2580': 1.1434441327450007,\n", | |
" '1353': 1.351430456931903,\n", | |
" '464': 1.2221969453454506,\n", | |
" '1218': 1.1434441327450007,\n", | |
" '1219': 0.4712990471782412,\n", | |
" '2424': 0.6717220663725004,\n", | |
" '786': 0.6853584300088639,\n", | |
" '1200': 0.558755319042309,\n", | |
" '1860': 1.1434441327450007,\n", | |
" '4378': 1.1434441327450007,\n", | |
" '1862': 1.1434441327450007,\n", | |
" '168': 1.387315624396018,\n", | |
" '169': 1.6504735191328601,\n", | |
" '5553': 1.1434441327450007,\n", | |
" '4447': 0.6717220663725004,\n", | |
" '80489': 1.6504735191328601,\n", | |
" '780': 0.6853584300088639,\n", | |
" '4370': 1.1434441327450007,\n", | |
" '160': 1.1434441327450007,\n", | |
" '161': 0.7033010137409216,\n", | |
" '162': 1.1434441327450007,\n", | |
" '163': 1.1434441327450007,\n", | |
" '3863': 0.7356564926020086,\n", | |
" '282': 1.2965715227626247,\n", | |
" '3770': 1.4520265821181928,\n", | |
" '1177': 1.5686021741036205,\n", | |
" '5418': 1.1434441327450007,\n", | |
" '3683': 1.1434441327450007,\n", | |
" '6296': 1.1434441327450007,\n", | |
" '3639': 1.1434441327450007,\n", | |
" '2890': 0.6775907319953689,\n", | |
" '50068': 1.516314592404274,\n", | |
" '5577': 1.1434441327450007,\n", | |
" '2109': 1.2221969453454506,\n", | |
" '2108': 0.7891133707203263,\n", | |
" '6059': 1.1434441327450007,\n", | |
" '1100': 1.1434441327450007,\n", | |
" '1101': 0.7891133707203263,\n", | |
" '2102': 1.2221969453454506,\n", | |
" '587': 0.5946535060159601,\n", | |
" '2100': 0.4712990471782412,\n", | |
" '1459': 1.558940338354828,\n", | |
" '1513': 1.1434441327450007,\n", | |
" '2513': 1.516314592404274,\n", | |
" '2734': 1.2221969453454506,\n", | |
" '1094': 1.1434441327450007,\n", | |
" '3869': 1.4520265821181928,\n", | |
" '3868': 1.1434441327450007,\n", | |
" '5110': 1.1434441327450007,\n", | |
" '5298': 1.1434441327450007,\n", | |
" '5299': 0.6717220663725004,\n", | |
" '5296': 1.1434441327450007,\n", | |
" '1649': 1.1434441327450007,\n", | |
" '3861': 0.7356564926020086,\n", | |
" '919': 0.4547104597493282,\n", | |
" '5293': 1.1434441327450007,\n", | |
" '3865': 1.4520265821181928,\n", | |
" '5291': 1.1434441327450007,\n", | |
" '5528': 1.1434441327450007,\n", | |
" '1097': 0.48958535856800084,\n", | |
" '3535': 1.1434441327450007,\n", | |
" '3534': 1.1434441327450007,\n", | |
" '3536': 1.1434441327450007,\n", | |
" '3538': 1.1434441327450007,\n", | |
" '4678': 1.1434441327450007,\n", | |
" '5459': 1.1434441327450007,\n", | |
" '4993': 0.5644054721381622,\n", | |
" '1816': 1.1434441327450007,\n", | |
" '4055': 1.1434441327450007,\n", | |
" '1810': 1.1434441327450007,\n", | |
" '3129': 1.1434441327450007,\n", | |
" '5391': 1.1434441327450007,\n", | |
" '1183': 1.1434441327450007,\n", | |
" '1387': 0.43544149849843505,\n", | |
" '112': 0.48958535856800084,\n", | |
" '4958': 1.1434441327450007,\n", | |
" '4369': 1.1434441327450007,\n", | |
" '1208': 0.6207416742156378,\n", | |
" '3185': 1.1434441327450007,\n", | |
" '91548': 1.6504735191328601,\n", | |
" '2034': 1.2221969453454506,\n", | |
" '4848': 1.1434441327450007,\n", | |
" '3181': 1.1434441327450007,\n", | |
" '3182': 1.1434441327450007,\n", | |
" '2005': 0.6207416742156378,\n", | |
" '4844': 1.1434441327450007,\n", | |
" '466': 1.1434441327450007,\n", | |
" '3825': 0.7356564926020086,\n", | |
" '2038': 2.1241577296591765,\n", | |
" '3916': 1.2965715227626247,\n", | |
" '2064': 0.6207416742156378,\n", | |
" '647': 1.1434441327450007,\n", | |
" '3911': 1.1434441327450007,\n", | |
" '3910': 1.1434441327450007,\n", | |
" '3949': 0.7678004977450495,\n", | |
" '899': 1.1434441327450007,\n", | |
" '1834': 1.1434441327450007,\n", | |
" '410': 0.7426774200411462,\n", | |
" '5458': 1.1434441327450007,\n", | |
" '1248': 1.1434441327450007,\n", | |
" '2167': 1.1434441327450007,\n", | |
" '1805': 0.6207416742156378,\n", | |
" '1608': 1.1434441327450007,\n", | |
" '4019': 0.6579289629242245,\n", | |
" '6373': 0.6717220663725004,\n", | |
" '6281': 1.1434441327450007,\n", | |
" '4030': 1.1434441327450007,\n", | |
" '3225': 1.1434441327450007,\n", | |
" '1393': 0.5052859752828164,\n", | |
" '4158': 1.1434441327450007,\n", | |
" '4010': 1.1434441327450007,\n", | |
" '4017': 1.1434441327450007,\n", | |
" '4015': 1.1434441327450007,\n", | |
" '3396': 1.5015162202252141,\n", | |
" '357': 0.43297849261021115,\n", | |
" '1616': 1.1434441327450007,\n", | |
" '355': 0.5876245742542754,\n", | |
" '353': 1.1434441327450007,\n", | |
" '3989': 1.1434441327450007,\n", | |
" '7502': 1.5015162202252141,\n", | |
" '350': 1.387315624396018,\n", | |
" '3984': 1.1434441327450007,\n", | |
" '802': 1.1434441327450007,\n", | |
" '3986': 1.0717220663725002,\n", | |
" '3987': 1.1434441327450007,\n", | |
" '3981': 1.1434441327450007,\n", | |
" '805': 1.2965715227626247,\n", | |
" '3983': 1.1434441327450007,\n", | |
" '216': 1.1434441327450007,\n", | |
" '2617': 1.1434441327450007,\n", | |
" '214': 1.1434441327450007,\n", | |
" '1967': 1.2221969453454506,\n", | |
" '4037': 1.1434441327450007,\n", | |
" '5064': 1.2965715227626247,\n", | |
" '762': 1.1434441327450007,\n", | |
" '158': 1.578703184204631,\n", | |
" '4036': 1.1434441327450007,\n", | |
" '1784': 0.5959628590631483,\n", | |
" '2840': 0.7891133707203263,\n", | |
" '1961': 0.3982511264201522,\n", | |
" '3320': 1.1434441327450007,\n", | |
" '920': 1.1434441327450007,\n", | |
" '3324': 1.4520265821181928,\n", | |
" '4006': 0.6207416742156378,\n", | |
" '6879': 1.2965715227626247,\n", | |
" '3328': 1.1434441327450007,\n", | |
" '339': 0.7033010137409216,\n", | |
" ...}" | |
] | |
}, | |
"execution_count": 69, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"User_unrate_movie_score['1']" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 排序\n", | |
"计算出所有的用户未观看电影的喜欢程度降序选取topN作为推荐结果输出" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 73, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"result=defaultdict(list)\n", | |
"for dd in User_unrate_movie_score:\n", | |
" sortlist=sorted(User_unrate_movie_score[dd].items(),key=lambda x :x[1],reverse=True)\n", | |
" for x in sortlist[:5]:\n", | |
" result[dd].append(x[0])\n", | |
" " | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 74, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"defaultdict(list,\n", | |
" {'1': ['2861', '3354', '2038', '2394', '2724'],\n", | |
" '10': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '11': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '12': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '13': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '14': ['1061', '1172', '1343', '1029', '79132'],\n", | |
" '15': ['1343', '1061', '2394', '1029', '2720'],\n", | |
" '2': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '3': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '4': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '5': ['1061', '2861', '1172', '1343', '3354'],\n", | |
" '6': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '7': ['1061', '2861', '1172', '3354', '1343'],\n", | |
" '8': ['1061', '2861', '1172', '1343', '3354'],\n", | |
" '9': ['1061', '2861', '1172', '3354', '1343']})" | |
] | |
}, | |
"execution_count": 74, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"result" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 2", | |
"language": "python", | |
"name": "python2" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.13" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment