Data Mining basics: Find the relevant project-level algorithm in the data, and mine data-level data.

Source: Internet
Author: User

Data Mining basics: Find the relevant project-level algorithm in the data, and mine data-level data.

Ck: Candidate itemset of size kLk: frequent itemset of size kL1 = {frequent items}; for (k = 1; Lk! =; K ++) do begin Ck + 1 = candidates generated from Lk; for each transaction t in database do increment the count of all candidates in Ck + 1 that are contained in t Lk + 1 = candidates in Ck + 1 with min_support endreturn k Lk;
 

SQL application

Suppose the items in Lk-1 are listed in an orderStep 1: self-joining Lk-1 insert into Ckselect p. item1, p. item2 ,..., P. itemk-1, q. itemk-1from Lk-1 p, Lk-1 qwhere p. item1 = q. item1 ,..., P. itemk-2 = q. itemk-2, p. itemk-1. itemk-1Step 2: pruningforall itemsets c in Ck doforall (k-1)-subsets s of c doif (s is not in Lk-1) then delete c from Ck


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.