Skip to content
New issue

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

Its great code implementation. Thank you. I have one question that in model.fit why training labels are zeros #2

Open
gashishoo7 opened this issue Aug 30, 2022 · 1 comment

Comments

@gashishoo7
Copy link

I have one question that why labels are zeros in model.fit training funtion.
model.fit(
x=[train_set_x1, train_set_x2],
y=np.zeros(len(train_set_x1)),
batch_size=batch_size,
epochs=epoch_num,
shuffle=True,
validation_data=([valid_set_x1, valid_set_x2], np.zeros(len(valid_set_x1))),
callbacks=[checkpointer],
)

@sumit7692
Copy link

Because DCCA is a self-supervised model and does not require labels, but due to constraints of model.fit, y=np.zeros(len(train_set_x1)) is used. If you go through the objective function, training labels are not used. Those are just dummy values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants