登录论坛

查看完整版本 : 多维问题的神经网络


poster
2019-12-10, 20:48
我想知道神经网络是否有可能在矩阵上运行,我想这样做:

A(i)=matrix(10,10) -> B(i)=matrix(10,10) input = vector of matrices, i = sample size output = vector of matrices 说我想猜一个矩阵运算将矩阵转换成另一个矩阵,即

f(A(i,j))=2*A(i,j)*b Matlab在NNtool中不接受维数大于2的数组

任何的想法?

谢谢



回答:

您可以简单地将数组转换为向量,然后再将其传递给NNtool。它不会影响您的计算结果。

换句话说,您没有传递A(:,:,i)到NNtool,而是传递了reshape(A(:,:,i),[],1) 。然后,使用B = reshape(outputOfNNtool,10,10)将输出重塑为10x10数组。



更多&回答... (https://stackoverflow.com/questions/3478459)