michetonu / gradient_reversal_keras_tf

Keras implementation of a gradient reversal layer for the Tensorflow backend
GNU General Public License v3.0
91 stars 24 forks source link

Do you have the sample code for DANN in keras?. #2

Closed bbdamodaran closed 2 years ago

bbdamodaran commented 6 years ago

I implemented DANN in keras using your gradient reversal layer, but I don't good results. It will be nice, if could share your code

thanks

michetonu commented 5 years ago

@bbdamodaran super late, but I only recently got around to put the code for the whole model online. Here it is: https://github.com/michetonu/DA-RNN_manoeuver_anticipation

michetonu commented 5 years ago

My best advice is to try and optimize the parameter lambda – i.e. how much weight to give to each branch of the model. It is still not guaranteed to work for all data and problems though!