https://robin.wiki.ifi.uio.no/index.php?title=RapidMiner&feed=atom&action=historyRapidMiner - Revision history2024-03-28T23:46:29ZRevision history for this page on the wikiMediaWiki 1.15.3https://robin.wiki.ifi.uio.no/index.php?title=RapidMiner&diff=1044&oldid=prevKrisny: /* Optimising SVM Parameters */2010-10-21T11:35:36Z<p><span class="autocomment">Optimising SVM Parameters</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 11:35, 21 October 2010</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 26:</td>
<td colspan="2" class="diff-lineno">Line 26:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Run grid.py with the name of your data file as an argument, and you will get a plot showing the best parameters for the libsvm classifier (C and gamma).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Run grid.py with the name of your data file as an argument, and you will get a plot showing the best parameters for the libsvm classifier (C and gamma).</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* If your python script gives an error message, saying it cannot find gnuplot executable, localize gnuplot on your computer, and change the line in the python script accordingly. Using the instructions on this page, gnuplot has been found to install in /opt/local/bin directory, and not /usr/local/bin which is the default in the grid.py script.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* If your python script gives an error message, saying it cannot find gnuplot executable, localize gnuplot on your computer, and change the line in the python script accordingly. Using the instructions on this page, gnuplot has been found to install in <ins class="diffchange diffchange-inline">''</ins>/opt/local/bin<ins class="diffchange diffchange-inline">'' </ins>directory, and not <ins class="diffchange diffchange-inline">''</ins>/usr/local/bin<ins class="diffchange diffchange-inline">'' </ins>which is the default in the grid.py script.</div></td></tr>
<!-- diff generator: internal 2024-03-28 23:46:29 -->
</table>Krisnyhttps://robin.wiki.ifi.uio.no/index.php?title=RapidMiner&diff=1043&oldid=prevKrisny: /* Optimising SVM Parameters */2010-10-21T11:34:23Z<p><span class="autocomment">Optimising SVM Parameters</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 11:34, 21 October 2010</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 26:</td>
<td colspan="2" class="diff-lineno">Line 26:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Run grid.py with the name of your data file as an argument, and you will get a plot showing the best parameters for the libsvm classifier (C and gamma).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Run grid.py with the name of your data file as an argument, and you will get a plot showing the best parameters for the libsvm classifier (C and gamma).</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* If your python script gives an error message, saying it cannot find gnuplot executable, localize gnuplot on your computer, and change the line in the python script accordingly. Using the instructions on this page, gnuplot has been found to install in /opt/local/bin directory, and not /usr/local/bin which is the default in the grid.py script.</ins></div></td></tr>
<!-- diff generator: internal 2024-03-28 23:46:29 -->
</table>Krisnyhttps://robin.wiki.ifi.uio.no/index.php?title=RapidMiner&diff=1041&oldid=prevKrisny at 10:27, 21 October 20102010-10-21T10:27:06Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:27, 21 October 2010</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Download Rapidminer from the [http://rapid-i.com/content/view/26/84/ rapid-i website].</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Download Rapidminer from the [http://rapid-i.com/content/view/26/84/ rapid-i website].</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"> </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"><br></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"> </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Using SVM Classifier ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Using SVM Classifier ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The SVM classifier in Rapidminer is based on LIBSVM. </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The SVM classifier in Rapidminer is based on LIBSVM. </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"> </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"><br></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 13:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>To calculate the best parameters for the classifier, the python script grid.py in the LIBSVM distribution is handy. This is how you install and use it:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>To calculate the best parameters for the classifier, the python script grid.py in the LIBSVM distribution is handy. This is how you install and use it:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"><br></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"> </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*Download [http://www.csie.ntu.edu.tw/~cjlin/libsvm/ LIBSVM]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*Download [http://www.csie.ntu.edu.tw/~cjlin/libsvm/ LIBSVM]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> </div></td></tr>
<!-- diff generator: internal 2024-03-28 23:46:29 -->
</table>Krisnyhttps://robin.wiki.ifi.uio.no/index.php?title=RapidMiner&diff=1040&oldid=prevKrisny: Ny side: == Installation == Download Rapidminer from the [http://rapid-i.com/content/view/26/84/ rapid-i website]. <br> == Using SVM Classifier == The SVM classifier in Rapidminer is based…2010-10-21T10:26:44Z<p>Ny side: == Installation == Download Rapidminer from the [http://rapid-i.com/content/view/26/84/ rapid-i website]. <br> == Using SVM Classifier == The SVM classifier in Rapidminer is based…</p>
<p><b>New page</b></p><div>== Installation ==<br />
<br />
Download Rapidminer from the [http://rapid-i.com/content/view/26/84/ rapid-i website].<br />
<br />
<br />
<br><br />
<br />
<br />
== Using SVM Classifier ==<br />
<br />
The SVM classifier in Rapidminer is based on LIBSVM. <br />
<br />
<br />
<br><br />
<br />
<br />
=== Optimising SVM Parameters ===<br />
<br />
To calculate the best parameters for the classifier, the python script grid.py in the LIBSVM distribution is handy. This is how you install and use it:<br />
<br />
<br />
<br><br />
<br />
<br />
*Download [http://www.csie.ntu.edu.tw/~cjlin/libsvm/ LIBSVM]<br />
<br />
*Install [[Gnuplot]]<br />
<br />
*Make sure the data is formatted properly. All attributes must be scaled between -1 and 1. The data must be in a text file where each line represents an instance in the classification set. The first value is the correct class, 1:first-attribute 2:second-attribute, and so forth. The example below shows the proper format for two instances of class 1 and two instances of class 2, with four attributes.<br />
<pre><br />
1 1:1.000 2:-0.543 3:-0.767 4:-0.253<br />
1 1:-0.184 2:0.144 3:-0.647 4:-0.271 <br />
2 1:-0.684 2:-0.542 3:0.723 4:-0.244 <br />
2 1:-0.964 2:-1.000 3:0.111 4:-0.472 <br />
</pre><br />
<br />
* Run grid.py with the name of your data file as an argument, and you will get a plot showing the best parameters for the libsvm classifier (C and gamma).</div>Krisny