MATLAB 帮助中心
配置网络输入和输出,以最好地匹配输入数据和目标数据
net = configure(net,x,t)
net = configure(net,x)
net = configure(net,'inputs',x,i)
net = configure(net,'outputs',t,i)
net = configure(net,x,t) 接受输入数据 x 和目标数据 t,并配置网络的输入和输出以匹配输入数据和目标数据。
net
x
t
配置是设置网络输入和输出大小和范围、输入预处理设置和输出后处理设置以及权重初始化设置以匹配输入数据和目标数据的过程。
在初始化网络的权重和偏置之前,必须进行配置。如果网络未配置,第一次调用 train 时系统会自动对网络进行配置和初始化。或者,可以通过调用该函数或通过手动设置网络的输入和输出大小、范围、处理设置和初始化设置属性来手动配置网络。
train
示例
net = configure(net,x) 仅配置输入。
net = configure(net,'inputs',x,i) 配置使用索引向量 i 指定的输入。如果未指定 i,则配置所有输入。
i
net = configure(net,'outputs',t,i) 配置使用索引向量 i 指定的输出。如果未指定 i,则配置所有输出。
全部折叠
configure
此示例说明如何针对简单拟合问题手动配置网络,而不是使用训练函数。
[x,t] = simplefit_dataset; net = feedforwardnet(20); view(net)
net = configure(net,x,t); view(net)
network
输入网络,指定为网络对象。要创建网络对象,请使用 feedforwardnet 或 narxnet 等函数。
feedforwardnet
narxnet
网络输入,指定为矩阵。
网络目标,指定为矩阵。
要配置的输入或输出的索引,指定为向量。
已配置的网络,以网络对象形式返回。
在 R2010b 中推出
isconfigured | unconfigure | init | train
isconfigured
unconfigure
init
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处