Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions docs/source/api/cuml.preprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,3 @@ cuml.preprocessing
normalize
robust_scale
scale

Text Preprocessing
------------------

.. currentmodule:: cuml.preprocessing.text.stem

.. autosummary::
:nosignatures:
:toctree: generated/
:template: base.rst

PorterStemmer
21 changes: 0 additions & 21 deletions python/cuml/cuml/experimental/linear_model/__init__.py

This file was deleted.

14 changes: 3 additions & 11 deletions python/cuml/cuml/metrics/pairwise_distances.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -330,20 +330,12 @@ def pairwise_distances(
array([[1., 2.],
[2., 1.]])
"""
cdef double p = 2
if "metric_arg" in kwds:
warnings.warn(
"The `metric_arg` keyword was deprecated in version 26.08 and will "
"be removed in version 26.10. Please use `p` instead.",
FutureWarning,
)
p = kwds.pop("metric_arg")
elif metric == "minkowski":
p = kwds.pop("p", 2)

if metric == "nan_euclidean":
return nan_euclidean_distances(X, Y, **kwds)

cdef double p = 2
if metric == "minkowski":
p = kwds.pop("p", 2)
if kwds:
raise TypeError(f"Unknown parameters {sorted(kwds)}")

Expand Down
5 changes: 1 addition & 4 deletions python/cuml/cuml/preprocessing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
from cuml._thirdparty.sklearn.preprocessing import (
Expand Down Expand Up @@ -28,7 +28,6 @@
scale,
)
from cuml.model_selection import train_test_split
from cuml.preprocessing import text
from cuml.preprocessing._label import LabelEncoder
from cuml.preprocessing._target_encoder import TargetEncoder
from cuml.preprocessing.encoders import OneHotEncoder, OrdinalEncoder
Expand Down Expand Up @@ -67,6 +66,4 @@
"robust_scale",
"scale",
"train_test_split",
# Modules
"text",
]
8 changes: 0 additions & 8 deletions python/cuml/cuml/preprocessing/text/__init__.py

This file was deleted.

9 changes: 0 additions & 9 deletions python/cuml/cuml/preprocessing/text/stem/__init__.py

This file was deleted.

Loading
Loading