Skip to content

Commit

Permalink
fix test case when featuretools>=1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
oaksharks committed May 6, 2023
1 parent ededd1c commit 9cbc56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion hypernets/tests/utils/df_utils_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from hypernets.utils import df_utils
from hypernets.tabular.datasets import dsutils
import numpy as np
from sklearn.preprocessing import LabelEncoder

Expand Down
6 changes: 2 additions & 4 deletions hypernets/utils/df_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import json

import numpy as np
import pandas as pd
from dask import dataframe as dd

from hypernets.tabular import column_selector as col_se

Expand Down Expand Up @@ -70,6 +67,7 @@ def get_data_character(hyper_model, X_train, y_train, X_eval=None, y_eval=None,
shape_x_test = list(X_test.shape)

else:
from dask import dataframe as dd
datatype_y = dtype2usagetype[str(y_train.dtype)]

Missing_y = y_train.isnull().compute().tolist().count(True)
Expand Down Expand Up @@ -255,5 +253,5 @@ def _is_cupy_array(obj):
elif _is_cupy_array(array_data):
return np.array(array_data.tolist())
else:
logger.warning(f"unseen data type {type(array_data)} convert to numpy ndarray")
logger.warning(f"unseen data type {type(array_data)} to convert to ndarray")
return array_data

0 comments on commit 9cbc56c

Please sign in to comment.