* @param reader the reader
* @throws IOException if the ARFF file is not read
* successfully
*/
public Instances(/* @non_null@*/Reader reader) throws IOException {
ArffReader arff = new ArffReader(reader);
Instances dataset = arff.getData();
initialize(dataset, dataset.numInstances());
dataset.copyInstances(0, this, dataset.numInstances());
compactify();
}