- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Locality-Sensitive Hashing.ppt
Locality-Sensitive Hashing Basic Technique Hamming-LSH Applications Finding Similar Pairs Suppose we have in main memory data representing a large number of objects. May be the objects themselves (e.g., summaries of faces). May be signatures as in minhashing. We want to compare each to each, finding those pairs that are sufficiently similar. Candidate Generation From Minhash Signatures Pick a similarity threshold s, a fraction 1. A pair of columns c and d is a candidate pair if their signatures agree in at least fraction s of the rows. I.e., M (i, c ) = M (i, d ) for at least fraction s values of i. Candidate Generation --- (2) For images, a pair of vectors is a candidate if they differ by at most a small threshold t in at least s % of the components. For entity records, a pair is a candidate if the sum of similarity scores of corresponding components exceeds a threshold. The Problem with Checking for Candidates While the signatures of all columns may fit in main memory, comparing the signatures of all pairs of columns is quadratic in the number of columns. Example: 106 columns implies 5*1011 comparisons. At 1 microsecond/comparison: 6 days. Solutions Divide-Compute-Merge (DCM) uses external sorting, merging. Locality-Sensitive Hashing (LSH) can be carried out in main memory, but admits some false negatives. Hamming LSH --- a variant LSH method. Divide-Compute-Merge Designed for “shingles” and docs. At each stage, divide data into batches that fit in main memory. Operate on individual batches and write out partial results to disk. Merge partial results from disk. DCM Steps DCM Summary Start with the pairs shingleId, docId. Sort by shingleId. In a sequential scan, generate triplets docId1, docId2, 1 for pairs of docs that share a shingle. Sort on docId1, docId2. Merge triplets with common docIds to generate triplets of the form docId1,docId2,count. Output document pairs with count threshold. Some Optimizations “Invert and Pair” is the most expensive ste
您可能关注的文档
- Global Economic Crisis and Trade Policy.ppt
- Global Pro-Poor Fisheries and Aquaculture Development.ppt
- Heat Sink Selection.ppt
- How Much of DSRC is Available for Non-Safety Use.ppt
- Human Factors in Prescription Medication Management.ppt
- Hydrogen Bonding.ppt
- Hydrogen Economy.ppt
- ID Case ConferenceJanuary 9, 2008.ppt
- Impact of Adjusted Entriesby Group 1.ppt
- Imported Tuna and Impact to Hawaii Fish Market.ppt
文档评论(0)