Skip to content

Commit

Permalink
Add IncrementalPCA to experimental CLI feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wphicks committed Jan 24, 2025
1 parent 0d9d09d commit 078cebc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/cuml/cuml/decomposition/incremental_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class IncrementalPCA(PCA):
"""

_cpu_estimator_import_path = "sklearn.decomposition.IncrementalPCA"
_hyperparam_interop_translator = {}

@device_interop_preparation
def __init__(
Expand Down
9 changes: 8 additions & 1 deletion python/cuml/cuml/experimental/accel/_wrappers/sklearn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2024, NVIDIA CORPORATION.
# Copyright (c) 2024-2025, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -46,6 +46,13 @@
)


IncrementalPCA = intercept(
original_module="sklearn.decomposition",
accelerated_module="cuml.decomposition",
original_class_name="IncrementalPCA",
)


TruncatedSVD = intercept(
original_module="sklearn.decomposition",
accelerated_module="cuml.decomposition",
Expand Down

0 comments on commit 078cebc

Please sign in to comment.