No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
supportData = {('nas','fat'): 0.5, ('nas'): 1.0, ('fat'):0.6, ('van'):0.72, ('jos'):0.55,('van','jos'):0.10} L = [('nas','fat'),('van','jos')] for freqSet in L: H = [''.join(list(i)) for i in freqSet] prunedH = [] #create new list to return for conseq in H: freqsetlist = list(freqSet) freqsetlist.remove(conseq) conf = supportData[freqSet]/supportData[tuple(freqsetlist)[0]] if conf >= 0.5: print freqsetlist,'-->',conseq,'conf:',conf When I … |
|
My program basically asks the users for a value (s) then calculates and displays the First, Middle, Last, and Final. The users have a choice to enter the value either in integer, real or character. If the user enters it in real or character, it will be converted into integer … |
|
I want someone to help me write a program to read the integer elements of two arrays A and B of different size from the user. And use link list to save this elements instead of arrays. And then do the following to the link lists given: 1. Sort link … |