Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Fix reference before assignment in DataSilo#738

Merged
Timoeller merged 1 commit intomasterfrom
fix_evaluation
Mar 9, 2021
Merged

Fix reference before assignment in DataSilo#738
Timoeller merged 1 commit intomasterfrom
fix_evaluation

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants