 |
|
| Computers Forum Index » Computer Artificial Intelligence - Neural Nets » Adding Regularization in netlab... |
|
Page 1 of 1 |
|
| Author |
Message |
| David... |
Posted: Sun Sep 27, 2009 5:58 pm |
|
|
|
Guest
|
Hi,
I would like to find out how to add regulariztion to an error function
in netlab tool box.
Thank you very much.
David |
|
|
| Back to top |
|
|
|
| GavinCawley at (no spam) googlemail.com... |
Posted: Mon Sep 28, 2009 11:06 am |
|
|
|
Guest
|
On Sep 27, 6:58 pm, David <dtian.ty... at (no spam) googlemail.com> wrote:
Quote: Hi,
I would like to find out how to add regulariztion to an error function
in netlab tool box.
Thank you very much.
David
netlab already includes regularisation, see help mlp
NET = MLP(NIN, NHIDDEN, NOUT, FUNC, PRIOR)
here if prior is a scalar value (e.g. 0.01) then it is the
regularisation constant for the weight-decay type regulariser that
NETLAB uses. For setting the value of the parameter, it is probably
best to use the evidence framework (help evidence), there are a couple
of demos that give a good idea, e.g, demev1.m
HTH
Gavin |
|
|
| Back to top |
|
|
|
| David... |
Posted: Mon Sep 28, 2009 2:31 pm |
|
|
|
Guest
|
On 28 Sep, 12:06, "GavinCaw... at (no spam) googlemail.com"
<gavincaw... at (no spam) googlemail.com> wrote:
Quote: On Sep 27, 6:58 pm, David <dtian.ty... at (no spam) googlemail.com> wrote:
Hi,
I would like to find out how to add regulariztion to an error function
in netlab tool box.
Thank you very much.
David
netlab already includes regularisation, see help mlp
NET = MLP(NIN, NHIDDEN, NOUT, FUNC, PRIOR)
here if prior is a scalar value (e.g. 0.01) then it is the
regularisation constant for the weight-decay type regulariser that
NETLAB uses. For setting the value of the parameter, it is probably
best to use the evidence framework (help evidence), there are a couple
of demos that give a good idea, e.g, demev1.m
HTH
Gavin
Gavin
Thank you very much. In fact, I had a look at the help information of
mlp. It does not mention regularization at all, so I asked the
question. I guess a lot of new users of netlab do not know about the
meaning of PRIOR in mlp function.
David |
|
|
| Back to top |
|
|
|
| GavinCawley at (no spam) googlemail.com... |
Posted: Mon Sep 28, 2009 3:40 pm |
|
|
|
Guest
|
On Sep 28, 3:31 pm, David <dtian.ty... at (no spam) googlemail.com> wrote:
Quote: On 28 Sep, 12:06, "GavinCaw... at (no spam) googlemail.com"
gavincaw... at (no spam) googlemail.com> wrote:
On Sep 27, 6:58 pm, David <dtian.ty... at (no spam) googlemail.com> wrote:
Hi,
I would like to find out how to add regulariztion to an error function
in netlab tool box.
Thank you very much.
David
netlab already includes regularisation, see help mlp
NET = MLP(NIN, NHIDDEN, NOUT, FUNC, PRIOR)
here if prior is a scalar value (e.g. 0.01) then it is the
regularisation constant for the weight-decay type regulariser that
NETLAB uses. For setting the value of the parameter, it is probably
best to use the evidence framework (help evidence), there are a couple
of demos that give a good idea, e.g, demev1.m
HTH
Gavin
Gavin
Thank you very much. In fact, I had a look at the help information of
mlp. It does not mention regularization at all, so I asked the
question. I guess a lot of new users of netlab do not know about the
meaning of PRIOR in mlp function.
David
I think it probably helps to have read the book by Bishop, which has a
subtle Bayesian bias, which explains why the regularisation parameters
are discussed in terms of priors (the weight decay regulariser
corresponds to a Gaussian prior over the weights in Bayesian
terminology). Netlab is a great peice of kit, I am using it for a
study on Bayesian regularisation that I am running at the moment (and
have been for about a year so far!) and it has proven remarkably
robust for free software.
There is a book by Ian Nabney, "NETLAB algorithms for pattern
recognition", Springer Verlag, series on advances in pattern
recognition, ISBN 1-85233-440-1, which describes the inner workings of
NETLAB in greater detail. If you use NETLAB a lot, or want to extend
it in someway, I can strongly recommend getting hold of a copy. |
|
|
| Back to top |
|
|
|
| David... |
Posted: Mon Sep 28, 2009 5:14 pm |
|
|
|
Guest
|
On 28 Sep, 16:40, "GavinCaw... at (no spam) googlemail.com"
<gavincaw... at (no spam) googlemail.com> wrote:
Quote: On Sep 28, 3:31 pm, David <dtian.ty... at (no spam) googlemail.com> wrote:
On 28 Sep, 12:06, "GavinCaw... at (no spam) googlemail.com"
gavincaw... at (no spam) googlemail.com> wrote:
On Sep 27, 6:58 pm, David <dtian.ty... at (no spam) googlemail.com> wrote:
Hi,
I would like to find out how to add regulariztion to an error function
in netlab tool box.
Thank you very much.
David
netlab already includes regularisation, see help mlp
NET = MLP(NIN, NHIDDEN, NOUT, FUNC, PRIOR)
here if prior is a scalar value (e.g. 0.01) then it is the
regularisation constant for the weight-decay type regulariser that
NETLAB uses. For setting the value of the parameter, it is probably
best to use the evidence framework (help evidence), there are a couple
of demos that give a good idea, e.g, demev1.m
HTH
Gavin
Gavin
Thank you very much. In fact, I had a look at the help information of
mlp. It does not mention regularization at all, so I asked the
question. I guess a lot of new users of netlab do not know about the
meaning of PRIOR in mlp function.
David
I think it probably helps to have read the book by Bishop, which has a
subtle Bayesian bias, which explains why the regularisation parameters
are discussed in terms of priors (the weight decay regulariser
corresponds to a Gaussian prior over the weights in Bayesian
terminology). Netlab is a great peice of kit, I am using it for a
study on Bayesian regularisation that I am running at the moment (and
have been for about a year so far!) and it has proven remarkably
robust for free software.
There is a book by Ian Nabney, "NETLAB algorithms for pattern
recognition", Springer Verlag, series on advances in pattern
recognition, ISBN 1-85233-440-1, which describes the inner workings of
NETLAB in greater detail. If you use NETLAB a lot, or want to extend
it in someway, I can strongly recommend getting hold of a copy.- Hide quoted text -
- Show quoted text -
Thank you very much for your suggestion. I have a copy of the book
"Neural Networks for Pattern Recognition" by Chris Bishop. I have read
a few chapters of the book. It seems to describe neural nets in the
aspects of statistical pattern recognition. I think I will finish
reading the book ASAP.
In fact, I did my MSc in machine learning at Edinburgh University in
2002/2003 and met Prof. Bishop there once. However, one of our
lecturers then discouraged us from using neural networks in our
research, because he thought Bayesian methods were better than neural
nets. The former take account of knowledge of the problems and easy to
train to get a high accuracy. Whereas, the latter is 'very difficult'
to train to get good results. So I avoided using neural nets for my
PhD research - PhD obtained in July 09 and I used Rough Set Feature
Selection and C4.5 decision tree - but then I realised that jobs in
machine learning involves neural nets as well as Bayesian nets, so I
am picking nn up. I will keep using netlab in my research. Thank you
for suggesting the book "Netlab algorithms for pattern recognition". I
will think about getting a copy of it.
David |
|
|
| Back to top |
|
|
|
|
|
All times are GMT
The time now is Sat Nov 28, 2009 10:34 pm
|
|