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

Is the model training is wrong? #17

Open
eardic opened this issue Dec 12, 2021 · 1 comment
Open

Is the model training is wrong? #17

eardic opened this issue Dec 12, 2021 · 1 comment

Comments

@eardic
Copy link

eardic commented Dec 12, 2021

TMC-Shapley algorithm in the paper says that the model is trained for each new datum that is added to the batch. However, in the line below the model is trained only when the batch size is the same as the test size. Why is that so?

or len(set(y_batch)) == len(set(self.y_test))): ##FIXIT

Thanks.

@camhpj
Copy link

camhpj commented Sep 27, 2023

This is a check to ensure that the batch contains both positive and negative labels. Whatever model you are using will error if only 1 unique label is present.

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