Skip to content

Commit f1eda08

Browse files
OwTSNE: Do not recompute domain when selecting data
1 parent 4bc8c53 commit f1eda08

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Orange/widgets/unsupervised/owtsne.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,16 @@ def commit(self):
366366
def _get_projection_data(self):
367367
if self.data is None:
368368
return None
369-
if self.projection is None:
370-
variables = self._get_projection_variables()
371-
else:
372-
variables = self.projection.domain.attributes
373369
data = self.data.transform(
374370
Domain(self.data.domain.attributes,
375371
self.data.domain.class_vars,
376-
self.data.domain.metas + variables))
372+
self.data.domain.metas + self._get_projection_variables()))
377373
data.metas[:, -2:] = self.get_embedding()
374+
if self.projection is not None:
375+
data.domain = Domain(
376+
self.data.domain.attributes,
377+
self.data.domain.class_vars,
378+
self.data.domain.metas + self.projection.domain.attributes)
378379
return data
379380

380381
def send_preprocessor(self):

0 commit comments

Comments
 (0)