Skip to content

Commit

Permalink
OwTSNE: Do not recompute domain when selecting data
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlin-policar committed Feb 11, 2019
1 parent 4bc8c53 commit f1eda08
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Orange/widgets/unsupervised/owtsne.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,16 @@ def commit(self):
def _get_projection_data(self):
if self.data is None:
return None
if self.projection is None:
variables = self._get_projection_variables()
else:
variables = self.projection.domain.attributes
data = self.data.transform(
Domain(self.data.domain.attributes,
self.data.domain.class_vars,
self.data.domain.metas + variables))
self.data.domain.metas + self._get_projection_variables()))
data.metas[:, -2:] = self.get_embedding()
if self.projection is not None:
data.domain = Domain(
self.data.domain.attributes,
self.data.domain.class_vars,
self.data.domain.metas + self.projection.domain.attributes)
return data

def send_preprocessor(self):
Expand Down

0 comments on commit f1eda08

Please sign in to comment.