We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e023172 commit 5c1ee20Copy full SHA for 5c1ee20
tests/test_sample_simple_cur.py
@@ -1,15 +1,16 @@
1
import unittest
2
3
import numpy as np
4
-from sklearn.datasets import fetch_california_housing as load
+from sklearn.datasets import fetch_california_housing
5
6
from skmatter.sample_selection import CUR, FPS
7
8
9
class TestCUR(unittest.TestCase):
10
def setUp(self):
11
- self.X, _ = load(return_X_y=True)
12
- self.X = self.X[FPS(n_to_select=100).fit(self.X).selected_idx_]
+ housing = fetch_california_housing()
+ X = housing.data
13
+ self.X = X[FPS(n_to_select=100).fit(X).selected_idx_]
14
self.n_select = min(20, min(self.X.shape) // 2)
15
16
def test_sample_transform(self):
0 commit comments