« Return to Thread: Name of variables at FPGrowth

Re: Name of variables at FPGrowth

by Atilla Ozgur :: Rate this Message:

| View in Thread

You are printing out an object in sys out. In java if there is no toString implementation it will use default one.
That is what you are getting. Default object toString method.

Add toString method to your main.FPGrowth$FrequentItemSets. You will see better explanation.
Eclipse has good toString generator if you are using it.

I do not have eclipse right now but source - > generate toString





On Fri, May 18, 2012 at 7:28 AM, elisya <restuelisya@...> wrote:

hello, I have learned and understand the concept and theory of FPGrowth, but
I'm too confused when I try to understand its implementation (code) in weka.
actually, I need to know what kind of output from every variable of FPGrowth
in weka for my thesis matters. but sometimes, when I did sys.out.println in
java program for some variables, the output is not what I expect.

for example, I did it for "largeItemSets" in order to know which frequent
patterns has to be mined, why this output is come out?

main.FPGrowth$FrequentItemSets@75e4fc
main.FPGrowth$FrequentItemSets@c62c8
main.FPGrowth$FrequentItemSets@12940b3
main.FPGrowth$FrequentItemSets@156b6b9
main.FPGrowth$FrequentItemSets@1f66cff
main.FPGrowth$FrequentItemSets@16de49c
main.FPGrowth$FrequentItemSets@1bbf1ca
main.FPGrowth$FrequentItemSets@1ff0dde
main.FPGrowth$FrequentItemSets@1901437
main.FPGrowth$FrequentItemSets@1f6226
main.FPGrowth$FrequentItemSets@64ea66
main.FPGrowth$FrequentItemSets@158f9d3

anybody know what it means? which name of variable that consists of frequent
pattern exactly?

I use this data, fill 0.2 for lowerminsup and 0.9 for confidence metric.

@RELATION user1
@ATTRIBUTE unknown {0,1}
@ATTRIBUTE action {0,1}
@ATTRIBUTE adventure {0,1}
@ATTRIBUTE animation {0,1}
@ATTRIBUTE childrens {0,1}
@ATTRIBUTE comedy {0,1}
@ATTRIBUTE crime {0,1}
@ATTRIBUTE documentary {0,1}
@ATTRIBUTE drama {0,1}
@ATTRIBUTE fantasy {0,1}
@ATTRIBUTE film-noir {0,1}
@ATTRIBUTE horror {0,1}
@ATTRIBUTE musical {0,1}
@ATTRIBUTE mystery {0,1}
@ATTRIBUTE romance {0,1}
@ATTRIBUTE sci-fi {0,1}
@ATTRIBUTE thriller {0,1}
@ATTRIBUTE war {0,1}
@ATTRIBUTE western {0,1}
@DATA
0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0
0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0
0,1,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0

thanks for your help.
--
View this message in context: http://old.nabble.com/Name-of-variables-at-FPGrowth-tp33868416p33868416.html
Sent from the WEKA mailing list archive at Nabble.com.



_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html




--
Heinlein - Specialization is for Insects

A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.

-Robert A. Heinlein


_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

 « Return to Thread: Name of variables at FPGrowth