Skip to content

Commit b89b531

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Completes UNB-2543 - Fix bug with dataset validation for text datasets
1 parent 414ad71 commit b89b531

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

unboxapi/schemas.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,3 @@ def validates_task_type_and_data_column(self, data, **kwargs):
174174
raise ValidationError(
175175
"`text_column_name` not specified for text classification task. Must specify `text_column_name` for TextClassification `task_type`."
176176
)
177-
elif data["feature_names"] and data["text_column_name"]:
178-
if data["task_type"] == "tabular-classification":
179-
raise ValidationError(
180-
f"`feature_names` and `text_column_name` being specified. For `task_type` TabularClassification"
181-
+ ", only `feature_names` should be passed as argument."
182-
)
183-
elif data["task_type"] == "text-classification":
184-
raise ValidationError(
185-
f"`feature_names` and `text_column_name` being specified. For `task_type` TextClassification"
186-
+ ", only `text_column_name` should be passed as argument."
187-
)

0 commit comments

Comments
 (0)