We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dropout in the code but got error
from tensorflow.keras import regularizers l2_reg = 0.03 dropout = 0.1 model = mm.DLRMModel( schema, embedding_dim=64, bottom_block=mm.MLPBlock([128, 64], dropout=0.2, kernel_regularizer=tf.keras.regularizers.L2(l2=l2_reg)), top_block=mm.MLPBlock([128, 64, 32], kernel_regularizer=tf.keras.regularizers.L2(l2=l2_reg)), prediction_tasks=mm.BinaryOutput(target_column), )
It raise AttributeError: 'Dropout' object has no attribute 'units'
The text was updated successfully, but these errors were encountered:
@liyunrui this PR #1018 should be solving this issue.
Sorry, something went wrong.
closing since this was solved via #1018.
rnyak
No branches or pull requests
Bug description
Add dropout in the code but got error
from tensorflow.keras import regularizers
l2_reg = 0.03
dropout = 0.1
model = mm.DLRMModel(
schema,
embedding_dim=64,
bottom_block=mm.MLPBlock([128, 64], dropout=0.2, kernel_regularizer=tf.keras.regularizers.L2(l2=l2_reg)),
top_block=mm.MLPBlock([128, 64, 32], kernel_regularizer=tf.keras.regularizers.L2(l2=l2_reg)),
prediction_tasks=mm.BinaryOutput(target_column),
)
It raise AttributeError: 'Dropout' object has no attribute 'units'
The text was updated successfully, but these errors were encountered: