Skip to content

Conversation

@krivard
Copy link
Contributor

@krivard krivard commented Jun 12, 2020

Indicators will do their own sample size validation from here on out.

This is necessary for the safegraph indicator, which uses a special definition of sample size (requested by forecasting) that is not based on individual users but on clusters.

# expected a number, but got a string
return (None, 'sample_size')
if sample_size is not None and sample_size < CsvImporter.MIN_SAMPLE_SIZE:
return (None, 'sample_size')
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably can also remove the definition of MIN_SAMPLE_SIZE at the top of the file

@capnrefsmmat
Copy link
Contributor

Looks fine modulo eliminating dead constants

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

Successfully merging this pull request may close these issues.

2 participants