<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Answer My Searches &#187; Machine Learning</title>
	<atom:link href="http://www.answermysearches.com/category/machine-learning/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.answermysearches.com</link>
	<description>Answers to everything I search for, every day</description>
	<lastBuildDate>Wed, 25 Aug 2010 10:00:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to ACTUALLY USE a saved model in Weka!</title>
		<link>http://www.answermysearches.com/how-to-actually-use-a-saved-model-in-weka/199/</link>
		<comments>http://www.answermysearches.com/how-to-actually-use-a-saved-model-in-weka/199/#comments</comments>
		<pubDate>Thu, 26 Oct 2006 04:43:53 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Machine Learning]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/index.php/how-to-actually-use-a-saved-model-in-weka/199/</guid>
		<description><![CDATA[This was a frusterating 30 minutes of searching to find out how to get Weka to do something that really should have been obvious.
In this data mining competition I was trying out, they give you a final test set without the actual answers and your job is to predict that the actual values are, and [...]]]></description>
			<content:encoded><![CDATA[<p>This was a frusterating 30 minutes of searching to find out how to get Weka to do something that really should have been obvious.</p>
<p>In this <a href="http://www.tis.cl/2006/talleres2006/_Taller_1/BICUP2006-ENGLISH/?_Taller_1">data mining competition</a> I was trying out, they give you a final test set without the actual answers and your job is to predict that the actual values are, and well, send them in.  I did manage to get it figured out after a lot of searching.  So I&#8217;m back on my path to winning <img src='http://www.answermysearches.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>So here&#8217;s the easiest way to use a model to simply get its predictions without training it again:</p>
<blockquote><p>If you right-click on the result list you&#8217;ll get a popup<br />
with options including &#8220;Load model&#8221; which allows you to load<br />
some saved model; and there is another option &#8220;Re-evaluate<br />
model on the current test-set&#8221;; obviously before you can<br />
do that, you will have to load some test-set: tick &#8220;Supplied<br />
test set&#8221; and then the &#8220;Set&#8221; button and select your file &#8230;</p></blockquote>
<p><a href="https://list.scms.waikato.ac.nz/mailman/htdig/wekalist/2006-August/007711.html">I found that answer here, and later in the thread they also mention a way to do it with the command line interface (CLI).</a></p>
<p>If that quoted answer above still isn&#8217;t clear, allow me to summarize:</p>
<p>1. You open Weka and get that little window with the four buttons.<br />
2. Click on Explorer.<br />
3. load any old bogus data set you&#8217;re not going to need just so it allows you to get to the classifier tab.<br />
4. Then under test options you choose &#8220;supplied test set&#8221; and point it to the data you want it to make predictions on.  (Note: this 5. must have all of the same attributes, in the same order that you trained your model on.).<br />
6. Finally right click in the result list area and select load model.<br />
7. Point it to your saved model.<br />
8. Next right click to model you just loaded and tell it to re-evaluate on current test set.</p>
<p>Here&#8217;s what your output might look like:<br />
<a class="imagelink" href="http://www.answermysearches.com/wp-content/uploads/2006/10/snapshot10.png" title="Weka actually using a model to make predictions without retraining OMG"><img id="image198" src="http://www.answermysearches.com/wp-content/uploads/2006/10/snapshot10.png" alt="Weka actually using a model to make predictions without retraining OMG" height="96" width="82" /></a></p>
<p>You know, all frusteration aside, Weka really is an incredibly useful, free program, and perhaps I should be glad the developers are spending time on the machine learning side of development instead of my personal needs&#8230;</p>
<p>My search terms (see the frusteration build):</p>
<ol class="searchqueries">
<li>weka run a model on test data</li>
<li>
weka use a model</li>
<li>weka + &#8220;use a model&#8221;</li>
<li>
weka + (get OR output) + predictions + without + training</li>
<li>weka + &#8220;without training&#8221;</li>
<li>weka don&#8217;t have actual</li>
<li>weka cli</li>
<li>weka + sucks</li>
<li>&#8220;weka sucks&#8221;</li>
</ol>
<p><a href="http://weka.sourceforge.net/wiki/index.php/Saving_and_loading_models">Here is more information about saving models in Weka.</a></p>
<p>[tags]Weka, machine learning, data mining, predictions[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/how-to-actually-use-a-saved-model-in-weka/199/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Run Weka in Linux</title>
		<link>http://www.answermysearches.com/how-to-run-weka-in-linux/157/</link>
		<comments>http://www.answermysearches.com/how-to-run-weka-in-linux/157/#comments</comments>
		<pubDate>Mon, 14 Aug 2006 03:35:13 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/index.php/how-to-run-weka-in-linux/157/</guid>
		<description><![CDATA[So you&#8217;ve downloaded and installed Weka to your Linux system but when you click on Explorer or Experimenter you get this error:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException ... 
Just follow these steps to fix it:

Create a &#8220;LookAndFeel.props&#8221; file in your home directory: 
Type:touch ~/LookAndFeel.props into system command line.
Type this into the first line of the newly [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve downloaded and installed <a href="http://www.cs.waikato.ac.nz/ml/weka/">Weka</a> to your Linux system but when you click on Explorer or Experimenter you get this error:<br />
<code>Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException ... </code></p>
<p>Just follow these steps to fix it:</p>
<ol>
<li>Create a &#8220;LookAndFeel.props&#8221; file in your home directory: <br />
Type:<code>touch ~/LookAndFeel.props</code> into system command line.</li>
<li>Type this into the first line of the newly created LookAndFeel.props file: <br />
<code>Theme=javax.swing.plaf.metal.MetalLookAndFeel</code></li>
<li>
Save the file and exit.</li>
<li>
Start WEKA and everything should now work.</li>
</ol>
<p><a href="https://list.scms.waikato.ac.nz/mailman/htdig/wekalist/2005-April/003906.html"><br />
Here&#8217;s a detailed version of the answer and explains a little bit of the why of this problem.</a></p>
<p>Here&#8217;s the full text of the original error:</p>
<pre>
chiefinnovator@MAIN1:~$ cd /home/chiefinnovator/weka/weka-3-4-8a/
chiefinnovator@MAIN1:~/weka/weka-3-4-8a$ java -jar weka.jar
 /usr/share/themes/Simple/gtk-2.0/gtkrc:46: Engine "thinice" is unsupported, ignoring
/usr/share/themes/Simple/gtk-2.0/gtkrc:53: Engine "redmond95" is unsupported, ignoring
/usr/share/themes/Simple/gtk-2.0/gtkrc:57: Engine "redmond95" is unsupported, ignoring
---Registering Weka Editors---
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at weka.gui.explorer.PreprocessPanel.addPropertyChangeListener(Unknown Source)
        at javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.java:49)
        at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38)
        at javax.swing.JComponent.setUI(JComponent.java:652)
        at javax.swing.JPanel.setUI(JPanel.java:131)
        at javax.swing.JPanel.updateUI(JPanel.java:104)
        at javax.swing.JPanel.<init>(JPanel.java:64)
        at javax.swing.JPanel.<init>(JPanel.java:87)
        at javax.swing.JPanel.<init>(JPanel.java:95)
        at weka.gui.explorer.PreprocessPanel.<init>(Unknown Source)
        at weka.gui.explorer.Explorer.<init>(Unknown Source)
        at weka.gui.GUIChooser$3.actionPerformed(Unknown Source)
        at java.awt.Button.processActionEvent(Button.java:388)
        at java.awt.Button.processEvent(Button.java:356)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
</pre>
<p>[tags]weka, ubuntu, java, weka Exception, AWT-EventQueue-0, java.lang.NullPointerException[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/how-to-run-weka-in-linux/157/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What is a Competitive Learning Network</title>
		<link>http://www.answermysearches.com/what-is-a-competitive-learning-network/109/</link>
		<comments>http://www.answermysearches.com/what-is-a-competitive-learning-network/109/#comments</comments>
		<pubDate>Sun, 28 May 2006 17:58:54 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Machine Learning]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/index.php/what-is-a-competitive-learning-network/109/</guid>
		<description><![CDATA[A competitive learning network (CLN) is an unsupervised learning technique that is used to find similarities in examples in a dataset and therefore suggest groupings of the examples.  This is known as a clustering algorithm since it “clusters” the data examples together into similar groups.  It is called unsupervised because we do not [...]]]></description>
			<content:encoded><![CDATA[<p>A <strong>competitive learning network</strong> (CLN) is an <strong>unsupervised learning technique</strong> that is used to find similarities in examples in a dataset and therefore <strong>suggest groupings of the examples</strong>.  This is known as a clustering algorithm since it “clusters” the data examples together into similar groups.  It is called unsupervised because we do not tell the algorithm how to group the examples together.  It is left to its own devices to figure out any similarities in the data.<br />
A CLN is made up of two layers of nodes; an input layer and an output layer.  Each node in the input layer connects to every node in the output layer.  Each connection has a weight assigned to it.  The values assigned to these weights are where knowledge is stored in this network.  The each node in the input layer is associated with a feature in the dataset.  Each node in the output layer corresponds to a potential grouping of the data.<br />
<span id="more-109"></span><br />
To provide a clearer picture of how this all works, below are a table showing our animal dataset, and a diagram of how the CLN is set up.</p>
<p><img id="image111" src="http://www.answermysearches.com/wp-content/uploads/2006/05/Knight.png" alt="Knight[1]" /><br />
<em>Image from Knight[1]</em></p>
<p>The CLN learns by being having each record (stimuli) fed into the input layer and having the output nodes compete for control of that input.  It may sound complicated but it’s not.  In this sense “competing” just means that the output node with the highest weighted sum of its inputs “wins”.<br />
The winner gets all of his incoming weights from active nodes increased while the losers do not get their weights changed.  The effect of updating the weights like this is that the winner then becomes more likely to win a future input with similar attributes.<br />
There are a few different methods for increasing the weights and distributing the weights.  The most popular method is to increase each of the winner’s weights by following this formula :</p>
<pre>
weight_value = (learning_rate)*(input_value/number_non_zero_input_nodes)-(learning_rate*previous_weight_value)
</pre>
<p>The learning rate should be a small constant between 0 and 1.  I used 0.25 in my experiments.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><em>This is from a portion of a paper I wrote for a Neural Networks class I recently took.  <a href="http://www.blendedtechnologies.com/papers-i-wrote-for-my-neural-networks-class-this-spring/98">Read the full paper here</a>.</em></p>
<p>I know this material is tough when you&#8217;re starting out, so if you&#8217;re still confused just leave a comment and I&#8217;ll try to help you out.</p>
<p><strong>References:</strong><br />
1.	K. Knight, &#8220;Connectionist ideas and algorithms,&#8221; Communications of the ACM, vol. 33, no. 11, pp. 59&#8211;74, 1990.</p>
<p>[tags]Knight, Connectionist ideas, ACM, Neural Networks, Competitive Learning Network, Competitive Learning Networks, Cluster, Clustering, Unsupervised Learning[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/what-is-a-competitive-learning-network/109/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When is the KKD Cup for 2006</title>
		<link>http://www.answermysearches.com/when-is-the-kkd-cup-for-2006/78/</link>
		<comments>http://www.answermysearches.com/when-is-the-kkd-cup-for-2006/78/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 13:29:29 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Machine Learning]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/index.php/when-is-the-kkd-cup-for-2006/78/</guid>
		<description><![CDATA[Siemens Medical is providing a problem, to be posted May 1, 2006.
I wrote to gmelli_sigkdd@predictionworks.com to find out.  Hopefully it will be announced on their website soon.
What is the KDD Cup?  It&#8217;s an annual data mining competition that my company Blended Technologies will be participating in this year.
[tags]Data Mining, Data Mining Competition, KDD [...]]]></description>
			<content:encoded><![CDATA[<p>Siemens Medical is providing a problem, to be posted <strong>May 1, 2006</strong>.</p>
<p>I wrote to gmelli_sigkdd@predictionworks.com to find out.  Hopefully it will be announced on their website soon.</p>
<p><a href="http://www.acm.org/sigs/sigkdd/kddcup/index.php">What is the KDD Cup?</a>  It&#8217;s an annual data mining competition that my company <a href="http://www.blendedtechnologies.com/">Blended Technologies</a> will be participating in this year.</p>
<p>[tags]Data Mining, Data Mining Competition, KDD Cup[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/when-is-the-kkd-cup-for-2006/78/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Tell if a Binary Number is Divisible by Three</title>
		<link>http://www.answermysearches.com/how-to-tell-if-a-binary-number-is-divisible-by-three/70/</link>
		<comments>http://www.answermysearches.com/how-to-tell-if-a-binary-number-is-divisible-by-three/70/#comments</comments>
		<pubDate>Tue, 04 Apr 2006 03:59:49 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Idle Curiosities]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/index.php/how-to-tell-if-a-binary-number-is-divisible-by-three/70/</guid>
		<description><![CDATA[Answer:
If the number of even bits minus the number of odd bits is a multiple of 3 (e.g. -3,0,3,6, etc) then the number is divisible by three.

Example:
498 is evenly divisible by 3.  498 in binary is 111110010.
Counting from the right there are 3 even bits and 3 odd bits.
This was a question from my [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Answer:</strong><br />
If the number of even bits minus the number of odd bits is a multiple of 3 (e.g. -3,0,3,6, etc) then the number is divisible by three.<br />
<span id="more-70"></span><br />
<strong>Example:</strong><br />
498 is evenly divisible by 3.  498 in binary is 111110010.<br />
Counting from the right there are 3 even bits and 3 odd bits.</p>
<p>This was a question from my neural networks class and I couldn&#8217;t find any help on the internet.  I hope I&#8217;m not spoiling anyone&#8217;s homework by writing it here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/how-to-tell-if-a-binary-number-is-divisible-by-three/70/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
