diff --git a/examples/Selectors-Pipelines.ipynb b/examples/Selectors-Pipelines.ipynb index 9f2b0a01c5..2fc0acc2d8 100644 --- a/examples/Selectors-Pipelines.ipynb +++ b/examples/Selectors-Pipelines.ipynb @@ -154,40 +154,6 @@ "plt.ylabel('Predicted Values')\n", "plt.show()" ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "execution": { - "iopub.execute_input": "2021-11-29T15:19:18.681434Z", - "iopub.status.busy": "2021-11-29T15:19:18.681006Z", - "iopub.status.idle": "2021-11-29T15:19:18.682770Z", - "shell.execute_reply": "2021-11-29T15:19:18.683119Z" - } - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(442, 10)" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "X.shape" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/tests/test_sample_simple_cur.py b/tests/test_sample_simple_cur.py index 72655d1fb4..a79a71aa8e 100644 --- a/tests/test_sample_simple_cur.py +++ b/tests/test_sample_simple_cur.py @@ -3,14 +3,15 @@ import numpy as np from sklearn import exceptions -from skcosmo.datasets import load_csd_1000r as load +from sklearn.datasets import fetch_california_housing as load from skcosmo.sample_selection import CUR class TestCUR(unittest.TestCase): def setUp(self): - self.X, self.y = load(return_X_y=True) - self.n_select = 20 + self.X, _ = load(return_X_y=True) + self.X = self.X[:1000] + self.n_select = min(20, min(self.X.shape) // 2) def test_bad_transform(self): selector = CUR(n_to_select=2)