SlideShare a Scribd company logo
1 of 4
Download to read offline
SC561 Machine
Learning
SAMPATH DEEGALLA
07.01.2024
Mining association rules
 Naïve method for finding association
rules:
 Use separate-and-conquer method
 Treat every possible combination of attribute
values as a separate class
 Two problems:
 Computational complexity
 Resulting number of rules
 But: we can look for high support rules
directly!
Item sets
 Support: number of instances correctly covered
by association rule
 The same as the number of instances covered by all tests in the rule
(LHS and RHS!)
 Item: one test/attribute-value pair
 Item set : all items occurring in a rule
 Goal: only rules that exceed pre-defined support
 Do it by finding all item sets with the given minimum support and
generating rules from them!
Weather Data
4
Item sets for weather data

 In total: 12 one-item sets, 47 two-item sets, 39
three-item sets, 6 four-item sets and 0 five-item
sets (with minimum support of two)
5
Generating rules from an item
set
 Once all item sets with minimum support have
been generated, we can turn them into rules
 Example:
 Seven (2N-1) potential rules:
6
Generating rules from an item
set
 Once all item sets with minimum support have
been generated, we can turn them into rules
 Example:
 Seven (2N-1) potential rules:
7
Rules for weather data
 Rules with support > 1 and confidence = 100%:
 In total:
 3 rules with support four
 5 with support three
 50 with support two
8
Support = coverage
Confidence = accuracy
Example rules from the same set
 Item set:
 Resulting rules (all with 100% confidence):
 due to the following “frequent” item sets:
9
Generating item sets
efficiently
 How can we efficiently find all frequent item
sets?
 Finding one-item sets easy
 Idea: use one-item sets to generate two-item
sets, two-item sets to generate three-item sets,
…
 If (A B) is frequent item set, then (A) and (B) have to
be frequent item sets as well!
 In general: if X is frequent k-item set, then all (k-1)-
item subsets of X are also frequent
 Compute k-item set by merging (k-1)-item sets
10
Example
 Given: five three-item sets
 (A B C), (A B D), (A C D), (A C E), (B C D)
 For example A could be outlook = sunny
 Candidate four-item sets:
 (A B C D) OK because of (A C D) (B C D)
 (A C D E) Not OK because of (C D E)
 Final check by counting instances in dataset!
 (k –1)-item sets are stored in hash table
11
Generating rules efficiently
 We are looking for all high-confidence rules
 Support of antecedent obtained from hash
table
 But: brute-force method is (2N-1)
 Better way: building (c + 1)-consequent
rules from c-consequent ones
 Observation: (c + 1)-consequent rule can only
hold if all corresponding c-consequent rules also
hold
 Resulting algorithm similar to procedure for
large item sets
12
Example
 1-consequent rules:
 Corresponding 2-consequent rule:
 Final check of antecedent against hash
table!
13
Association rules: discussion
 Above method makes one pass through
the data for each different size item set
 Other possibility: generate (k+2)-item sets just
after (k+1)-item sets have been generated
 Result: more (k+2)-item sets than necessary will
be considered but less passes through the data
 Makes sense if data too large for main memory
 Practical issue: generating a certain
number of rules (e.g. by incrementally
reducing min. support)
14

More Related Content

Similar to SC561_Machine Learning_Nov2023_Handout6.pdf

03-data-structures.pdf
03-data-structures.pdf03-data-structures.pdf
03-data-structures.pdfNash229987
 
Dwh lecture slides-week15
Dwh lecture slides-week15Dwh lecture slides-week15
Dwh lecture slides-week15Shani729
 
lecture 11
lecture 11lecture 11
lecture 11sajinsc
 
introduction_dst.pptx
introduction_dst.pptxintroduction_dst.pptx
introduction_dst.pptxHammadTariq51
 
OverviewUsing the C-struct feature, design, implement and .docx
OverviewUsing the C-struct feature, design, implement and .docxOverviewUsing the C-struct feature, design, implement and .docx
OverviewUsing the C-struct feature, design, implement and .docxalfred4lewis58146
 
0-Slot18-19-20-ContiguousStorage.pdf
0-Slot18-19-20-ContiguousStorage.pdf0-Slot18-19-20-ContiguousStorage.pdf
0-Slot18-19-20-ContiguousStorage.pdfssusere19c741
 
1.11.association mining 3
1.11.association mining 31.11.association mining 3
1.11.association mining 3Krish_ver2
 
Mining from Open Answers in Questionnaire Data
Mining from Open Answers in Questionnaire DataMining from Open Answers in Questionnaire Data
Mining from Open Answers in Questionnaire Datafeiwin
 
5.4 randomized datastructures
5.4 randomized datastructures5.4 randomized datastructures
5.4 randomized datastructuresKrish_ver2
 
5.4 randomized datastructures
5.4 randomized datastructures5.4 randomized datastructures
5.4 randomized datastructuresKrish_ver2
 
3.2 partitioning methods
3.2 partitioning methods3.2 partitioning methods
3.2 partitioning methodsKrish_ver2
 

Similar to SC561_Machine Learning_Nov2023_Handout6.pdf (20)

03-data-structures.pdf
03-data-structures.pdf03-data-structures.pdf
03-data-structures.pdf
 
05-stack_queue.ppt
05-stack_queue.ppt05-stack_queue.ppt
05-stack_queue.ppt
 
Dwh lecture slides-week15
Dwh lecture slides-week15Dwh lecture slides-week15
Dwh lecture slides-week15
 
611+tutorial
611+tutorial611+tutorial
611+tutorial
 
lecture 11
lecture 11lecture 11
lecture 11
 
introduction_dst.pptx
introduction_dst.pptxintroduction_dst.pptx
introduction_dst.pptx
 
OverviewUsing the C-struct feature, design, implement and .docx
OverviewUsing the C-struct feature, design, implement and .docxOverviewUsing the C-struct feature, design, implement and .docx
OverviewUsing the C-struct feature, design, implement and .docx
 
Collections
CollectionsCollections
Collections
 
Classification Continued
Classification ContinuedClassification Continued
Classification Continued
 
Classification Continued
Classification ContinuedClassification Continued
Classification Continued
 
Unit 4.pptx
Unit 4.pptxUnit 4.pptx
Unit 4.pptx
 
Data Mining Lecture_4.pptx
Data Mining Lecture_4.pptxData Mining Lecture_4.pptx
Data Mining Lecture_4.pptx
 
0-Slot18-19-20-ContiguousStorage.pdf
0-Slot18-19-20-ContiguousStorage.pdf0-Slot18-19-20-ContiguousStorage.pdf
0-Slot18-19-20-ContiguousStorage.pdf
 
1.11.association mining 3
1.11.association mining 31.11.association mining 3
1.11.association mining 3
 
9780324782011_PPT_ch09.ppt
9780324782011_PPT_ch09.ppt9780324782011_PPT_ch09.ppt
9780324782011_PPT_ch09.ppt
 
Mining from Open Answers in Questionnaire Data
Mining from Open Answers in Questionnaire DataMining from Open Answers in Questionnaire Data
Mining from Open Answers in Questionnaire Data
 
5.4 randomized datastructures
5.4 randomized datastructures5.4 randomized datastructures
5.4 randomized datastructures
 
5.4 randomized datastructures
5.4 randomized datastructures5.4 randomized datastructures
5.4 randomized datastructures
 
3.2 partitioning methods
3.2 partitioning methods3.2 partitioning methods
3.2 partitioning methods
 
Blinkdb
BlinkdbBlinkdb
Blinkdb
 

More from Nusaike Mufthie

2.0 Culture_National Culture and Organizations.pptx
2.0 Culture_National Culture and Organizations.pptx2.0 Culture_National Culture and Organizations.pptx
2.0 Culture_National Culture and Organizations.pptxNusaike Mufthie
 
Feasibility Study - Management PPT Slides
Feasibility Study  - Management PPT SlidesFeasibility Study  - Management PPT Slides
Feasibility Study - Management PPT SlidesNusaike Mufthie
 
Sales-Force-management-Chapter-4-Sales-Force-Management
Sales-Force-management-Chapter-4-Sales-Force-ManagementSales-Force-management-Chapter-4-Sales-Force-Management
Sales-Force-management-Chapter-4-Sales-Force-ManagementNusaike Mufthie
 
HR Strategy and Its Impact ob Business Strategy
HR Strategy and Its Impact ob Business StrategyHR Strategy and Its Impact ob Business Strategy
HR Strategy and Its Impact ob Business StrategyNusaike Mufthie
 
The Strategic Role of Human Resource Management
The Strategic Role of Human Resource ManagementThe Strategic Role of Human Resource Management
The Strategic Role of Human Resource ManagementNusaike Mufthie
 
Human Resource Management Business Strategy
Human Resource Management Business StrategyHuman Resource Management Business Strategy
Human Resource Management Business StrategyNusaike Mufthie
 
FEASIBILITY STUDY: Aspects of Operating a Business
FEASIBILITY STUDY: Aspects of Operating a BusinessFEASIBILITY STUDY: Aspects of Operating a Business
FEASIBILITY STUDY: Aspects of Operating a BusinessNusaike Mufthie
 
Flexible Working and Work Life Balance
Flexible Working and Work Life BalanceFlexible Working and Work Life Balance
Flexible Working and Work Life BalanceNusaike Mufthie
 
Problem Solving and Making Decisions at Business Organizations
Problem Solving and Making Decisions at Business OrganizationsProblem Solving and Making Decisions at Business Organizations
Problem Solving and Making Decisions at Business OrganizationsNusaike Mufthie
 

More from Nusaike Mufthie (13)

2.0 Culture_National Culture and Organizations.pptx
2.0 Culture_National Culture and Organizations.pptx2.0 Culture_National Culture and Organizations.pptx
2.0 Culture_National Culture and Organizations.pptx
 
Feasibility Study - Management PPT Slides
Feasibility Study  - Management PPT SlidesFeasibility Study  - Management PPT Slides
Feasibility Study - Management PPT Slides
 
Sales-Force-management-Chapter-4-Sales-Force-Management
Sales-Force-management-Chapter-4-Sales-Force-ManagementSales-Force-management-Chapter-4-Sales-Force-Management
Sales-Force-management-Chapter-4-Sales-Force-Management
 
HR Strategy and Its Impact ob Business Strategy
HR Strategy and Its Impact ob Business StrategyHR Strategy and Its Impact ob Business Strategy
HR Strategy and Its Impact ob Business Strategy
 
The Strategic Role of Human Resource Management
The Strategic Role of Human Resource ManagementThe Strategic Role of Human Resource Management
The Strategic Role of Human Resource Management
 
Human Resource Management Business Strategy
Human Resource Management Business StrategyHuman Resource Management Business Strategy
Human Resource Management Business Strategy
 
FEASIBILITY STUDY: Aspects of Operating a Business
FEASIBILITY STUDY: Aspects of Operating a BusinessFEASIBILITY STUDY: Aspects of Operating a Business
FEASIBILITY STUDY: Aspects of Operating a Business
 
CH03.ppt
CH03.pptCH03.ppt
CH03.ppt
 
Flexible Working and Work Life Balance
Flexible Working and Work Life BalanceFlexible Working and Work Life Balance
Flexible Working and Work Life Balance
 
chapt-5-.ppt
chapt-5-.pptchapt-5-.ppt
chapt-5-.ppt
 
06933_ch15.ppt
06933_ch15.ppt06933_ch15.ppt
06933_ch15.ppt
 
Deadlock (1).ppt
Deadlock (1).pptDeadlock (1).ppt
Deadlock (1).ppt
 
Problem Solving and Making Decisions at Business Organizations
Problem Solving and Making Decisions at Business OrganizationsProblem Solving and Making Decisions at Business Organizations
Problem Solving and Making Decisions at Business Organizations
 

Recently uploaded

Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.soniya singh
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdfMatthew Sinclair
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...Neha Pandey
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...nilamkumrai
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLimonikaupta
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445ruhi
 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceEscorts Call Girls
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls DubaiEscorts Call Girls
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceDelhi Call girls
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)Delhi Call girls
 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...SUHANI PANDEY
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdfMatthew Sinclair
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...singhpriety023
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableSeo
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...SUHANI PANDEY
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...SUHANI PANDEY
 

Recently uploaded (20)

Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
 

SC561_Machine Learning_Nov2023_Handout6.pdf

  • 1. SC561 Machine Learning SAMPATH DEEGALLA 07.01.2024 Mining association rules  Naïve method for finding association rules:  Use separate-and-conquer method  Treat every possible combination of attribute values as a separate class  Two problems:  Computational complexity  Resulting number of rules  But: we can look for high support rules directly! Item sets  Support: number of instances correctly covered by association rule  The same as the number of instances covered by all tests in the rule (LHS and RHS!)  Item: one test/attribute-value pair  Item set : all items occurring in a rule  Goal: only rules that exceed pre-defined support  Do it by finding all item sets with the given minimum support and generating rules from them! Weather Data 4
  • 2. Item sets for weather data   In total: 12 one-item sets, 47 two-item sets, 39 three-item sets, 6 four-item sets and 0 five-item sets (with minimum support of two) 5 Generating rules from an item set  Once all item sets with minimum support have been generated, we can turn them into rules  Example:  Seven (2N-1) potential rules: 6 Generating rules from an item set  Once all item sets with minimum support have been generated, we can turn them into rules  Example:  Seven (2N-1) potential rules: 7 Rules for weather data  Rules with support > 1 and confidence = 100%:  In total:  3 rules with support four  5 with support three  50 with support two 8 Support = coverage Confidence = accuracy
  • 3. Example rules from the same set  Item set:  Resulting rules (all with 100% confidence):  due to the following “frequent” item sets: 9 Generating item sets efficiently  How can we efficiently find all frequent item sets?  Finding one-item sets easy  Idea: use one-item sets to generate two-item sets, two-item sets to generate three-item sets, …  If (A B) is frequent item set, then (A) and (B) have to be frequent item sets as well!  In general: if X is frequent k-item set, then all (k-1)- item subsets of X are also frequent  Compute k-item set by merging (k-1)-item sets 10 Example  Given: five three-item sets  (A B C), (A B D), (A C D), (A C E), (B C D)  For example A could be outlook = sunny  Candidate four-item sets:  (A B C D) OK because of (A C D) (B C D)  (A C D E) Not OK because of (C D E)  Final check by counting instances in dataset!  (k –1)-item sets are stored in hash table 11 Generating rules efficiently  We are looking for all high-confidence rules  Support of antecedent obtained from hash table  But: brute-force method is (2N-1)  Better way: building (c + 1)-consequent rules from c-consequent ones  Observation: (c + 1)-consequent rule can only hold if all corresponding c-consequent rules also hold  Resulting algorithm similar to procedure for large item sets 12
  • 4. Example  1-consequent rules:  Corresponding 2-consequent rule:  Final check of antecedent against hash table! 13 Association rules: discussion  Above method makes one pass through the data for each different size item set  Other possibility: generate (k+2)-item sets just after (k+1)-item sets have been generated  Result: more (k+2)-item sets than necessary will be considered but less passes through the data  Makes sense if data too large for main memory  Practical issue: generating a certain number of rules (e.g. by incrementally reducing min. support) 14