src/main/java/com/feedzai/fos/impl/weka/utils/pmml/PMMLConversionCommons.java
public static Instances buildInstances(DataDictionary dataDict) {
        List<weka.core.Attribute> attributes = buildAttributes(dataDict);

        FastVector fastVector = new FastVector(attributes.size());
        for (weka.core.Attribute attribute : attributes) {
            fastVector.addElement(attribute);
        }

        return new Instances("instances", fastVector, attributes.size());
    }
public static Instances buildInstances(DataDictionary dataDict) {
        List<weka.core.Attribute> attributes = buildAttributes(dataDict);

        FastVector fastVector = new FastVector(attributes.size());
        for (weka.core.Attribute attribute : attributes) {
            fastVector.addElement(attribute);
        }

        return new Instances("instances", fastVector, attributes.size());
    }
Creates a new {@link weka.core.Instances} instance from the attributes in a {@link org.dmg.pmml.DataDictionary PMML DataDictionary}.

@param dataDict The {@link org.dmg.pmml.DataDictionary PMML DataDictionary} from which to build instances.
@return A new {@link weka.core.Instances} instance.