Skip to content

Commit 5e36c1f

Browse files
Move modules in khiops.utils to khiops.sklearn
1 parent b8eaf88 commit 5e36c1f

File tree

13 files changed

+13
-19
lines changed

13 files changed

+13
-19
lines changed

doc/internal/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Internals
33
These are internal modules with no "data science" functionality. Their documentation is available
44
for completeness.
55

6-
.. currentmodule:: khiops.utils
6+
.. currentmodule:: khiops.sklearn
77
.. autosummary::
88
:nosignatures:
99
:toctree: generated

doc/samples/samples_sklearn.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ Samples
155155
import os
156156
import pandas as pd
157157
from khiops import core as kh
158-
from khiops.sklearn import KhiopsClassifier
159-
from khiops.utils.helpers import train_test_split_dataset
158+
from khiops.sklearn import KhiopsClassifier, train_test_split_dataset
160159
from sklearn import metrics
161160
162161
# Load the dataset into pandas dataframes
@@ -211,8 +210,7 @@ Samples
211210
import os
212211
import pandas as pd
213212
from khiops import core as kh
214-
from khiops.sklearn import KhiopsClassifier
215-
from khiops.utils.helpers import train_test_split_dataset
213+
from khiops.sklearn import KhiopsClassifier, train_test_split_dataset
216214
from sklearn import metrics
217215
218216
# Load the dataset tables into dataframes

doc/tools/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ These are auxiliary tools for the Khiops Python library.
77
:toctree: generated
88
:nosignatures:
99

10-
utils.helpers
1110
tools

khiops/samples/samples_sklearn.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@
167167
"import os\n",
168168
"import pandas as pd\n",
169169
"from khiops import core as kh\n",
170-
"from khiops.sklearn import KhiopsClassifier\n",
171-
"from khiops.utils.helpers import train_test_split_dataset\n",
170+
"from khiops.sklearn import KhiopsClassifier, train_test_split_dataset\n",
172171
"from sklearn import metrics\n",
173172
"\n",
174173
"# Load the dataset into pandas dataframes\n",
@@ -236,8 +235,7 @@
236235
"import os\n",
237236
"import pandas as pd\n",
238237
"from khiops import core as kh\n",
239-
"from khiops.sklearn import KhiopsClassifier\n",
240-
"from khiops.utils.helpers import train_test_split_dataset\n",
238+
"from khiops.sklearn import KhiopsClassifier, train_test_split_dataset\n",
241239
"from sklearn import metrics\n",
242240
"\n",
243241
"# Load the dataset tables into dataframes\n",

khiops/samples/samples_sklearn.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ def khiops_classifier_multitable_star():
148148
import os
149149
import pandas as pd
150150
from khiops import core as kh
151-
from khiops.sklearn import KhiopsClassifier
152-
from khiops.utils.helpers import train_test_split_dataset
151+
from khiops.sklearn import KhiopsClassifier, train_test_split_dataset
153152
from sklearn import metrics
154153

155154
# Load the dataset into pandas dataframes
@@ -207,8 +206,7 @@ def khiops_classifier_multitable_snowflake():
207206
import os
208207
import pandas as pd
209208
from khiops import core as kh
210-
from khiops.sklearn import KhiopsClassifier
211-
from khiops.utils.helpers import train_test_split_dataset
209+
from khiops.sklearn import KhiopsClassifier, train_test_split_dataset
212210
from sklearn import metrics
213211

214212
# Load the dataset tables into dataframes

khiops/sklearn/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
KhiopsEncoder,
1212
KhiopsRegressor,
1313
)
14+
from khiops.sklearn.helpers import train_test_split_dataset

khiops/sklearn/estimators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
is_list_like,
5151
type_error_message,
5252
)
53-
from khiops.utils.dataset import (
53+
from khiops.sklearn.dataset import (
5454
Dataset,
5555
FileTable,
5656
get_khiops_variable_name,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from sklearn.model_selection import train_test_split
66

77
from khiops.core.internals.common import is_dict_like, type_error_message
8-
from khiops.utils.dataset import Dataset, FileTable
8+
from khiops.sklearn.dataset import Dataset, FileTable
99

1010
# Note: We build the splits with lists and itertools.chain avoid pylint warning about
1111
# unbalanced-tuple-unpacking. See issue https://github.com/pylint-dev/pylint/issues/5671

khiops/utils/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)