Thread Subject: tansig or logsig

Subject: tansig or logsig

From: Ali

Date: 3 Nov, 2009 20:22:54

Message: 1 of 2

hi guys,
Is it better to use 'logsig' or 'tansig' for transfer function of
output layer? is it important?


if we use tansig, can we use output data in [0 1] range (normalize)?

Subject: tansig or logsig

From: Greg Heath

Date: 5 Nov, 2009 03:22:43

Message: 2 of 2

On Nov 3, 3:22 pm, Ali <vahed.k...@gmail.com> wrote:
> hi guys,
> Is it better to use 'logsig' or 'tansig' for transfer function of
> output layer? is it important?
>
> if we use tansig, can we use output data in [0 1] range (normalize)?

It depends on the output scaling.

For regression with no natural finite bounds (e.g., [0,2*pi) for
angles)
I standardize the outputs (zero mean and unit variance) and use
PURELIN.

For regression with natural finite bounds (e.g., [0,2*pi) for angles)
I normalize the outputs to [-1,1] and use TANSIG. Also used for
bipolar binary representations.

For classification the class targets are coded using columns of the
unit matrix so that outputs represent posterior probabilities
estimates.
LOGSIG is the proper choice for this scenario and , im general,
for unipolar binary inputs.

See my post on pretraining advice:

http://groups.google.com/group/comp.soft-sys.matlab/msg/0d24fcb92959575a?hl=en


Hope this helps.

Greg

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com