Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
folmos-at-orange committed Apr 25, 2024
1 parent 54486d2 commit e15bd6d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/internal/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for completeness.
:nosignatures:
:toctree: generated

khiops.sklearn.tables
khiops.utils.dataset
khiops.core.internals.common
khiops.core.internals.filesystems
khiops.core.internals.io
Expand Down
2 changes: 1 addition & 1 deletion khiops/sklearn/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
is_list_like,
type_error_message,
)
from khiops.sklearn.tables import Dataset, read_internal_data_table
from khiops.utils.dataset import Dataset, read_internal_data_table

# Disable PEP8 variable names because of scikit-learn X,y conventions
# To capture invalid-names other than X,y run:
Expand Down
Empty file added khiops/utils/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion khiops/sklearn/tables.py → khiops/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Disable PEP8 variable names because of scikit-learn X,y conventions
# To capture invalid-names other than X,y run:
# pylint --disable=all --enable=invalid-names tables.py
# pylint --disable=all --enable=invalid-names dataset.py
# pylint: disable=invalid-name


Expand Down
2 changes: 1 addition & 1 deletion tests/test_dataset_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from pandas.testing import assert_frame_equal
from sklearn import datasets

from khiops.sklearn.tables import Dataset
from khiops.utils.dataset import Dataset


class KhiopsConsistensyOfFilesAndDictionariesWithInputDataTests(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_dataset_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
import pandas as pd

from khiops.core.internals.common import type_error_message
from khiops.sklearn.tables import Dataset, FileTable, PandasTable
from khiops.utils.dataset import Dataset, FileTable, PandasTable


# Disable PEP8 variable names because of scikit-learn X,y conventions
# To capture invalid-names other than X,y run:
# pylint --disable=all --enable=invalid-names estimators.py
# pylint --disable=all --enable=invalid-names test_dataset_errors.py
# pylint: disable=invalid-name
class AnotherType(object):
"""A placeholder class that is not of any basic type to test TypeError's"""
Expand Down

0 comments on commit e15bd6d

Please sign in to comment.