philipperemy / cond_rnn

Conditional RNNs for Tensorflow / Keras.
MIT License
222 stars 33 forks source link

Use regularization method in cond_rnn #10

Closed Zekai-Wang closed 3 years ago

Zekai-Wang commented 3 years ago

Thank you so much for your work, very excellent library. I'm trying to use this library in my project, but I encounter a problem: I'd like to use regularizer method such as 'kernel_regularizer' in ConditionalRNN layer, but I found it can't support regularizer method in ConditionalRNN. I check the tensorflow document, it seems that "tf.keras.layers.rnn" doesn't have "kernel_regularizer" argument, so may I ask how to use regularizer in ConditionalRNN? Thanks

Screen Shot 2020-10-26 at 7 52 19 PM Screen Shot 2020-10-26 at 7 55 21 PM
philipperemy commented 3 years ago

@Zekai-Wang sorry for the wait. I pushed a new version that can handle all that: https://github.com/philipperemy/cond_rnn/commit/5db67929e7bcb1901bcbb20567be9c1848671689.

pip install cond-rnn --upgrade