Skip to content

Commit

Permalink
OWSieve: Ensure dense data
Browse files Browse the repository at this point in the history
  • Loading branch information
nikicc committed Jun 2, 2017
1 parent 8d7d6fa commit 0b3e449
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Orange/widgets/visualize/owsieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ def set_data(self, data):
self.openContext(self.data)
if self.data:
self.discrete_data = self.sparse_to_dense(data, True)
if self.discrete_data.is_sparse():
self.discrete_data.X = self.discrete_data.X.toarray()
self.resolve_shown_attributes()
self.update_graph()
self.update_selection()
Expand Down Expand Up @@ -223,7 +225,8 @@ def discretizer(data):
self.attr_y}
new_domain = data.domain.select_columns(attrs)
data = Table.from_table(new_domain, data)
data.X = data.X.toarray()
if data.is_sparse():
data.X = data.X.toarray()
return discretizer(data)

@Inputs.features
Expand Down

0 comments on commit 0b3e449

Please sign in to comment.