<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-435</id>
	<title>Nabble - WEKA</title>
	<updated>2009-11-25T19:32:42Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/WEKA-f435.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WEKA-f435.html" />
	<subtitle type="html">WEKA machine learning software discussion</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26523917</id>
	<title>dimensionality reduction using PrincipalComponents</title>
	<published>2009-11-25T19:32:42Z</published>
	<updated>2009-11-25T19:32:42Z</updated>
	<author>
		<name>David Manz (Давид Манз)</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am new to Weka, and I am trying to learn how to use it. &amp;nbsp;I see in the
&lt;br&gt;documentation of PrincipalComponents.java:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Performs a principal components analysis and transformation of the data.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Use in conjunction with a Ranker search. Dimensionality reduction is
&lt;br&gt;&amp;nbsp; &amp;nbsp;accomplished by choosing enough eigenvectors to account for some
&lt;br&gt;&amp;nbsp; &amp;nbsp;percentage of the variance in the original data---default 0.95 (95%).
&lt;br&gt;&amp;nbsp; &amp;nbsp;Attribute noise can be filtered by transforming to the PC space,
&lt;br&gt;&amp;nbsp; &amp;nbsp;eliminating some of the worst eigenvectors, and then transforming back
&lt;br&gt;&amp;nbsp; &amp;nbsp;to the original space.
&lt;br&gt;&lt;br&gt;Great! &amp;nbsp;I want to try to do this. &amp;nbsp;I wrote a program to attempt this on a small
&lt;br&gt;geometric example (code attached). &amp;nbsp;I create a training set that consists of
&lt;br&gt;two (x, y) pairs representing the line y=2x. &amp;nbsp;I build my principal components.
&lt;br&gt;I then transform a point from a test set into the principal components space
&lt;br&gt;and then back. &amp;nbsp;If I use the point (2, 4), I would expect to get exactly the
&lt;br&gt;same point back. &amp;nbsp;If I were to use the point (2, 4.5), I would expect it to be
&lt;br&gt;projected onto the line y=2x (i.e. into the principal components space), and
&lt;br&gt;then transformed back into the original coordinate space yielding a point
&lt;br&gt;somewhere on the line y=2x between (2, 4) and (2.25, 4.5). &amp;nbsp;This is not what
&lt;br&gt;is happening. &amp;nbsp;(2, 4) is getting transformed to (3, 3). &amp;nbsp;I also
&lt;br&gt;noticed that the
&lt;br&gt;eigenvectors for any 2x2 matrix are (+/-.7072, +/-.7072) regardless of the
&lt;br&gt;elements in the matrix. &amp;nbsp;Is that correct?
&lt;br&gt;&lt;br&gt;Does my code need to be modified, or is it my expectations that need to be
&lt;br&gt;modified?
&lt;br&gt;&lt;br&gt;Thanks in advance!
&lt;br&gt;&lt;br&gt;David
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523917&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;Main.java&lt;/strong&gt; (2K) &lt;a href=&quot;http://old.nabble.com/attachment/26523917/0/Main.java&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dimensionality-reduction-using-PrincipalComponents-tp26523917p26523917.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523333</id>
	<title>Attribute Selection</title>
	<published>2009-11-25T17:57:11Z</published>
	<updated>2009-11-25T17:57:11Z</updated>
	<author>
		<name>Aminu</name>
	</author>
	<content type="html">Hi All, 
I have a datset which is too big for to use directly in Weka and i would like to choose say a subset of 200 from my dataset. How can i use weka or excel to select the best 200 from my dataset of over a thousand. Thanks </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Attribute-Selection-tp26523333p26523333.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523041</id>
	<title>Re: Principal Component Analysis</title>
	<published>2009-11-25T17:11:35Z</published>
	<updated>2009-11-25T17:11:35Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; I have to two different data sets, one for training and one for test,
&lt;br&gt;&amp;gt; concerning with a classification problem.
&lt;br&gt;&amp;gt; I plan to use PCA for reducing feature dimensions.
&lt;br&gt;&amp;gt; After applying PCA to the training set, I got a list of new features as
&lt;br&gt;&amp;gt; follows:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ranked attributes:
&lt;br&gt;&amp;gt;  0.9515    1 -0.327w20-0.327w18-0.327w21-0.324w19-0.256w4...
&lt;br&gt;&amp;gt;  0.9037    2 -0.284w8-0.23w69-0.23w68-0.23w70+0.222w4...
&lt;br&gt;&amp;gt;  0.858     3 -0.309w22-0.257w2+0.242w48+0.242w47+0.242w49...
&lt;br&gt;&amp;gt;  0.8152    4 -0.237w54-0.223w57+0.216w59-0.212w48-0.212w47...
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have questions:
&lt;br&gt;&amp;gt;  How to transform both training and test sets by using the new features ?
&lt;/div&gt;&lt;br&gt;Use &amp;quot;batch-filtering&amp;quot; with the following filter:
&lt;br&gt;&amp;nbsp; weka.filters.supervised.attribute.AttributeSelection
&lt;br&gt;&lt;br&gt;And read FAQ &amp;quot;How do I generate compatible train and test sets that
&lt;br&gt;get processed with a filter?&amp;quot;. Link to the FAQs available from the
&lt;br&gt;Weka homepage.
&lt;br&gt;&lt;br&gt;&amp;gt;  Is it possible to do this task with GUI of weka 3.4.13 ?
&lt;br&gt;&lt;br&gt;No version of the Explorer allows this, not sure about the
&lt;br&gt;Knowledgeflow. You normally do that from command-line (SimpleCLI or
&lt;br&gt;terminal).
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523041&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Principal-Component-Analysis-tp26522888p26523041.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26522888</id>
	<title>Principal Component Analysis</title>
	<published>2009-11-25T16:50:35Z</published>
	<updated>2009-11-25T16:50:35Z</updated>
	<author>
		<name>peerasak</name>
	</author>
	<content type="html">Dear All,&lt;br&gt;&lt;br&gt;I have to two different data sets, one for training and one for test, &lt;br&gt;concerning with a classification problem.&lt;br&gt;I plan to use PCA for reducing feature dimensions.&lt;br&gt;After applying PCA to the training set, I got a list of new features as follows:&lt;br&gt;
&lt;br&gt;Ranked attributes:&lt;br&gt; 0.9515    1 -0.327w20-0.327w18-0.327w21-0.324w19-0.256w4...&lt;br&gt; 0.9037    2 -0.284w8-0.23w69-0.23w68-0.23w70+0.222w4...&lt;br&gt; 0.858     3 -0.309w22-0.257w2+0.242w48+0.242w47+0.242w49...&lt;br&gt; 0.8152    4 -0.237w54-0.223w57+0.216w59-0.212w48-0.212w47...&lt;br&gt;
...&lt;br&gt;&lt;br&gt;I have questions:&lt;br&gt; How to transform both training and test sets by using the new features ?&lt;br&gt; Is it possible to do this task with GUI of weka 3.4.13 ?&lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;Peerasak &lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26522888&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Principal-Component-Analysis-tp26522888p26522888.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26520360</id>
	<title>Re: jython - prediction with deserialized model</title>
	<published>2009-11-25T13:10:37Z</published>
	<updated>2009-11-25T13:10:37Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; i try using a serialized classifier with jython ,but getting no success.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;  What could be my mistake?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Many thanks ,
&lt;br&gt;&amp;gt; Christian
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; import sys
&lt;br&gt;&amp;gt; import weka.core.SerializationHelper as pmodel
&lt;br&gt;&amp;gt; import weka.classifiers.Classifier.classifyInstance as classify
&lt;br&gt;&amp;gt; import java.io.FileReader as FileReader
&lt;br&gt;&amp;gt; import weka.core.Instances as Instances
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; model=pmodel.read(&amp;quot;/weka-3-7-0/data/nb_iris.model&amp;quot;)
&lt;br&gt;&amp;gt; file = FileReader(&amp;quot;/weka-3-7-0/data/iris.arff&amp;quot;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; data=Instances(file)
&lt;br&gt;&amp;gt; data.setClassIndex(data.numAttributes()-1)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; print data.numAttributes()
&lt;br&gt;&amp;gt; print data.instance(98)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; cl=classify(model,data.instance(98))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Output:
&lt;br&gt;&amp;gt; 5
&lt;br&gt;&amp;gt; 5.1,2.5,3,1.1,Iris-versicolor
&lt;br&gt;&amp;gt; Traceback (most recent call last):
&lt;br&gt;&amp;gt;  File &amp;quot;scoring.py&amp;quot;, line 23, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;gt;   cl=classify(model,data.instance(98))
&lt;br&gt;&amp;gt;   at java.util.ArrayList.RangeCheck(ArrayList.java:547)
&lt;br&gt;&amp;gt;   at java.util.ArrayList.get(ArrayList.java:322)
&lt;/div&gt;&lt;/div&gt;Since I don't know what your &amp;quot;classify&amp;quot; method does (that seems to be
&lt;br&gt;the source of the error), I've attached an example of mine that
&lt;br&gt;outputs the predictions made with a serialized model.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[model.py]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;import sys
&lt;br&gt;import weka.core.SerializationHelper as pmodel
&lt;br&gt;import weka.classifiers.Classifier.classifyInstance as classify
&lt;br&gt;import java.io.FileReader as FileReader
&lt;br&gt;import weka.core.Instances as Instances
&lt;br&gt;import weka.core.converters.ConverterUtils.DataSource as DSource
&lt;br&gt;&lt;br&gt;model = pmodel.read(&amp;quot;/home/fracpete/temp/nb.model&amp;quot;)
&lt;br&gt;file &amp;nbsp;= &amp;quot;/home/fracpete/temp/iris.arff&amp;quot;
&lt;br&gt;&lt;br&gt;data = DSource.read(file)
&lt;br&gt;data.setClassIndex(data.numAttributes() - 1)
&lt;br&gt;&lt;br&gt;for i in xrange(0, data.numInstances()):
&lt;br&gt;&amp;nbsp; &amp;nbsp; inst = data.instance(i).copy()
&lt;br&gt;&amp;nbsp; &amp;nbsp; inst.setClassMissing()
&lt;br&gt;&amp;nbsp; &amp;nbsp; pred = model.classifyInstance(inst)
&lt;br&gt;&amp;nbsp; &amp;nbsp; label = data.classAttribute().value(int(pred))
&lt;br&gt;&amp;nbsp; &amp;nbsp; print str(i) + &amp;quot;. &amp;quot; + str(pred) + &amp;quot;/&amp;quot; + label + &amp;quot;: &amp;quot; + str(data.instance(i))
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520360&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython---prediction-with--deserialized-model-tp26517167p26520360.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519808</id>
	<title>Re: RE: weka classifiers</title>
	<published>2009-11-25T12:31:36Z</published>
	<updated>2009-11-25T12:31:36Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">Please no top-posting, see mailing list etiquette why
&lt;br&gt;(&lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;). In
&lt;br&gt;the future I'll refuse to answer questions that don't adhere to the
&lt;br&gt;etiquette.
&lt;br&gt;&lt;br&gt;&amp;gt; Thank you Peter for your reply. Could you please tell me whether it does
&lt;br&gt;&amp;gt; classification/regression when it receives different types of features or it
&lt;br&gt;&amp;gt; converts the numeric ones into nominal and performs classification each
&lt;br&gt;&amp;gt; time?
&lt;br&gt;&lt;br&gt;There's different classifiers for regression and classification. Some
&lt;br&gt;of them can do both.
&lt;br&gt;&lt;br&gt;&amp;gt; Does weka always perform binary classification only?
&lt;br&gt;&lt;br&gt;Once again, it depends on the classifier.
&lt;br&gt;&lt;br&gt;Rule of thumb: if a classifier cannot handle the data, it will tell you.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519808&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weka-classifiers-tp26506404p26519808.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519764</id>
	<title>RE: weka classifiers</title>
	<published>2009-11-25T12:28:24Z</published>
	<updated>2009-11-25T12:28:24Z</updated>
	<author>
		<name>Nancy Adam</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&lt;BR&gt;&amp;nbsp;&lt;BR&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Thank you Peter for your reply. Could you please tell me whether it does classification/regression when it receives different types of features or it converts the numeric ones into nominal and performs classification each time?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Does weka always perform binary classification only?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Many thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;?xml:namespace prefix = st1 ns = &quot;urn:schemas-microsoft-com:office:smarttags&quot; /&gt;&lt;st1:City&gt;&lt;st1:place&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Nancy&lt;/SPAN&gt;&lt;/st1:place&gt;&lt;/st1:City&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519764&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fracpete@...&lt;/a&gt;&lt;BR&gt;&amp;gt; Date: Wed, 25 Nov 2009 15:00:34 +1300&lt;BR&gt;&amp;gt; Subject: Re: [Wekalist] weka classifiers&lt;BR&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519764&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist@...&lt;/a&gt;&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; Can someone please tell me based on which features, weka classifiers perform&lt;BR&gt;&amp;gt; &amp;gt; the classification? Do i determine specific feature/s first or I should&lt;BR&gt;&amp;gt; &amp;gt; write something in the dataset or put the features in specific order?&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; On the commandline, you define via the -c parameter which attribute is&lt;BR&gt;&amp;gt; to be the class attribute. In the Explorer, you select the appropriate&lt;BR&gt;&amp;gt; attribute from the combobox on the preprocess panel.&lt;BR&gt;&amp;gt; The classifier will evaluate (what exactly happens here depends on the&lt;BR&gt;&amp;gt; actual classifier) all other attributes against this class attribute&lt;BR&gt;&amp;gt; then.&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Cheers, Peter&lt;BR&gt;&amp;gt; -- &lt;BR&gt;&amp;gt; Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ&lt;BR&gt;&amp;gt; http://www.cs.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; _______________________________________________&lt;BR&gt;&amp;gt; Wekalist mailing list&lt;BR&gt;&amp;gt; Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519764&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;&lt;BR&gt;&amp;gt; List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;BR&gt;&amp;gt; List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/div&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Windows Live: Make it easier for your friends to see  &lt;a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009' target='_new' rel=&quot;nofollow&quot;&gt;what you’re up to on Facebook.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519764&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weka-classifiers-tp26506404p26519764.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519088</id>
	<title>Re: Extract Rules from trained Artificial Neural Network</title>
	<published>2009-11-25T11:43:45Z</published>
	<updated>2009-11-25T11:43:45Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; Is there a way to extract rules from a trained a Artificial Neural Network
&lt;br&gt;&amp;gt; using Weka?
&lt;br&gt;&lt;br&gt;Not that I know of.
&lt;br&gt;&lt;br&gt;&amp;gt; If there isn't, how can I develop this feature and share with the main weka
&lt;br&gt;&amp;gt; package?
&lt;br&gt;&lt;br&gt;Read FAQ &amp;quot;How can I contribute to WEKA?&amp;quot;. Link to the FAQs available
&lt;br&gt;from the Weka homepage.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519088&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extract-Rules-from-trained-Artificial-Neural-Network-tp26514289p26519088.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518515</id>
	<title>Re: Iterating through instances</title>
	<published>2009-11-25T11:07:26Z</published>
	<updated>2009-11-25T11:07:26Z</updated>
	<author>
		<name>Mark Hall-9</name>
	</author>
	<content type="html">Curtis Jensen wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm also confused what the int parameter is for. &amp;nbsp;If each individual
&lt;br&gt;&amp;gt; instance has a list of attributes, why does that attribute's value
&lt;br&gt;&amp;gt; method take an integer index? &amp;nbsp;Isn't which attribute already
&lt;br&gt;&amp;gt; identified by the actual Attribute object?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;I think you are getting confused between Instance.value(int) and 
&lt;br&gt;Attribute.value(int). The former, as Peter said, returns you the value 
&lt;br&gt;of an attribute in internal format. This is a primitive double. For 
&lt;br&gt;numeric/date attributes it *is* the value of the attribute. For nominal 
&lt;br&gt;attributes it is an *index* coded as a double. This is where 
&lt;br&gt;Attribute.value(int) comes in. If you want to know the string value that 
&lt;br&gt;corresponds to that index for nominal/string attributes then you need to 
&lt;br&gt;look up the value by calling Attribute.value(index_of_att_value), where 
&lt;br&gt;index_of_att_value is the double (cast to an int) you retrieved from 
&lt;br&gt;Instance.value(index_of_attribute).
&lt;br&gt;&lt;br&gt;Alternatively, as Peter said, you can just call 
&lt;br&gt;Instance.stringValue(index_of_attribute) for nominal/string attribute 
&lt;br&gt;*only*. This goes straight to the string representation and avoids 
&lt;br&gt;having to do the Attribute.value(index_of_att_value) lookup.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mark.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Mark Hall
&lt;br&gt;Senior Developer/Consultant, Pentaho Open Source Business Intelligence
&lt;br&gt;Citadel International, Suite 340, 5950 Hazeltine National Dr., Orlando, 
&lt;br&gt;FL 32822, USA
&lt;br&gt;+64 7 348-7099 office, +64 21 399-132 mobile, +1 815 550-8637 fax,
&lt;br&gt;Skype: mark.andrew.hall, Yahoo: mark_andrew_hall
&lt;br&gt;Download the latest release today 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.sourceforge.net/projects/pentaho&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sourceforge.net/projects/pentaho&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518515&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iterating-through-instances-tp26507768p26518515.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517870</id>
	<title>Re: problem in using svm with weka</title>
	<published>2009-11-25T10:23:19Z</published>
	<updated>2009-11-25T10:23:19Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; I have problem using SVM classifer and would be very grateful to you if you
&lt;br&gt;&amp;gt; could help me.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; First when I choose libsvm function, The following message is displayed:
&lt;br&gt;&amp;gt; « Problem evaluating classifier :libsvm classes not in classpath! ».
&lt;br&gt;&amp;gt; what does that mean ?
&lt;br&gt;&lt;br&gt;Read FAQ &amp;quot;How do I use libsvm in WEKA?&amp;quot;. Link to the FAQs is available
&lt;br&gt;from the Weka homepage.
&lt;br&gt;&lt;br&gt;&amp;gt; Second,I succeded to run SMO function, but the displayed results are not
&lt;br&gt;&amp;gt; clear for me and I can not undesrtand the results
&lt;br&gt;&amp;gt; Is there any file/text/paper/url  explaining the SMO output ?
&lt;br&gt;&lt;br&gt;Read Platt's paper about SMO. Paper reference should be in the Javadoc for SMO.
&lt;br&gt;&lt;br&gt;&amp;gt; Third , I would like to know how can I use the learning results for the
&lt;br&gt;&amp;gt; testing phase (evaluation)
&lt;br&gt;&amp;gt; How can I include the test file (Do I have to put the class of each line ?)
&lt;br&gt;&lt;br&gt;That should be rather obvious. In the Explorer, you just use &amp;quot;Supplied
&lt;br&gt;test set&amp;quot; button. On the command-line, using the &amp;quot;-h&amp;quot; for displaying
&lt;br&gt;the help will tell you that you can use the &amp;quot;-T&amp;quot; option to supply a
&lt;br&gt;test set.
&lt;br&gt;&lt;br&gt;And yes, you have to include the class for each row in the data. How
&lt;br&gt;else is Weka supposed to determine whether the prediction by the built
&lt;br&gt;classifier was correct or not?
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517870&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-in-using-svm-with-weka-tp26517640p26517870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517810</id>
	<title>Re: Save Attribute Stats</title>
	<published>2009-11-25T10:19:11Z</published>
	<updated>2009-11-25T10:19:11Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; In the &amp;quot;Preprocess&amp;quot; tab of the Weka Explorer, many stats on the
&lt;br&gt;&amp;gt; attributes are displayed.  Is there a way to save these stats (count
&lt;br&gt;&amp;gt; and distribution numbers) to a text file?
&lt;br&gt;&lt;br&gt;Not that I know of. The weka.core.Instances class offers the method
&lt;br&gt;&amp;quot;attributeStats(int)&amp;quot;, which returns a weka.core.AttributeStats
&lt;br&gt;object, containing all relevant information.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517810&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Save-Attribute-Stats-tp26517319p26517810.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517747</id>
	<title>Re: Iterating through instances</title>
	<published>2009-11-25T10:14:57Z</published>
	<updated>2009-11-25T10:14:57Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">[...]
&lt;br&gt;&lt;br&gt;&amp;gt; I'm working with nominal and numeric values only.
&lt;br&gt;&amp;gt; My JavaDoc for the value method says:
&lt;br&gt;&amp;gt; Returns a value of a nominal or string attribute. Returns an empty
&lt;br&gt;&amp;gt; string if the attribute is neither a string nor a nominal attribute.
&lt;br&gt;&lt;br&gt;Not sure what version of Weka you're using. I'm using 3.7.0ish.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt;From that, it sounds like the value method will not work for numeric attributes?
&lt;br&gt;&lt;br&gt;Correct. The method &amp;quot;stringValue&amp;quot; is for attribute types that are
&lt;br&gt;normally represented by a string, e.g., NOMINAL, STRING, DATE (also
&lt;br&gt;RELATIONAL).
&lt;br&gt;&lt;br&gt;&amp;gt; I'm also confused what the int parameter is for.  If each individual
&lt;br&gt;&amp;gt; instance has a list of attributes, why does that attribute's value
&lt;br&gt;&amp;gt; method take an integer index?  Isn't which attribute already
&lt;br&gt;&amp;gt; identified by the actual Attribute object?
&lt;br&gt;&lt;br&gt;The &amp;quot;int&amp;quot; parameter is the index of the attribute in the dataset,
&lt;br&gt;which provides a fast and simple access (I prefer this method). Also,
&lt;br&gt;if the Attribute object that you're using is not part of the Instances
&lt;br&gt;object that you're manipulating, the access will fail (it's just a
&lt;br&gt;simple object reference check that is used).
&lt;br&gt;&lt;br&gt;The ARFF format does not enforce unique attribute names. If you try to
&lt;br&gt;return an Attribute object by name, you will always only get the first
&lt;br&gt;one. Hence, the access via the &amp;quot;int&amp;quot; index is the safer one, IMHO.
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517747&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iterating-through-instances-tp26507768p26517747.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517650</id>
	<title>Re: How to evaluate a new boosting algorithm</title>
	<published>2009-11-25T10:07:57Z</published>
	<updated>2009-11-25T10:07:57Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; I've finished the implementation of a new Boosting algorithm for classification problem using the regression REPTree as weak leaner. To evaluate the new classifier, I deleted all class values of the training data set to create the testing data set, then I used the class Evaluation to evaluate my classifier with the new testing data set. In comparison with the training data, I can see that all instances of the testing data set are well classified (100% of instances is well classified). Is this enough to confirm that my classifier is good ?
&lt;br&gt;&lt;br&gt;Evaluating on the training data isn't really a good test.
&lt;br&gt;&lt;br&gt;&amp;gt; Is there any other method to evaluate a new classifier ?
&lt;br&gt;&lt;br&gt;Set up an experiment in the Experimenter: 1. lots of datasets with
&lt;br&gt;varying size, 2. compare it against other standard algorithms
&lt;br&gt;(NaiveBayes, J48, SMO, AdaBoostM1, MultiBoostAB, Stacking, ...)
&lt;br&gt;&lt;br&gt;&amp;gt; --- On Wed, 11/25/09, Peter Reutemann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fracpete@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From: Peter Reutemann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517650&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fracpete@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: [Wekalist] Iterating through instances
&lt;br&gt;&amp;gt; To: &amp;quot;Weka machine learning workbench list.&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517650&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Wednesday, November 25, 2009, 3:35 PM
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm attempting write a clusterer for Weka.
&lt;br&gt;&lt;br&gt;Do you think, anybody is interested in this unrelated information? New
&lt;br&gt;question, new post (and no left-overs from other posts, of course).
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;--
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp;          Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517650&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iterating-through-instances-tp26507768p26517650.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517640</id>
	<title>problem in using svm with weka</title>
	<published>2009-11-25T10:07:40Z</published>
	<updated>2009-11-25T10:07:40Z</updated>
	<author>
		<name>mahdi boudabous</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;







&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div bgcolor=&quot;#ffffff&quot;&gt; 
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Dear Weka members,&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;I have problem using SVM classifer and would be 
very grateful to you if you could help me.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;First when I choose &lt;/font&gt;libsvm function, The 
following message is displayed: « Problem evaluating 
classifier :libsvm classes not in classpath! ».&lt;/div&gt;
&lt;div&gt;what does that mean ?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Second,I succeded to run&lt;/font&gt; SMO 
function, but the displayed results are not clear for me and I can not 
undesrtand the results&lt;/div&gt;
&lt;div&gt;Is there any file/text/paper/url  explaining the SMO output ?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Third , I would like to know how can I use the learning results 
for the testing phase (evaluation)&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;How can I include the test file (Do I have to put 
the class of each line ?)&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Many thanks in advance for your help&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;**************************************************&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Mohamed Mahdi Boudabbous&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Master student &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Faculty of Economic Sciences and management of 
Sfax&lt;br&gt;LARIS - MIRACL Laboratory&lt;br&gt; &lt;br&gt;Address : FSEGS, BP 1088, 3018 
Sfax, 
Tunisia&lt;br&gt;&lt;br&gt;**************************************************&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517640&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-in-using-svm-with-weka-tp26517640p26517640.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517319</id>
	<title>Save Attribute Stats</title>
	<published>2009-11-25T09:49:36Z</published>
	<updated>2009-11-25T09:49:36Z</updated>
	<author>
		<name>Curtis Jensen-2</name>
	</author>
	<content type="html">In the &amp;quot;Preprocess&amp;quot; tab of the Weka Explorer, many stats on the
&lt;br&gt;attributes are displayed. &amp;nbsp;Is there a way to save these stats (count
&lt;br&gt;and distribution numbers) to a text file?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Curtis
&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517319&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Save-Attribute-Stats-tp26517319p26517319.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517183</id>
	<title>Re: Iterating through instances</title>
	<published>2009-11-25T09:40:32Z</published>
	<updated>2009-11-25T09:40:32Z</updated>
	<author>
		<name>Curtis Jensen-2</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 12:35 AM, Peter Reutemann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517183&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fracpete@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; I'm attempting write a clusterer for Weka.
&lt;br&gt;&amp;gt;&amp;gt; I'm having trouble getting the individual attribute values for a data
&lt;br&gt;&amp;gt;&amp;gt; instance.  I'm handling numeric and nominal types.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In going through the Weka code and online documentation, I'm confused
&lt;br&gt;&amp;gt;&amp;gt; on how to get an individual value from the data instances.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What kind of value do you want to have? Internal? String representation?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;value(Attribute/int)&amp;quot; returns the actual value for numeric attributes
&lt;br&gt;&amp;gt; and for nominal/string/relational the index. Copy/paste from the
&lt;br&gt;&amp;gt; Javadoc:
&lt;br&gt;&amp;gt; &amp;quot;the specified value as a double (If the corresponding attribute is
&lt;br&gt;&amp;gt; nominal (or a string) then it returns the value's index as a double).&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you want to retrieve the actual &amp;quot;string&amp;quot; representation of
&lt;br&gt;&amp;gt; non-numeric attributes (that includes Date attributes!), use
&lt;br&gt;&amp;gt; &amp;quot;stringValue(Attribute/int)&amp;quot;. Copy/paste from the Javadoc:
&lt;br&gt;&amp;gt; &amp;quot;Returns the value of a nominal, string, date, or relational attribute
&lt;br&gt;&amp;gt; for the instance as a string. &amp;quot;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;I'm working with nominal and numeric values only.
&lt;br&gt;My JavaDoc for the value method says:
&lt;br&gt;Returns a value of a nominal or string attribute. Returns an empty
&lt;br&gt;string if the attribute is neither a string nor a nominal attribute.
&lt;br&gt;&lt;br&gt;&amp;gt;From that, it sounds like the value method will not work for numeric attributes?
&lt;br&gt;&lt;br&gt;I'm also confused what the int parameter is for. &amp;nbsp;If each individual
&lt;br&gt;instance has a list of attributes, why does that attribute's value
&lt;br&gt;method take an integer index? &amp;nbsp;Isn't which attribute already
&lt;br&gt;identified by the actual Attribute object?
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Most algorithms just use the index of nominal/string/relational
&lt;br&gt;&amp;gt; attributes internal and not the string representation (to save space),
&lt;br&gt;&amp;gt; i.e., using the internal format retrieved via &amp;quot;value(Attribute/int)&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; See code
&lt;br&gt;&amp;gt;&amp;gt; below:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; int numAttrs = data.numAttributes();
&lt;br&gt;&amp;gt;&amp;gt; int numInstances = data.numInstances();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; for (int instIdx = 0; instIdx &amp;lt; numInstances; instIdx++) {
&lt;br&gt;&amp;gt;&amp;gt;                Instance currInst = data.instance(instIdx);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;                for (int attrIdx = 0; attrIdx &amp;lt; numAttrs; attrIdx++) {
&lt;br&gt;&amp;gt;&amp;gt;                        Attribute currAttr = currInst.attribute(attrIdx);
&lt;br&gt;&amp;gt;&amp;gt;                        if (currAttr.isNominal()) {
&lt;br&gt;&amp;gt;&amp;gt;                          // now what?
&lt;br&gt;&amp;gt;&amp;gt;                        }
&lt;br&gt;&amp;gt;&amp;gt;                        else if (currAttr.isNumeric()) {
&lt;br&gt;&amp;gt;&amp;gt;                           // now what?
&lt;br&gt;&amp;gt;&amp;gt;                        }
&lt;br&gt;&amp;gt;&amp;gt;                }
&lt;br&gt;&amp;gt;&amp;gt;        }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers, Peter
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp;          Ph. +64 (7) 858-5174
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Wekalist mailing list
&lt;br&gt;&amp;gt; Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517183&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;&amp;gt; List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;&amp;gt; List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517183&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iterating-through-instances-tp26507768p26517183.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517167</id>
	<title>jython - prediction with  deserialized model</title>
	<published>2009-11-25T09:39:48Z</published>
	<updated>2009-11-25T09:39:48Z</updated>
	<author>
		<name>Christian Schulz-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;i try using a serialized classifier with jython ,but getting no 
&lt;br&gt;success. &amp;nbsp;What could be my mistake?
&lt;br&gt;&lt;br&gt;Many thanks ,
&lt;br&gt;Christian
&lt;br&gt;&lt;br&gt;import sys
&lt;br&gt;import weka.core.SerializationHelper as pmodel
&lt;br&gt;import weka.classifiers.Classifier.classifyInstance as classify
&lt;br&gt;import java.io.FileReader as FileReader
&lt;br&gt;import weka.core.Instances as Instances
&lt;br&gt;&lt;br&gt;model=pmodel.read(&amp;quot;/weka-3-7-0/data/nb_iris.model&amp;quot;)
&lt;br&gt;file = FileReader(&amp;quot;/weka-3-7-0/data/iris.arff&amp;quot;)
&lt;br&gt;&lt;br&gt;data=Instances(file)
&lt;br&gt;data.setClassIndex(data.numAttributes()-1)
&lt;br&gt;&lt;br&gt;print data.numAttributes()
&lt;br&gt;print data.instance(98)
&lt;br&gt;&lt;br&gt;cl=classify(model,data.instance(98))
&lt;br&gt;&lt;br&gt;&lt;br&gt;Output:
&lt;br&gt;5
&lt;br&gt;5.1,2.5,3,1.1,Iris-versicolor
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;scoring.py&amp;quot;, line 23, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; cl=classify(model,data.instance(98))
&lt;br&gt;&amp;nbsp; &amp;nbsp; at java.util.ArrayList.RangeCheck(ArrayList.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at java.util.ArrayList.get(ArrayList.java:322)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at weka.core.Instances.attribute(Instances.java:326)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;weka.classifiers.bayes.NaiveBayes.distributionForInstance(NaiveBayes.java:362)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;weka.classifiers.AbstractClassifier.classifyInstance(AbstractClassifier.java:72)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;br&gt;&lt;br&gt;java.lang.IndexOutOfBoundsException: 
&lt;br&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517167&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython---prediction-with--deserialized-model-tp26517167p26517167.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514289</id>
	<title>Extract Rules from trained Artificial Neural Network</title>
	<published>2009-11-25T07:06:38Z</published>
	<updated>2009-11-25T07:06:38Z</updated>
	<author>
		<name>Marcelo Damasceno</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;Is there a way to extract rules from a trained a Artificial Neural Network using Weka?&lt;br&gt;&lt;br&gt;If there isn&amp;#39;t, how can I develop this feature and share with the main weka package?&lt;br&gt;&lt;br&gt;Att,&lt;br clear=&quot;all&quot;&gt;Marcelo Damasceno&lt;br&gt;
Mestrando em Ciência da Computação - UECE&lt;br&gt;Professor do IFRN/Macau&lt;br&gt;Fortaleza - Ceará - Brasil&lt;br&gt;+55 85 8797-9153&lt;br&gt;+55 84 96316990&lt;br&gt;+55 85 3341-0305&lt;br&gt;&lt;br&gt;&amp;quot;Computers are like air conditioners: they stop working properly when you open windows&amp;quot;. - EFR&lt;br&gt;
--&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514289&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extract-Rules-from-trained-Artificial-Neural-Network-tp26514289p26514289.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26511951</id>
	<title>How to evaluate a new boosting algorithm</title>
	<published>2009-11-25T04:40:16Z</published>
	<updated>2009-11-25T04:40:16Z</updated>
	<author>
		<name>Doan Viet Dung</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;I've finished the implementation of a new Boosting algorithm for classification problem using the regression REPTree as weak leaner. To evaluate the new classifier, I deleted all class values of the training data set to create the testing data set, then I used the class Evaluation to evaluate my classifier with the new testing data set. In comparison with the training data, I can see that all instances of the testing data set are well classified (100% of instances is well classified). Is this enough to confirm that my classifier is good ? Is there any other method to evaluate a new classifier ?&lt;br&gt;&lt;br&gt;Thanks for your help&lt;br&gt;Cheers,&lt;br&gt;VDung&lt;br&gt;&lt;br&gt;--- On &lt;b&gt;Wed, 11/25/09, Peter Reutemann &lt;i&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511951&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fracpete@...&lt;/a&gt;&amp;gt;&lt;/i&gt;&lt;/b&gt; wrote:&lt;br&gt;&lt;blockquote style=&quot;border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;&quot;&gt;&lt;br&gt;From:
 Peter Reutemann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511951&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fracpete@...&lt;/a&gt;&amp;gt;&lt;br&gt;Subject: Re: [Wekalist] Iterating through instances&lt;br&gt;To: &quot;Weka machine learning workbench list.&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511951&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist@...&lt;/a&gt;&amp;gt;&lt;br&gt;Date: Wednesday, November 25, 2009, 3:35 PM&lt;br&gt;&lt;br&gt;&lt;div class=&quot;plainMail&quot;&gt;&amp;gt; I'm attempting write a clusterer for Weka.&lt;br&gt;&amp;gt; I'm having trouble getting the individual attribute values for a data&lt;br&gt;&amp;gt; instance.  I'm handling numeric and nominal types.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; In going through the Weka code and online documentation, I'm confused&lt;br&gt;&amp;gt; on how to get an individual value from the data instances.&lt;br&gt;&lt;br&gt;What kind of value do you want to have? Internal? String representation?&lt;br&gt;&lt;br&gt;&quot;value(Attribute/int)&quot; returns the actual value for numeric attributes&lt;br&gt;and for nominal/string/relational the index. Copy/paste from the&lt;br&gt;Javadoc:&lt;br&gt;&quot;the specified value as a double (If the corresponding attribute is&lt;br&gt;nominal (or a string) then it returns the value's
 index as a double).&quot;&lt;br&gt;&lt;br&gt;If you want to retrieve the actual &quot;string&quot; representation of&lt;br&gt;non-numeric attributes (that includes Date attributes!), use&lt;br&gt;&quot;stringValue(Attribute/int)&quot;. Copy/paste from the Javadoc:&lt;br&gt;&quot;Returns the value of a nominal, string, date, or relational attribute&lt;br&gt;for the instance as a string. &quot;&lt;br&gt;&lt;br&gt;Most algorithms just use the index of nominal/string/relational&lt;br&gt;attributes internal and not the string representation (to save space),&lt;br&gt;i.e., using the internal format retrieved via &quot;value(Attribute/int)&quot;.&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; See code&lt;br&gt;&amp;gt; below:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; int numAttrs = data.numAttributes();&lt;br&gt;&amp;gt; int numInstances = data.numInstances();&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; for (int instIdx = 0; instIdx &amp;lt; numInstances; instIdx++) {&lt;br&gt;&amp;gt;                Instance currInst = data.instance(instIdx);&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;                for (int attrIdx = 0; attrIdx &amp;lt; numAttrs; attrIdx++) {&lt;br&gt;&amp;gt;                        Attribute
 currAttr = currInst.attribute(attrIdx);&lt;br&gt;&amp;gt;                        if (currAttr.isNominal()) {&lt;br&gt;&amp;gt;                          // now what?&lt;br&gt;&amp;gt;                        }&lt;br&gt;&amp;gt;                        else if (currAttr.isNumeric()) {&lt;br&gt;&amp;gt;                           // now what?&lt;br&gt;&amp;gt;                        }&lt;br&gt;&amp;gt;                }&lt;br&gt;&amp;gt;        }&lt;/div&gt;&lt;br&gt;&lt;br&gt;Cheers, Peter&lt;br&gt;-- &lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/%7Efracpete/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Ph. +64 (7) 858-5174&lt;br&gt;&lt;br&gt;_______________________________________________&lt;br&gt;Wekalist mailing list&lt;br&gt;Send posts to: &lt;a ymailto=&quot;mailto:Wekalist@list.scms.waikato.ac.nz&quot; href=&quot;/mc/compose?to=Wekalist@list.scms.waikato.ac.nz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/%7Eml/weka/mailinglist_etiquette.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;

&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511951&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iterating-through-instances-tp26507768p26511951.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509099</id>
	<title>Re: Iterating through instances</title>
	<published>2009-11-25T00:35:09Z</published>
	<updated>2009-11-25T00:35:09Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; I'm attempting write a clusterer for Weka.
&lt;br&gt;&amp;gt; I'm having trouble getting the individual attribute values for a data
&lt;br&gt;&amp;gt; instance.  I'm handling numeric and nominal types.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In going through the Weka code and online documentation, I'm confused
&lt;br&gt;&amp;gt; on how to get an individual value from the data instances.
&lt;br&gt;&lt;br&gt;What kind of value do you want to have? Internal? String representation?
&lt;br&gt;&lt;br&gt;&amp;quot;value(Attribute/int)&amp;quot; returns the actual value for numeric attributes
&lt;br&gt;and for nominal/string/relational the index. Copy/paste from the
&lt;br&gt;Javadoc:
&lt;br&gt;&amp;quot;the specified value as a double (If the corresponding attribute is
&lt;br&gt;nominal (or a string) then it returns the value's index as a double).&amp;quot;
&lt;br&gt;&lt;br&gt;If you want to retrieve the actual &amp;quot;string&amp;quot; representation of
&lt;br&gt;non-numeric attributes (that includes Date attributes!), use
&lt;br&gt;&amp;quot;stringValue(Attribute/int)&amp;quot;. Copy/paste from the Javadoc:
&lt;br&gt;&amp;quot;Returns the value of a nominal, string, date, or relational attribute
&lt;br&gt;for the instance as a string. &amp;quot;
&lt;br&gt;&lt;br&gt;Most algorithms just use the index of nominal/string/relational
&lt;br&gt;attributes internal and not the string representation (to save space),
&lt;br&gt;i.e., using the internal format retrieved via &amp;quot;value(Attribute/int)&amp;quot;.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; See code
&lt;br&gt;&amp;gt; below:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; int numAttrs = data.numAttributes();
&lt;br&gt;&amp;gt; int numInstances = data.numInstances();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; for (int instIdx = 0; instIdx &amp;lt; numInstances; instIdx++) {
&lt;br&gt;&amp;gt;                Instance currInst = data.instance(instIdx);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;                for (int attrIdx = 0; attrIdx &amp;lt; numAttrs; attrIdx++) {
&lt;br&gt;&amp;gt;                        Attribute currAttr = currInst.attribute(attrIdx);
&lt;br&gt;&amp;gt;                        if (currAttr.isNominal()) {
&lt;br&gt;&amp;gt;                          // now what?
&lt;br&gt;&amp;gt;                        }
&lt;br&gt;&amp;gt;                        else if (currAttr.isNumeric()) {
&lt;br&gt;&amp;gt;                           // now what?
&lt;br&gt;&amp;gt;                        }
&lt;br&gt;&amp;gt;                }
&lt;br&gt;&amp;gt;        }
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509099&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iterating-through-instances-tp26507768p26509099.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509035</id>
	<title>Re: Model serialization and prediction</title>
	<published>2009-11-25T00:29:28Z</published>
	<updated>2009-11-25T00:29:28Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; Ok, so what are the steps involved.
&lt;br&gt;&amp;gt; Currently:
&lt;br&gt;&amp;gt;        Classifiers.buildClassifier
&lt;br&gt;&lt;br&gt;No buildClassifier before cross-validating!
&lt;br&gt;&lt;br&gt;&amp;gt;        Evaluation.crossValidateModel
&lt;br&gt;&amp;gt;                -&amp;gt; Save Model
&lt;br&gt;&lt;br&gt;crossValidateModel doesn't return a model (it builds as many as there
&lt;br&gt;are folds and discards them after evaluating them).
&lt;br&gt;&lt;br&gt;&amp;gt;                -&amp;gt; Save statistics
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I don't have to give the trained model to the Eval, should I proceed that way ?
&lt;br&gt;&amp;gt;        Evaluation.crossValidateModel
&lt;br&gt;&amp;gt;                -&amp;gt; Save statistics
&lt;br&gt;&amp;gt;        Classifiers.buildClassifier
&lt;br&gt;&amp;gt;                -&amp;gt; Save Model
&lt;br&gt;&lt;br&gt;Correct. Of course, the model that you serialize is most likely
&lt;br&gt;different from the other x (x = number of folds) during CV, as it is
&lt;br&gt;generated from the full dataset.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509035&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Model-serialization-and-prediction-tp26493993p26509035.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26508807</id>
	<title>RE: Model serialization and prediction</title>
	<published>2009-11-25T00:02:39Z</published>
	<updated>2009-11-25T00:02:39Z</updated>
	<author>
		<name>Fabien Tillier</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;-----Message d'origine-----
&lt;br&gt;De : &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508807&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508807&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist-bounces@...&lt;/a&gt;] De la part de Peter Reutemann
&lt;br&gt;Envoyé : mardi 24 novembre 2009 19:03
&lt;br&gt;À : Weka machine learning workbench list.
&lt;br&gt;Objet : Re: [Wekalist] Model serialization and prediction
&lt;br&gt;&lt;br&gt;&amp;gt; Ok, got it. You have first to build the classifier, then to evaluate 
&lt;br&gt;&amp;gt; with crossValidateModel, and then you can serialize it...
&lt;br&gt;&lt;br&gt;The cross-validate is not necessary, only the call to buildClassifier(Instances).
&lt;br&gt;&lt;br&gt;NB: You shouldn't give the Evaluation class a trained model to cross-validate anyway. If the classifier doesn't reset itself completely, when its buildClassifier method is called, your results might be worthless (&amp;quot;information leakage&amp;quot;).
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;--
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;Hi Peter.
&lt;br&gt;Ok, so what are the steps involved.
&lt;br&gt;Currently:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Classifiers.buildClassifier
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Evaluation.crossValidateModel
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; Save Model
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; Save statistics
&lt;br&gt;&lt;br&gt;If I don't have to give the trained model to the Eval, should I proceed that way ?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Evaluation.crossValidateModel
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; Save statistics
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Classifiers.buildClassifier
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; Save Model
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Fabien
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508807&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Model-serialization-and-prediction-tp26493993p26508807.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507768</id>
	<title>Iterating through instances</title>
	<published>2009-11-24T21:34:20Z</published>
	<updated>2009-11-24T21:34:20Z</updated>
	<author>
		<name>Curtis Jensen-2</name>
	</author>
	<content type="html">I'm attempting write a clusterer for Weka.
&lt;br&gt;I'm having trouble getting the individual attribute values for a data
&lt;br&gt;instance. &amp;nbsp;I'm handling numeric and nominal types.
&lt;br&gt;&lt;br&gt;In going through the Weka code and online documentation, I'm confused
&lt;br&gt;on how to get an individual value from the data instances. &amp;nbsp;See code
&lt;br&gt;below:
&lt;br&gt;&lt;br&gt;&lt;br&gt;int numAttrs = data.numAttributes();
&lt;br&gt;int numInstances = data.numInstances();
&lt;br&gt;&lt;br&gt;for (int instIdx = 0; instIdx &amp;lt; numInstances; instIdx++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	Instance currInst = data.instance(instIdx);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	for (int attrIdx = 0; attrIdx &amp;lt; numAttrs; attrIdx++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 		Attribute currAttr = currInst.attribute(attrIdx);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 		if (currAttr.isNominal()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 		 &amp;nbsp;// now what?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 		}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (currAttr.isNumeric()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// now what?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507768&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iterating-through-instances-tp26507768p26507768.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506463</id>
	<title>Re: weka classifiers</title>
	<published>2009-11-24T18:00:34Z</published>
	<updated>2009-11-24T18:00:34Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; Can someone please tell me based on which features, weka classifiers perform
&lt;br&gt;&amp;gt; the classification? Do i determine specific feature/s first or I should
&lt;br&gt;&amp;gt; write something in the dataset or put the features in specific order?
&lt;br&gt;&lt;br&gt;On the commandline, you define via the -c parameter which attribute is
&lt;br&gt;to be the class attribute. In the Explorer, you select the appropriate
&lt;br&gt;attribute from the combobox on the preprocess panel.
&lt;br&gt;The classifier will evaluate (what exactly happens here depends on the
&lt;br&gt;actual classifier) all other attributes against this class attribute
&lt;br&gt;then.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506463&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weka-classifiers-tp26506404p26506463.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506404</id>
	<title>weka classifiers</title>
	<published>2009-11-24T17:52:54Z</published>
	<updated>2009-11-24T17:52:54Z</updated>
	<author>
		<name>Nancy Adam</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;mso-bidi-language: AR-EG&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Hi All,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Can someone please tell me based on which features, weka classifiers perform the classification? Do i determine specific feature/s first or I should write something in the dataset or put the features in specific order?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Many thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;?xml:namespace prefix = st1 ns = &quot;urn:schemas-microsoft-com:office:smarttags&quot; /&gt;&lt;st1:City&gt;&lt;st1:place&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;Nancy&lt;/SPAN&gt;&lt;/st1:place&gt;&lt;/st1:City&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN lang=AR-EG dir=rtl style=&quot;FONT-SIZE: 10pt; COLOR: #444444; FONT-FAMILY: Tahoma; mso-bidi-language: AR-EG&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Windows Live:  &lt;a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010' target='_new' rel=&quot;nofollow&quot;&gt;Friends get your Flickr, Yelp, and Digg updates when they e-mail you.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506404&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weka-classifiers-tp26506404p26506404.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26502971</id>
	<title>Re: addCluster</title>
	<published>2009-11-24T12:46:15Z</published>
	<updated>2009-11-24T12:46:15Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt;&amp;gt; is there any other way to display K-means cluster assignments to each
&lt;br&gt;&amp;gt;&amp;gt; instance besides using AddCluster filter?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Right-click in the results history list in the cluster panel of the
&lt;br&gt;&amp;gt; Explorer, then choose &amp;quot;visualize cluster assignments&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you Peer, but this way show me the assignments in the graphical form.
&lt;br&gt;&lt;br&gt;You didn't specify in what form you wanted to &amp;quot;display&amp;quot; them.
&lt;br&gt;&lt;br&gt;&amp;gt; Some time ago, if I'm not wrong I found some thread about how to display the
&lt;br&gt;&amp;gt; instances and its clustes assignmments with CLI but I'm not finding it any
&lt;br&gt;&amp;gt; more, or I'm just confused. -)
&lt;br&gt;&lt;br&gt;Have you tried &amp;quot;-h&amp;quot; to list all the options for a clusterer? Then you
&lt;br&gt;would come across the &amp;quot;-p&amp;quot; option...
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502971&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/addCluster-tp26501253p26502971.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26502924</id>
	<title>RE: addCluster</title>
	<published>2009-11-24T12:42:25Z</published>
	<updated>2009-11-24T12:42:25Z</updated>
	<author>
		<name>Joao Carlos-2</name>
	</author>
	<content type="html">&amp;nbsp;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502924&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502924&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist-bounces@...&lt;/a&gt;] On Behalf Of Peter
&lt;br&gt;Reutemann
&lt;br&gt;Sent: Tuesday, November 24, 2009 11:47 AM
&lt;br&gt;To: Weka machine learning workbench list.
&lt;br&gt;Subject: Re: [Wekalist] addCluster
&lt;br&gt;&lt;br&gt;&amp;gt; is there any other way to display K-means cluster assignments to each 
&lt;br&gt;&amp;gt; instance besides using AddCluster filter?
&lt;br&gt;&lt;br&gt;Right-click in the results history list in the cluster panel of the
&lt;br&gt;Explorer, then choose &amp;quot;visualize cluster assignments&amp;quot;.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;....................
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you Peer, but this way show me the assignments in the graphical form. 
&lt;br&gt;&lt;br&gt;Some time ago, if I'm not wrong I found some thread about how to display the
&lt;br&gt;instances and its clustes assignmments with CLI but I'm not finding it any
&lt;br&gt;more, or I'm just confused. -) 
&lt;br&gt;&lt;br&gt;jcarlos
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502924&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/addCluster-tp26501253p26502924.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26502281</id>
	<title>Re: Calculation of Information gain in weka.</title>
	<published>2009-11-24T11:55:43Z</published>
	<updated>2009-11-24T11:55:43Z</updated>
	<author>
		<name>Feras O</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;You would need to compute the entropy and/or gain for this on a per class basis &lt;BR&gt;yourself.&lt;BR&gt;
&lt;DIV&gt;&amp;nbsp;Cheers,&lt;BR&gt;Mark.&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Mark,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Any idea how? is it possible to send me one line of code &lt;/DIV&gt;
&lt;DIV&gt;cheers,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Feras&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#00007f face=arial&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;BR&gt;--- On &lt;B&gt;Tue, 11/24/09, Mark Hall &lt;I&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502281&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mhall@...&lt;/a&gt;&amp;gt;&lt;/I&gt;&lt;/B&gt; wrote:&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px&quot;&gt;&lt;BR&gt;From: Mark Hall &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502281&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mhall@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Subject: Re: [Wekalist] Calculation of Information gain in weka.&lt;BR&gt;To: &quot;Weka machine learning workbench list.&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502281&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wekalist@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Date: Tuesday, November 24, 2009, 3:38 PM&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;On 25/11/09 4:46 AM, Feras wrote:&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; Hi Peter,&lt;BR&gt;&amp;gt; I was able to get the information gain for each attribute in Weka, Thanks.&lt;BR&gt;&amp;gt; Only one question remains:&lt;BR&gt;&amp;gt; Is there a possibilty to get the weight for each attribute in each class?&lt;BR&gt;&amp;gt; Info gain get the weight or the improtance for attribute in the whole&lt;BR&gt;&amp;gt; dataset, but what about if we need to know the importance or weight for&lt;BR&gt;&amp;gt; each attribute in each class?&lt;BR&gt;&lt;BR&gt;
&lt;DIV&gt;_______________________________________________&lt;BR&gt;Wekalist mailing list&lt;BR&gt;Send posts to: &lt;A href=&quot;http://ca.mc882.mail.yahoo.com/mc/compose?to=Wekalist@list.scms.waikato.ac.nz&quot; ymailto=&quot;mailto:Wekalist@list.scms.waikato.ac.nz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/A&gt;&lt;BR&gt;List info and subscription status: &lt;A href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/A&gt;&lt;BR&gt;List etiquette: &lt;A href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502281&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-Attribute-for-Classifying-tp26230856p26502281.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26502160</id>
	<title>Re: Re: polynomial regression</title>
	<published>2009-11-24T11:47:00Z</published>
	<updated>2009-11-24T11:47:00Z</updated>
	<author>
		<name>Mark Hall-9</name>
	</author>
	<content type="html">On 24/11/09 8:09 PM, adrian golding wrote:
&lt;br&gt;&amp;gt; hi, &amp;nbsp;can someone please tell me how to do polynomial regression in WEKA?
&lt;br&gt;&amp;gt; Do i use SMOreg?
&lt;br&gt;&amp;gt; i am not going to do classification, i am more interested to find out
&lt;br&gt;&amp;gt; the correlation coefficient of my dataset (of 2 attributes)
&lt;br&gt;&lt;br&gt;Since you've only got two attributes in your data, one simple approach would be 
&lt;br&gt;to use Weka's MathExpression filter to create some new attributes that are 
&lt;br&gt;copies of the original ones but raised to the power of n (2, 3, 4 etc). Then you 
&lt;br&gt;can just apply standard linear regression to this transformed data. Since linear 
&lt;br&gt;regression has automatic variable selection built in, it will choose the most 
&lt;br&gt;predictive terms to use.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mark.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502160&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-polynomial-regression-tp26491339p26502160.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26502059</id>
	<title>Re: Calculation of Information gain in weka.</title>
	<published>2009-11-24T11:38:33Z</published>
	<updated>2009-11-24T11:38:33Z</updated>
	<author>
		<name>Mark Hall-9</name>
	</author>
	<content type="html">On 25/11/09 4:46 AM, Feras wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Peter,
&lt;br&gt;&amp;gt; I was able to get the information gain for each attribute in Weka, Thanks.
&lt;br&gt;&amp;gt; Only one question remains:
&lt;br&gt;&amp;gt; Is there a possibilty to get the weight for each attribute in each class?
&lt;br&gt;&amp;gt; Info gain get the weight or the improtance for attribute in the whole
&lt;br&gt;&amp;gt; dataset, but what about if we need to know the importance or weight for
&lt;br&gt;&amp;gt; each attribute in each class?
&lt;br&gt;&lt;br&gt;You would need to compute the entropy and/or gain for this on a per class basis 
&lt;br&gt;yourself.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mark.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502059&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-Attribute-for-Classifying-tp26230856p26502059.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26501392</id>
	<title>Re: addCluster</title>
	<published>2009-11-24T10:46:48Z</published>
	<updated>2009-11-24T10:46:48Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; is there any other way to display K-means cluster assignments to each
&lt;br&gt;&amp;gt; instance besides using AddCluster filter?
&lt;br&gt;&lt;br&gt;Right-click in the results history list in the cluster panel of the
&lt;br&gt;Explorer, then choose &amp;quot;visualize cluster assignments&amp;quot;.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26501392&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/addCluster-tp26501253p26501392.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26501308</id>
	<title>Re: Question for different model prediction values</title>
	<published>2009-11-24T10:45:29Z</published>
	<updated>2009-11-24T10:45:29Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">Please no top-posting, see mailing list etiquette why
&lt;br&gt;(&lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;&amp;gt; For the different prediction values,
&lt;br&gt;&amp;gt; I can make sense. That's true it comes from lack of precision/round.
&lt;br&gt;&amp;gt; So, I have tried to find how to extend significant decimal precision.
&lt;br&gt;&amp;gt; I found a following post and I installed developer version.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/can-the-precision-of-the-prediction-results-be-modified--tp23799213p23840294.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/can-the-precision-of-the-prediction-results-be-modified--tp23799213p23840294.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, I can not find the number of output decimals option.
&lt;br&gt;&amp;gt; Could please let me know about it?
&lt;br&gt;&lt;br&gt;Quote from the old post you mentioned:
&lt;br&gt;&amp;quot;I've just added that to the output generators and committed a fix to
&lt;br&gt;subversion.&amp;quot;
&lt;br&gt;&lt;br&gt;Did you follow the instructions in the FAQ mentioned in that post?
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26501308&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-for-different-model-prediction-values-tp26490437p26501308.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26501253</id>
	<title>addCluster</title>
	<published>2009-11-24T10:41:53Z</published>
	<updated>2009-11-24T10:41:53Z</updated>
	<author>
		<name>Joao Carlos-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6001.18344&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;SPAN class=567143918-24112009&gt;&lt;FONT face=&quot;Bookman Old Style&quot;&gt;Hi, 
&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=567143918-24112009&gt;&lt;FONT face=&quot;Bookman Old Style&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=567143918-24112009&gt;&lt;FONT face=&quot;Bookman Old Style&quot;&gt;is there any 
other way to display K-means cluster assignments to each instance besides using 
AddCluster filter?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=567143918-24112009&gt;&lt;FONT face=&quot;Bookman Old Style&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=567143918-24112009&gt;&lt;FONT face=&quot;Bookman Old Style&quot;&gt;thanks, 
&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;FONT face=&quot;Bookman Old Style&quot;&gt;
&lt;P class=MsoNormal align=left&gt;&lt;SPAN style=&quot;FONT-SIZE: 11pt; COLOR: #e36c0a; FONT-FAMILY: 'Calibri','sans-serif'&quot;&gt;&lt;FONT face=&quot;Bookman Old Style&quot; color=#000040 size=3&gt;&lt;STRONG&gt;jCarlos&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal align=left&gt;&lt;SPAN style=&quot;FONT-SIZE: 11pt; COLOR: #e36c0a; FONT-FAMILY: 'Calibri','sans-serif'&quot;&gt;&lt;FONT size=1&gt;&lt;FONT face=&quot;Bookman Old Style&quot;&gt;&lt;FONT color=#000040&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/FONT&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26501253&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/addCluster-tp26501253p26501253.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26499918</id>
	<title>Re: Question for different model prediction values</title>
	<published>2009-11-24T10:41:09Z</published>
	<updated>2009-11-24T10:41:09Z</updated>
	<author>
		<name>bshan</name>
	</author>
	<content type="html">Thanks Peter,
&lt;br&gt;&lt;br&gt;For the different prediction values,
&lt;br&gt;I can make sense. That's true it comes from lack of precision/round. 
&lt;br&gt;So, I have tried to find how to extend significant decimal precision.
&lt;br&gt;I found a following post and I installed developer version.
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/can-the-precision-of-the-prediction-results-be-modified--tp23799213p23840294.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/can-the-precision-of-the-prediction-results-be-modified--tp23799213p23840294.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;However, the coefficient of model does not be changed. 
&lt;br&gt;Is there any way to extend the precision for the model's coefficients?
&lt;br&gt;How can I get a model that has more precision of the coefficient?
&lt;br&gt;&lt;br&gt;I really appreciate your help.
&lt;br&gt;&lt;br&gt;bshan 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Peter Reutemann-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; I am wondering when I compared the prediction results between weka's
&lt;br&gt;&amp;gt; prediction and direct calculation with its model.
&lt;br&gt;&amp;gt; I used linear regression and M5Rules models.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; the test input data as followings:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; x1,          x2
&lt;br&gt;&amp;gt; -128.915, -0.1719
&lt;br&gt;&amp;gt; -59.892,   -0.0424
&lt;br&gt;&amp;gt; -67.62,    -0.01
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; weka's Classifier model as
&lt;br&gt;&amp;gt;  pred = -0.0004 * x1 + 0.8953 * x2 + -0.0444
&lt;br&gt;&lt;br&gt;NB: These numbers are rounded.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; the prediction results when I use weka's prediction function are
&lt;br&gt;&amp;gt; === Predictions on test set ===
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  inst#,    actual, predicted, error
&lt;br&gt;&amp;gt;     1     -0.73      -0.144      0.586
&lt;br&gt;&amp;gt;     2      0.63      -0.057     -0.687
&lt;br&gt;&amp;gt;     3     -0.01      -0.025     -0.015
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But, when I calculate the prediction values using the weka's Classifier
&lt;br&gt;&amp;gt; model directly it is different as followings:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) -0.1467
&lt;br&gt;&lt;br&gt;Pretty close to -0.144
&lt;br&gt;&lt;br&gt;&amp;gt; 2) -0.0584
&lt;br&gt;&lt;br&gt;Also pretty close to -0.057
&lt;br&gt;&lt;br&gt;&amp;gt; 3)  0.0181
&lt;br&gt;&lt;br&gt;A bit further off -0.025
&lt;br&gt;&lt;br&gt;&amp;gt; So, I am wondering what's wrong? Why these are different?
&lt;br&gt;&lt;br&gt;Probably the usual rounding issues when displaying the model. But
&lt;br&gt;without access to the original data (and how you calculated your
&lt;br&gt;result), it's hard to tell.
&lt;br&gt;&lt;br&gt;&amp;gt; The other question is how can I use the result(rule) of M5Rules classifier
&lt;br&gt;&amp;gt; model.
&lt;br&gt;&amp;gt; In the result, it has some conditions (rules).
&lt;br&gt;&amp;gt; I am confusing how can I use the result to calculate prediction value in my
&lt;br&gt;&amp;gt; program directly.
&lt;br&gt;&amp;gt; If you give me an example, it would be better to understand for me.
&lt;br&gt;&lt;br&gt;If you want to use a trained classifier, you might want to read FAQ
&lt;br&gt;&amp;quot;How do I use WEKA's classes in my own code?&amp;quot;. Link to the FAQs
&lt;br&gt;available from the Weka homepage.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;-- 
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: Wekalist@list.scms.waikato.ac.nz
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-for-different-model-prediction-values-tp26490437p26499918.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26500727</id>
	<title>Re: Calculation of Information gain in weka.</title>
	<published>2009-11-24T10:06:01Z</published>
	<updated>2009-11-24T10:06:01Z</updated>
	<author>
		<name>Peter Reutemann-3</name>
	</author>
	<content type="html">&amp;gt; I was able to get the information gain for each attribute in Weka, Thanks.
&lt;br&gt;&lt;br&gt;OK.
&lt;br&gt;&lt;br&gt;&amp;gt; Only one question remains:
&lt;br&gt;&amp;gt; Is there a possibilty to get the weight for each attribute in each class?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Info gain get the weight or the improtance for attribute in the whole dataset, but what about if we need to know the importance or weight for each attribute in each class?
&lt;br&gt;&lt;br&gt;No idea.
&lt;br&gt;&lt;br&gt;Cheers, Peter
&lt;br&gt;--
&lt;br&gt;Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
&lt;br&gt;&lt;a href=&quot;http://www.cs.waikato.ac.nz/~fracpete/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~fracpete/&lt;/a&gt;&amp;nbsp;          Ph. +64 (7) 858-5174
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Wekalist mailing list
&lt;br&gt;Send posts to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26500727&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wekalist@...&lt;/a&gt;
&lt;br&gt;List info and subscription status: &lt;a href=&quot;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist&lt;/a&gt;&lt;br&gt;List etiquette: &lt;a href=&quot;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-Attribute-for-Classifying-tp26230856p26500727.html" />
</entry>

</feed>
