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.
2 parents 666a2e7 + 181b87d commit f6fe789Copy full SHA for f6fe789
Orange/widgets/unsupervised/tests/test_owsom.py
@@ -14,7 +14,7 @@
14
15
def _patch_recompute_som(meth):
16
def winners_from_weights(cont_x, *_1, **_2):
17
- n = len(cont_x)
+ n = cont_x.shape[0]
18
w = np.zeros((n, 2), dtype=int)
19
w[n // 5:] = [0, 1]
20
w[n // 3:] = [1, 2]
@@ -116,6 +116,7 @@ def test_missing_one_row_data(self):
116
self.send_signal(widget.Inputs.data, None)
117
self.assertFalse(widget.Warning.missing_values.is_shown())
118
119
+ @_patch_recompute_som
120
def test_sparse_data(self):
121
widget = self.widget
122
self.iris.X = sp.csc_matrix(self.iris.X)
0 commit comments