<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264875</link>
    <title>MATLAB Central Newsreader - tansig or logsig</title>
    <description>Feed for thread: tansig or logsig</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 03 Nov 2009 20:22:54 -0500</pubDate>
      <title>tansig or logsig</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264875#691829</link>
      <author>Ali</author>
      <description>hi guys,&lt;br&gt;
Is it better to use 'logsig' or 'tansig' for transfer function of&lt;br&gt;
output layer? is it important?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
if we use tansig, can we use output data in [0 1] range (normalize)?</description>
    </item>
    <item>
      <pubDate>Thu, 05 Nov 2009 03:22:43 -0500</pubDate>
      <title>Re: tansig or logsig</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264875#692270</link>
      <author>Greg Heath</author>
      <description>On Nov 3, 3:22&#160;pm, Ali &amp;lt;vahed.k...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; hi guys,&lt;br&gt;
&amp;gt; Is it better to use 'logsig' or 'tansig' for transfer function of&lt;br&gt;
&amp;gt; output layer? is it important?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if we use tansig, can we use output data in [0 1] range (normalize)?&lt;br&gt;
&lt;br&gt;
It depends on the output scaling.&lt;br&gt;
&lt;br&gt;
For regression with no natural finite bounds (e.g., [0,2*pi) for&lt;br&gt;
angles)&lt;br&gt;
I standardize the outputs (zero mean and unit variance) and use&lt;br&gt;
PURELIN.&lt;br&gt;
&lt;br&gt;
For regression with natural finite bounds (e.g., [0,2*pi) for angles)&lt;br&gt;
I normalize the outputs to [-1,1] and use TANSIG. Also used for&lt;br&gt;
bipolar binary representations.&lt;br&gt;
&lt;br&gt;
For classification the class targets are coded using columns of the&lt;br&gt;
unit matrix so that outputs represent posterior probabilities&lt;br&gt;
estimates.&lt;br&gt;
LOGSIG is the proper choice for this scenario and , im general,&lt;br&gt;
for unipolar binary inputs.&lt;br&gt;
&lt;br&gt;
See my post on pretraining advice:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://groups.google.com/group/comp.soft-sys.matlab/msg/0d24fcb92959575a?hl=en&quot;&gt;http://groups.google.com/group/comp.soft-sys.matlab/msg/0d24fcb92959575a?hl=en&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg</description>
    </item>
  </channel>
</rss>

