DEC-Keras icon indicating copy to clipboard operation
DEC-Keras copied to clipboard

loss: nan

Open antoniosap opened this issue 7 years ago • 2 comments

HI,

i have this value. Any ideas?

antoniosap avatar Jan 15 '18 18:01 antoniosap

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

dipanjannag avatar May 17 '18 08:05 dipanjannag

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.

ganaz avatar May 30 '18 18:05 ganaz