Kamnitsask / ssl_compact_clustering

Semi-supervised learning via Compact Latent Space Clustering
Apache License 2.0
47 stars 10 forks source link

Existence of inverse matrix (I_uu-H_uu) #2

Closed sh0416 closed 4 years ago

sh0416 commented 4 years ago

Hi,

I am working on reproducing your work using pyTorch.

I have trouble with matrix inverse.

I saw that you use tf.matrix_inverse to compute matrix inverse.

However, I think that some I_uu - H_uu doesn't full rank so that that matrix is not invertible.

In tensorflow doc,

If a matrix is not invertible there is no guarantee what the op does. It may detect the condition and raise an exception or it may simply return a garbage result.

Is there any guarantee that I_uu - H_uu is always invertible??

Thanks,

sh0416 commented 4 years ago

Ah, I found that you use some smooth function for this..

Close issue,