code: public AttributeDataset numericDataset(int responseColIndex, int... variablesColIndices) {
          return dataset(table.numberColumn(responseColIndex), AttributeType.NUMERIC, table.columns(variablesColIndices));
      }
docs: Returns a dataset where the response column is numeric. E.g. to be used for a regression