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

fix new_category_train_test.py display #2430

Merged
merged 1 commit into from Mar 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -126,7 +126,7 @@ def run_logic(self, context: Context) -> CheckResult:
display = result_data.copy()
display['Ratio of New Categories'] = display['Ratio of New Categories'].apply(format_percent)
display['# New Categories'] = display['# New Categories'].apply(format_number)
display['Examples'] = display['New categories']. \
display['New Categories Names'] = display['New categories']. \
apply(lambda x: x[:self.max_new_categories_to_show])
display.drop('New categories', axis=1, inplace=True)
display = display.iloc[:self.max_features_to_show, :]
Expand Down