Skip to content

Commit 41604f4

Browse files
committed
[FIX] Table: classes (Y) must be float
1 parent 48d8584 commit 41604f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/data/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def from_numpy(cls, domain, X, Y=None, metas=None, W=None):
492492

493493
if Y is None:
494494
if sp.issparse(X):
495-
Y = np.empty((X.shape[0], 0), object)
495+
Y = np.empty((X.shape[0], 0), dtype=np.float64)
496496
else:
497497
Y = X[:, len(domain.attributes):]
498498
X = X[:, :len(domain.attributes)]

0 commit comments

Comments
 (0)