Skip to content

Commit

Permalink
fix: replace GumbelSoftmax by Softmax (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquemy committed Jan 19, 2023
1 parent e75721f commit 3d58b58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ydata_synthetic/synthesizers/regular/cramergan/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ def build_model(self, input_shape, dim, data_dim, activation_info: Optional[Name
x = Dense(dim, activation='relu')(input_)
x = Dense(dim * 2, activation='relu')(x)
x = Dense(dim * 4, activation='relu')(x)
x = Dense(data_dim)(x)
if activation_info:
x = GumbelSoftmaxActivation(activation_info, tau=tau)(x)
x = Dense(data_dim, activation='softmax')(x)
return Model(inputs=input_, outputs=x)

class Critic(tf.keras.Model):
Expand Down

0 comments on commit 3d58b58

Please sign in to comment.