Skip to content

Better error message when predict() is called with a Table that already contains the target #9

@SmiteDeluxe

Description

@SmiteDeluxe

Is your feature request related to a problem? Please describe

It often occurs that a predict() call returns following error:
PredictionError: Error occurred while predicting: X has 12 features, but RandomForestRegressor is expecting 11 features as input.
whenever you forget to drop the column that is to be predicted in the Table you're trying to predict on.

Desired solution

Catch that error and return a custom msg for the PredictionError in case it really is this particular column.

Metadata

Metadata

Assignees

Labels

releasedIncluded in a release

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions