Open AbnerAI opened 5 years ago
Hey @AbnerAi
so I want to know if I can completely customize the loss function?
Yes, you can. As this is a Keras implementation you can use the Keras API to define custom metrics as well as losses.
For example, here is a question of an implementation of the Jaccard index, as well as the loss, in Keras. You can then pass the name of the loss to the model and compile it.
I think we should use (loss='mse', optimizer='adam') . Because Unet is likely kind of Autoencoder huh?
Hi,ZhiXuHao: good evening! I found that the loss function here just passes a loss function name, so I want to know if I can completely customize the loss function? model.compile(optimizer=Adam(lr=1e-4), loss='binary_crossentropy', metrics=['accuracy'])