Keras: How to choose the loss function for Binary Autoencoders

Created on 31 Mar 2016  路  4Comments  路  Source: keras-team/keras

Hi all,

I wish to train a stacked auto-encoder, but the input vectors* are binary, ie [0,0,1,1,0,1..1], and they are quite sparse......*

so picking the loss function as mse doesnt work so well, I wish to know
1) will it makes sense changing the last layer of decoder into a softmax activation *
2) which *
loss function
should I use.

Thanks

stale

Most helpful comment

@kingfengji How did you finally fix that problem?

All 4 comments

binary_crossentropy

@lemuriandezapada
no, it is not a one-hot vector, it has multiple ones in it.

@kingfengji How did you finally fix that problem?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yil8 picture yil8  路  3Comments

harishkrishnav picture harishkrishnav  路  3Comments

zygmuntz picture zygmuntz  路  3Comments

vinayakumarr picture vinayakumarr  路  3Comments

farizrahman4u picture farizrahman4u  路  3Comments