Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!33g2000vbe.googlegroups.com!not-for-mail
From: Greg Heath <heath@alumni.brown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: tansig or logsig
Date: Wed, 4 Nov 2009 19:22:43 -0800 (PST)
Organization: http://groups.google.com
Lines: 33
Message-ID: <049663d7-2635-4135-a246-55aaf0202d84@33g2000vbe.googlegroups.com>
References: <86d4d465-3c62-4564-aa8a-1382203b3fae@l13g2000yqb.googlegroups.com>
NNTP-Posting-Host: 69.141.163.135
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257391363 12757 127.0.0.1 (5 Nov 2009 03:22:43 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 5 Nov 2009 03:22:43 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 33g2000vbe.googlegroups.com; posting-host=69.141.163.135; 
	posting-account=mUealwkAAACvQrLWvunjg50tRAnsNtJR
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
	2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:582601


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