-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
deeptables/tests/models/zdask_var_len_categorical_test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# -*- encoding: utf-8 -*- | ||
# from hypernets.tests.tabular.tb_dask import is_dask_installed, if_dask_ready, setup_dask | ||
# from .var_len_categorical_test import TestVarLenCategoricalFeature | ||
# | ||
# if is_dask_installed: | ||
# import dask.dataframe as dd | ||
# | ||
from hypernets.tests.tabular.tb_dask import is_dask_installed, if_dask_ready, setup_dask | ||
from .var_len_categorical_test import TestVarLenCategoricalFeature | ||
|
||
# @if_dask_ready | ||
# class TestVarLenCategoricalFeatureByDask(TestVarLenCategoricalFeature): | ||
# | ||
# def setup_class(self): | ||
# TestVarLenCategoricalFeature.setup_class(self) | ||
# | ||
# setup_dask(self) | ||
# self.df = dd.from_pandas(self.df, npartitions=2) | ||
if is_dask_installed: | ||
import dask.dataframe as dd | ||
|
||
|
||
@if_dask_ready | ||
class TestVarLenCategoricalFeatureByDask(TestVarLenCategoricalFeature): | ||
|
||
def setup_class(self): | ||
TestVarLenCategoricalFeature.setup_class(self) | ||
|
||
setup_dask(self) | ||
self.df = dd.from_pandas(self.df, npartitions=2) |