diff --git a/Orange/data/table.py b/Orange/data/table.py index 03d4bf8834e..a46a778af5a 100644 --- a/Orange/data/table.py +++ b/Orange/data/table.py @@ -492,7 +492,7 @@ def from_numpy(cls, domain, X, Y=None, metas=None, W=None): if Y is None: if sp.issparse(X): - Y = np.empty((X.shape[0], 0), object) + Y = np.empty((X.shape[0], 0), dtype=np.float64) else: Y = X[:, len(domain.attributes):] X = X[:, :len(domain.attributes)]