How do use the newgrnn function for 5 featured data?
28 次查看(过去 30 天)
显示 更早的评论
when i was using this newgrnn function matlab was showing an error.. inputs is a matrix of dimensions 2000x5 and output is a matrix of dimensions 2000x1.. this was the error which i got.. anyone please help.. thanks
>> net=newgrnn(inputs_train,AQI_train)
Error using network/subsasgn>network_subsasgn (line 528)
net.IW{1,1} must be a 1-by-2000 matrix.
Error in network/subsasgn (line 13) net = network_subsasgn(net,subscripts,v,netname);
Error in newgrnn>create_network (line 123) net.iw{1,1} = p';
Error in newgrnn (line 67) net = create_network(param); end
0 个评论
回答(1 个)
Greg Heath
2017-3-20
In most NN Toolbox functions: For N pairs of I-dimensional "I"nputs and corresponding O-dimensional "O"utput targets
[ I N ] = size(input)
and
[ O N ] = size(target)
Hope this helps
Thank you for formally accepting my answer
Greg
3 个评论
Greg Heath
2017-3-22
Exactly as shown in the documentation
help newgrnn
and
doc newgrnn
Hope this helps.
Greg
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!