Remove inertia_check Param from KMeans#8033
Conversation
📝 WalkthroughWalkthroughRemoved the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
python/cuml/cuml/cluster/cpp/kmeans.pxd (1)
1-3:⚠️ Potential issue | 🟡 MinorUpdate the SPDX year range.
This file is modified in 2026, but the header still ends at 2025. Please bump it to include 2026.
As per coding guidelines, "Ensure copyright headers of files are up-to-date and in the correct format".
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@python/cuml/cuml/cluster/cpp/kmeans.pxd` around lines 1 - 3, The SPDX copyright year range in the file header using the SPDX-FileCopyrightText token is out of date (ends at 2025); update the header string from "2019-2025" to include 2026 (e.g., "2019-2026") so the SPDX-FileCopyrightText line reflects the current modification year while leaving SPDX-License-Identifier unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@python/cuml/cuml/cluster/cpp/kmeans.pxd`:
- Around line 1-3: The SPDX copyright year range in the file header using the
SPDX-FileCopyrightText token is out of date (ends at 2025); update the header
string from "2019-2025" to include 2026 (e.g., "2019-2026") so the
SPDX-FileCopyrightText line reflects the current modification year while leaving
SPDX-License-Identifier unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 95b0b327-48f3-4972-b699-10878d413a2e
📒 Files selected for processing (4)
cpp/bench/sg/kmeans.cucpp/include/cuml/cluster/kmeans_params.hppcpp/src/kmeans/kmeans_params.cpppython/cuml/cuml/cluster/cpp/kmeans.pxd
💤 Files with no reviewable changes (3)
- cpp/src/kmeans/kmeans_params.cpp
- cpp/bench/sg/kmeans.cu
- cpp/include/cuml/cluster/kmeans_params.hpp
There was a problem hiding this comment.
LGTM! I think we might have some tests fail until the cuvs PR is merged, since we want inertia checking enabled and dropping it here would lead to the default false.
This is a breaking change because I have removed the inertia_check param from the cuML API too. So downstream users of cuML Python / C++ API will be affected.
Note that we don't consider the C++ API public in any way. And since the python API hasn't changed at all, this isn't a breaking change. I've updated the label.
|
Thanks! @jcrist I have also updated the PR description and removed the comment that it is a breaking change. |
|
/ok to test 535edd8 |
|
@jcrist @csadorf looks like this did not break and all checks are passing. So we can merge this even now i.e. before rapidsai/cuvs#2015 |
|
/merge |
Depends on rapidsai/cuvs#2015. Inertia checking is being made mandatory and rapidsai/cuvs#2015 is a breaking change. This PR is needed to prevent compilation failures.