@@ -519,26 +519,10 @@ void predict(raft::resources const& handle,
519519 raft::device_matrix_view<const float , int > X,
520520 std::optional<raft::device_vector_view<const float , int >> sample_weight,
521521 raft::device_matrix_view<const float , int > centroids,
522- bool normalize_weight,
523522 raft::device_vector_view<int , int > labels,
523+ bool normalize_weight,
524524 raft::host_scalar_view<float > inertia);
525525
526- // This overload is retained for backward compatibility.
527- [[deprecated(
528- " The argument order of kmeans::predict has been corrected. Please use the new function "
529- " instead." )]]
530- inline void predict (raft::resources const & handle,
531- const kmeans::params& params,
532- raft::device_matrix_view<const float , int > X,
533- std::optional<raft::device_vector_view<const float , int >> sample_weight,
534- raft::device_matrix_view<const float , int > centroids,
535- raft::device_vector_view<int , int > labels,
536- bool normalize_weight,
537- raft::host_scalar_view<float > inertia)
538- {
539- predict (handle, params, X, sample_weight, centroids, normalize_weight, labels, inertia);
540- }
541-
542526/* *
543527 * @brief Predict the closest cluster each sample in X belongs to.
544528 *
@@ -593,26 +577,10 @@ void predict(raft::resources const& handle,
593577 raft::device_matrix_view<const float , int > X,
594578 std::optional<raft::device_vector_view<const float , int >> sample_weight,
595579 raft::device_matrix_view<const float , int > centroids,
596- bool normalize_weight,
597580 raft::device_vector_view<int64_t , int > labels,
581+ bool normalize_weight,
598582 raft::host_scalar_view<float > inertia);
599583
600- // This overload is retained for backward compatibility.
601- [[deprecated(
602- " The argument order of kmeans::predict has been corrected. Please use the new function "
603- " instead." )]]
604- inline void predict (raft::resources const & handle,
605- const kmeans::params& params,
606- raft::device_matrix_view<const float , int > X,
607- std::optional<raft::device_vector_view<const float , int >> sample_weight,
608- raft::device_matrix_view<const float , int > centroids,
609- raft::device_vector_view<int64_t , int > labels,
610- bool normalize_weight,
611- raft::host_scalar_view<float > inertia)
612- {
613- predict (handle, params, X, sample_weight, centroids, normalize_weight, labels, inertia);
614- }
615-
616584/* *
617585 * @brief Predict the closest cluster each sample in X belongs to.
618586 *
@@ -667,26 +635,10 @@ void predict(raft::resources const& handle,
667635 raft::device_matrix_view<const double , int > X,
668636 std::optional<raft::device_vector_view<const double , int >> sample_weight,
669637 raft::device_matrix_view<const double , int > centroids,
670- bool normalize_weight,
671638 raft::device_vector_view<int , int > labels,
639+ bool normalize_weight,
672640 raft::host_scalar_view<double > inertia);
673641
674- // This overload is retained for backward compatibility.
675- [[deprecated(
676- " The argument order of kmeans::predict has been corrected. Please use the new function "
677- " instead." )]]
678- inline void predict (raft::resources const & handle,
679- const kmeans::params& params,
680- raft::device_matrix_view<const double , int > X,
681- std::optional<raft::device_vector_view<const double , int >> sample_weight,
682- raft::device_matrix_view<const double , int > centroids,
683- raft::device_vector_view<int , int > labels,
684- bool normalize_weight,
685- raft::host_scalar_view<double > inertia)
686- {
687- predict (handle, params, X, sample_weight, centroids, normalize_weight, labels, inertia);
688- }
689-
690642/* *
691643 * @brief Predict the closest cluster each sample in X belongs to.
692644 *
@@ -741,26 +693,10 @@ void predict(raft::resources const& handle,
741693 raft::device_matrix_view<const double , int > X,
742694 std::optional<raft::device_vector_view<const double , int >> sample_weight,
743695 raft::device_matrix_view<const double , int > centroids,
744- bool normalize_weight,
745696 raft::device_vector_view<int64_t , int > labels,
697+ bool normalize_weight,
746698 raft::host_scalar_view<double > inertia);
747699
748- // This overload is retained for backward compatibility.
749- [[deprecated(
750- " The argument order of kmeans::predict has been corrected. Please use the new function "
751- " instead." )]]
752- inline void predict (raft::resources const & handle,
753- const kmeans::params& params,
754- raft::device_matrix_view<const double , int > X,
755- std::optional<raft::device_vector_view<const double , int >> sample_weight,
756- raft::device_matrix_view<const double , int > centroids,
757- raft::device_vector_view<int64_t , int > labels,
758- bool normalize_weight,
759- raft::host_scalar_view<double > inertia)
760- {
761- predict (handle, params, X, sample_weight, centroids, normalize_weight, labels, inertia);
762- }
763-
764700/* *
765701 * @brief Predict the closest cluster each sample in X belongs to.
766702 *
0 commit comments