Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
minor enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikb11 committed Feb 13, 2021
1 parent f4e8750 commit 8d03c0d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions flash/tabular/classification/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ def __init__(
if categorical_input is None and numerical_input is None:
raise RuntimeError('Both `categorical_input` and `numerical_input` are None!')

if categorical_input is None:
categorical_input = []

if numerical_input is None:
numerical_input = []
categorical_input = categorical_input if categorical_input is not None else []
numerical_input = numerical_input if numerical_input is not None else []

if valid_df is not None:
dfs.append(valid_df)
Expand Down

0 comments on commit 8d03c0d

Please sign in to comment.