code: public AttributeDataset nominalDataset(String responseColName, String... variablesColNames) {
          return dataset(table.numberColumn(responseColName), AttributeType.NOMINAL, table.columns(variablesColNames));
      }
docs: Returns a dataset where the response column is nominal. E.g. to be used for a classification