多维问题的神经网络

发布于 2024-09-14 21:56:46 字数 319 浏览 2 评论 0原文

我想知道神经网络是否可以对矩阵进行操作,说我想:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不甘平庸 2024-09-21 21:56:46

您可以简单地将数组转换为向量,然后再将它们传递给 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 pass reshape(A(:,:,i),[],1). Then you reshape the output into a 10x10 array by using B = reshape(outputOfNNtool,10,10).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文