Skip to content

Commit 84cb23e

Browse files
committed
t-SNE: Fix assert
The data instance could have changed, but the task was not canceled due to self._invalidated = False.
1 parent 3f2180d commit 84cb23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/unsupervised/owtsne.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def run(self):
513513

514514
def __ensure_task_same_for_pca(self, task: Task):
515515
assert self.data is not None
516-
assert task.data is self.data
516+
np.testing.assert_array_equal(task.data.X, self.data.X)
517517
assert task.normalize == self.normalize
518518
assert task.pca_components == self.pca_components
519519
assert isinstance(task.pca_projection, Table) and \

0 commit comments

Comments
 (0)