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

DataQualityPreset fails to recognize id column from column mapping #467

Closed
NataliaTarasovaNatoshir opened this issue Nov 30, 2022 · 0 comments · Fixed by #472
Closed

DataQualityPreset fails to recognize id column from column mapping #467

NataliaTarasovaNatoshir opened this issue Nov 30, 2022 · 0 comments · Fixed by #472
Assignees
Labels
bug Something isn't working

Comments

@NataliaTarasovaNatoshir
Copy link
Contributor

When running DataQualityReport I get an error "ValueError: column id not in num, cat or datetime features lists" in google Colab.

Example:

column_mapping = ColumnMapping()
column_mapping.target = 'label_num'
column_mapping.id = 'id'
column_mapping.prediction = 'predict_proba'
column_mapping.target_names = ['ham', 'spam']
column_mapping.task = 'classification'
column_mapping.numerical_features = ['text_length', 'non_letter_share', 'oov_share', 'sender_employment_length']
column_mapping.categorical_features = ['listed_words_present', 'company_name']

data_quality_report = Report(metrics=[DataQualityPreset()])

data_quality_report.run(reference_data=reference, current_data=current, column_mapping=column_mapping)
data_quality_report

@emeli-dral emeli-dral added the bug Something isn't working label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants