Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix reference before assignment in DataSilo #738

Merged
merged 1 commit into from
Mar 9, 2021
Merged

Conversation

bogdankostic
Copy link
Contributor

When using the DataSilo without train set (e.g. in evaluation), we get UnboundLocalError: local variable 'ave_len' referenced before assignment because ave_len and clipped are only defined for train sets. This PR sets these variables to a default value of -1if no train set is given.

@bogdankostic bogdankostic requested a review from Timoeller March 9, 2021 10:47
Copy link
Contributor

@Timoeller Timoeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@Timoeller Timoeller merged commit ae4b515 into master Mar 9, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants