问题描述
我对此帖子有疑问:在一行代码中使用鸡尾酒会算法SVD?
我意识到也有类似的问题.但是,请注意,我的特定问题使事情朝着新的方向发展,因为我正在寻找纯Python等效的东西.用Python 3.5编写时(相对于原始的Octave一行代码"),此过程是否优雅/简单?还包括与此应用程序相关的所有Python库.当然,如果事实证明Python根本不支持这种应用程序,请解释原因.
I realize there are similar questions to this. However, please note that my particular question takes things in a new direction, inasmuch that I'm looking for a purely Python equivalent. Is this procedure as elegant/simple when written in Python 3.5 (as opposed to the original Octave 'one line of code')? Also include any relevant Python libraries for this kind of application. Of course, if it turns out that Python is not equipped for this kind of application at all, please explain why.
我只是想征询一些专家意见,以了解它的外观和/或仅适用于Python 3.5.
I'm just seeking some expert opinions about what it might look like and/or the feasibility in Python 3.5 only.
推荐答案
如何使用numpy?使用此指南,我将语句翻译为
How about using numpy?Using this guide I translated the statement to
from numpy import *
U, S, Vh = linalg.svd(dot((tile(sum(x*x,0),(x.shape[0],1))*x),x.T))
它可以运行,但是我没有任何数据可以对其进行实际测试.
It runs but I do not have any data to actually test it.
这篇关于机器学习鸡尾酒会音频应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!