Commit 341b7ed7 authored by Patrick Hop's avatar Patrick Hop Committed by GitHub
Browse files

Update datasets.py

parent 6069a093
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ class NumpyDataset(Dataset):
          w = np.reshape(w, (n_samples, -1))
      else:
        # Set labels to be zero, with zero weights
        y = np.zeros((n_samples, 1*n_tasks))
        y = np.zeros((n_samples, n_tasks))
        w = np.zeros_like(y)
    if ids is None:
      ids = np.arange(n_samples)