java jama数组问题

发布于 2024-08-20 01:51:18 字数 199 浏览 2 评论 0原文

我之前问过一个问题,但达菲莫说不清楚,所以我要在这里再次发布。 我正在使用 Jama api 进行 SVD 计算。我非常了解 jama 和 SVD。 如果您的列多于行,Jama 将不起作用。我有这种情况。我应该怎么办??有什么帮助吗? 我也无法转置矩阵,因为它可能会产生错误的结果。 谢谢。

PS:我正在jama的帮助下计算LSI。我要像列(文档)和行(术语)

I asked a question before but duffymo said it is not clear so i am going to post it again here.
I am using Jama api for SVD calculation. I know very well about jama and SVD.
Jama does not work if your column are more than rows. I have this situation. What should I do?? any help?
I can't transpose the matrix too as it can produce wrong results.
Thanks.

P.S: I am calculating LSI with the help of jama. I am going like column(docs) and rows ( terms )

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

给我一枪 2024-08-27 01:51:18

为什么不使用转置?如果 X = USV',则 X' = VS'U'。正确的?

转置你的矩阵。得到 U、S 和 V。将所有内容转回原处。

Why not use transpose? If X = USV', then X' = VS'U'. Right?

Transpose your matrix. Get U, S and V. Transpose everything back.

吲‖鸣 2024-08-27 01:51:18

如果我理解正确的话,您正在尝试计算非方阵的 SVD,并且您有仅适用于方阵的 JAMA 库?如果我理解正确,那么你的问题的答案是显而易见的:获取一个计算非方阵 SVD 的库。如果我没记错的话,Numerical Recipes 包含这样的算法,我希望您可以通过 Google 找到许多其他资源。

If I understand correctly you are trying to compute the SVD of a matrix which is not square, and you have the library JAMA which only works on square matrices? If I have understood you correctly then the answer to your question is obvious: Get a library which does compute SVD for non-square matrices. If I remember correctly Numerical Recipes contains such an algorithm, I expect you can find many other sources with Google.

娜些时光,永不杰束 2024-08-27 01:51:18

由于您正在开发 LSI,因此可以使用 SVDLIBJ,它是 SVDLIBC 的 Java 等效项,而 SVDLIBC 是免费提供的最具可扩展性的 SVD 实现之一。 S-Space 软件包有一个 SVDLIBJ 的命令行工具已设置。此外,如果更适合您的需求,您可以使用他们的 Matrix 库并避免使用命令行。

Since you're doing LSI, you could use SVDLIBJ, which is the Java equivalent of SVDLIBC, which is one of the most scalable SVD implementations that is freely available. The S-Space package has a command-line tool for SVDLIBJ set up already. Also, you can use their Matrix libraries and avoid the command-line if that fits your needs better.

牵强ㄟ 2024-08-27 01:51:18

我现在回复实在是太晚了。但我认为迟到总比不到好

但我知道 jblas 以有效的方式执行 svd。

I now it is a really late reply . But i thought it is better late than never

But i am aware that jblas performs svd in a effective manner.

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