-
Notifications
You must be signed in to change notification settings - Fork 4
Move no prediction #242
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
base: main
Are you sure you want to change the base?
Move no prediction #242
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -447,31 +447,63 @@ def sort_features_to_classify(self, features): | |||||
| features_sorted = features[classifier_columns] | ||||||
| return features_sorted | ||||||
|
|
||||||
| def predict(self, features): | ||||||
| """predict classes for a given set of features""" | ||||||
| def predict(self, features: dict, frame_indexes: np.ndarray | None = None) -> np.ndarray: | ||||||
| """predict classes for a given set of features | ||||||
|
|
||||||
| Args: | ||||||
| features: dictionary of feature data to classify | ||||||
|
||||||
| features: dictionary of feature data to classify | |
| features: pandas DataFrame of feature data to classify |
Copilot
AI
Dec 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type hint indicates features should be a dict, but the method body treats it as a pandas DataFrame (using .replace() and .fillna() methods). The type hint should be corrected to match the actual expected type, likely pd.DataFrame.
Copilot
AI
Dec 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstring describes features as a 'dictionary' but the actual parameter should be a pandas DataFrame based on the method implementation. Update the docstring to accurately reflect the expected type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type hint indicates
featuresshould be a dict, but the method body treats it as a pandas DataFrame (using.replace()and.fillna()methods). The type hint should be corrected to match the actual expected type, likelypd.DataFrame.