Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuber21 committed Dec 17, 2024
1 parent 53bcc7b commit 9964c5a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sklearnex/preview/decomposition/tests/test_incremental_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,21 +255,13 @@ def test_sklearnex_partial_fit_on_random_data(
row_count,
column_count,
dtype,
use_raw_input,
):
seed = 81
gen = np.random.default_rng(seed)
X = gen.uniform(low=-0.3, high=+0.7, size=(row_count, column_count))
X = X.astype(dtype=dtype)
X_split = np.array_split(X, num_blocks)
incpca = IncrementalPCA(n_components=n_components, whiten=whiten)
with config_context(use_raw_input=use_raw_input):
for i in range(num_blocks):
X_split_df = _convert_to_dataframe(
X_split[i], sycl_queue=queue, target_df=dataframe
)
incpca.partial_fit(X_split_df)

for i in range(num_blocks):
X_split_df = _convert_to_dataframe(
X_split[i], sycl_queue=queue, target_df=dataframe
Expand Down

0 comments on commit 9964c5a

Please sign in to comment.