Skip to content

Commit

Permalink
Added the ability of the conftest fixture to generate numpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
chukarsten committed Aug 15, 2022
1 parent 0364a0f commit 874f81a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions evalml/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ def _get_test_data_from_configuration(
y = ww.init_series(y, logical_type="integer_nullable")
X = X_all[column_names]

if input_type == "np":
X = X.to_numpy()
y = y.to_numpy()

if input_type == "ww":
logical_types = {}
if "text" in column_names:
Expand Down

0 comments on commit 874f81a

Please sign in to comment.