多维问题的神经网络
我想知道神经网络是否可以对矩阵进行操作,说我想:
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的数组
有什么想法吗?
谢谢
I'm wondering if it's possible for Neural Network to operate on matrices say I want to:
A(i)=matrix(10,10) -> B(i)=matrix(10,10)
input = vector of matrices, i = sample size
output = vector of matrices
Say I would like to guess an matrix operation transforming matrix into another matrix ie
f(A(i,j))=2*A(i,j)*b
Matlab does not take arrays with dimension >2 in NNtool
Any idea?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以简单地将数组转换为向量,然后再将它们传递给 NNtool。它不会对你的计算结果产生影响。
换句话说,您不是将
A(:,:,i)
传递给 NNtool,而是传递reshape(A(:,:,i),[],1)
。然后,使用B = reshape(outputOfNNtool,10,10)
将输出重新整形为 10x10 数组。You can simply convert the arrays into vectors before passing them to NNtool. It won't make a difference for the result of your calculation.
In other words, instead of passing
A(:,:,i)
to NNtool, you passreshape(A(:,:,i),[],1)
. Then you reshape the output into a 10x10 array by usingB = reshape(outputOfNNtool,10,10)
.