我正在尝试使用 Tensorflow 的 tf.learn(skflow) 实现高斯混合模型,但出现以下错误。
from tensorflow.contrib.factorization.python.ops import gmm as gmm_lib
import random
import numpy as np
x = np.array([[random.random() for i in range(198)] for j in range(2384)], dtype=np.float32)
gmm = gmm_lib.GMM(128,random_seed=0)
gmm.fit(x)
错误堆栈跟踪:-
InvalidArgumentError (see above for traceback): Input is not invertible.
[[Node: MatrixInverse_2 = MatrixInverse[T=DT_FLOAT, adjoint=false, _device="/job:localhost/replica:0/task:0/cpu:0"](add_138)]]