Skip to content
Prev Previous commit
Next Next commit
Document the cuML deprecation policy
  • Loading branch information
csadorf committed Sep 18, 2026
commit 21bc0f1fcc8f4c7b96aa10b20f80003b871ed309
37 changes: 37 additions & 0 deletions docs/source/deprecation_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Compatibility and deprecation policy

This policy describes which cuML APIs users can expect to remain compatible and
how incompatible changes are announced. Release-specific changes and migration
instructions are recorded in the [release notes](release_notes.md).

## Public Python APIs

Public Python APIs normally remain available for one release after they are
deprecated. Using a deprecated API during that transition raises a
`FutureWarning`. The warning and the API documentation identify the release in
which the deprecation was introduced, the release in which the API is expected
to be removed, and an alternative when one is available.

An explicitly announced longer transition remains authoritative. For example,
`cuml.tsa` was deprecated in 26.08 and is scheduled for removal in 26.12.

The Python deprecation policy does not apply to:

- names prefixed with `_`;
- APIs in namespaces designated as internal, including `cuml.internals`,
`cuml.utils`, and `cuml.common`; or
- APIs in the `cuml.experimental` namespace.

Other APIs are considered public based on their presence in the public
documentation and examples, or an explicit declaration that they are public.

## C++ APIs

The documented C++ interfaces primarily support cuML's Python bindings and
internal implementation. They currently have no stability,
backward-compatibility, or deprecation guarantee and may change or be removed
without notice. Prefer the documented Python APIs when possible.

Contributors implementing a Python API deprecation should follow the
[developer deprecation policy](developer_guide/python/development.md),
which defines warning, documentation, and testing requirements.
4 changes: 3 additions & 1 deletion docs/source/developer_guide/cpp/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ for ``libcuml``.
every documented precondition, validating dimensions, types, memory
locations, device state, stream ordering, and resource lifetimes, and
checking outputs and failures. Prefer the supported :doc:`Python APIs
<../../../api/index>` whenever possible.
<../../../api/index>` whenever possible. See the :doc:`compatibility and
deprecation policy <../../../deprecation_policy>` for the user-facing API
stability policy.

Namespaces
----------
Expand Down
2 changes: 2 additions & 0 deletions docs/source/developer_guide/cpp/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The C++ interfaces are used by cuML's bindings and by some direct libcuml
consumers. The C++ API currently has no backward-compatibility or deprecation
guarantee. Describe behavior and preconditions precisely, keep changes focused,
and clearly describe consequential API changes during review.
See the [user-facing compatibility and deprecation policy](../../deprecation_policy.md)
for how this limitation is communicated to users.

## Formatting and implementation style

Expand Down
4 changes: 4 additions & 0 deletions docs/source/developer_guide/python/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ For detailed implementation guidelines, including file organization, API design,

## Deprecation Policy

See the [user-facing compatibility and deprecation policy](../../deprecation_policy.md)
for the stability commitments communicated to users. This section defines the
implementation requirements for Python API deprecations.

cuML follows the policy of deprecating code for one release prior to removal. This applies
to publicly accessible functions, classes, methods, attributes and parameters. During the
deprecation cycle the old name or value is still supported, but will raise a deprecation
Expand Down
1 change: 1 addition & 0 deletions docs/source/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ GitHub repository instead.
advanced.rst
health_checks.rst
supported_versions.rst
Compatibility and deprecation policy <deprecation_policy>