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

"missing" roi_id column when applying classifier to new data according to the example notebook #43

Open
MaksHess opened this issue Mar 8, 2024 · 0 comments

Comments

@MaksHess
Copy link
Collaborator

MaksHess commented Mar 8, 2024

Kelvin ran into an issue where he could not apply the classifier to new data according to this notebook: simple_classifier_example.ipynb

The quick fix was to add a roi_id column to the dataframe before calling predict.

...
# Load classifier and dataframe
clf.predict(df)
# fails
clf.predict(df.assign(roi_id='string_column_that_is_unique_when_combined_with_label'))
# passes

Since we don't really care about the index for inference we should ease the schema requirements.

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

No branches or pull requests

1 participant