DEC-Keras
DEC-Keras copied to clipboard
loss: nan
HI,
i have this value. Any ideas?
Facing same issue with simple code
c = DeepEmbeddingClustering(n_clusters=10, input_dim=17)
c.initialize(X, finetune_iters=100, layerwise_pretrain_iters=500)
c.cluster(X, y=labels)
the loss is quickly reaching nan
even before one full iteration
check if any column has all zero value and remove them , the another thing you can do is reduce learning rate. I think by reducing learning rate may fix this issue.