[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wekalist
Subject:    Re: [Wekalist] Displaying frequent itemsets in a combobox or list
From:       Peter Reutemann <fracpete () waikato ! ac ! nz>
Date:       2006-12-21 19:32:20
Message-ID: 458AE144.4030902 () waikato ! ac ! nz
[Download RAW message or body]

> Can anybody suggest how can I display frequent itemsets or rules in a Jlist or \
> combo box? 
> Currently I do this-
> 
> JList associationRulesList=new JList(myAnalyzer.get_m_allTheRules());
> 
> where 
> myAnalyzer is object
> and 
> get_m_allTheRules() is the method that retrieves all the rules.
> 
> I am able to see the output on Jbuilder console or message panel, but when I run \
> this code what I see on the output user interface is a vector/reference. How can I \
> display the list?

Implement a toString() method in the weka.core.FastVector class.

HTH

Cheers, Peter
-- 
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Wekalist@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic