Package org.integratedmodelling.riskwiz.learning.data.loader.ArffLoader

Examples of org.integratedmodelling.riskwiz.learning.data.loader.ArffLoader.ArffReader


     * @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();
    }
View Full Code Here


    // @ requires capacity >= 0;
    // @ ensures classIndex() == -1;
    @Deprecated public Instances(/* @non_null@*/Reader reader, int capacity)
        throws IOException {

        ArffReader arff = new ArffReader(reader, 0);
        Instances header = arff.getStructure();

        initialize(header, capacity);
        m_Lines = arff.getLineNo();
    }
View Full Code Here

     * @see weka.core.converters.ArffLoader
     * @see weka.core.converters.ConverterUtils.DataSource
     */
    @Deprecated public boolean readInstance(Reader reader) throws IOException {

        ArffReader arff = new ArffReader(reader, this, m_Lines, 1);
        Instance inst = arff.readInstance(arff.getData(), false);

        m_Lines = arff.getLineNo();
        if (inst != null) {
            add(inst);
            return true;
        } else {
            return false;
View Full Code Here

TOP

Related Classes of org.integratedmodelling.riskwiz.learning.data.loader.ArffLoader.ArffReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.