全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SPSS论坛
4791 3
2017-01-10
R的Amore包中实现BP神经网络初始化的函数为newff,而newff中并没有初始权值和阈值的设置,针对这个问题,我邮件询问了该包的作者,以下是问题和来来自作者的答复,供大家参考。
Question:
Hi,
I was wondering that where are the settings of [backcolor=rgba(0, 0, 0, 0)]weights and biases initiation in BP Neural Network  when we created a BP with Amore package? I have searched related functions like newff and train.
Hope for your reply soon.



Reply:
Hi!They are initiated using random values following a strategy described in Haykin's book.
Browsing the source might give you also the details.
Best
Manolo

作者回复中提到的关于权值和阈值初始化逻辑的书见该附件:


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-3-19 14:51:47
请问楼主怎么解决的呢?附件看过了还是不知道具体怎么操作。。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-7-21 10:27:04
同求楼主解决办法
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2019-12-16 21:24:33
方法写进newff()的源码中去了,你可以去看看这个函数的源代码,具体在这部分
#########################################
# Initialize the neuron bias and weights with random values according to the book:
# Neural Networks. A comprehensive foundation. 2nd Edition.
# Author: Simon Haykin.
# pages = 182, 183, 184.
#################################
random.init.MLPneuron <- function(net.number.weights, neuron) {
   extreme        <- sqrt(3/net.number.weights)
   n.weights      <- length(neuron$weights)
   neuron$weights <- runif(n.weights,min=-extreme,max=extreme)
   neuron$bias    <- runif(1,min=-extreme,max=extreme)
   return(neuron)
}
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群