Package org.integratedmodelling.riskwiz.learning.data

Examples of org.integratedmodelling.riskwiz.learning.data.SparseInstance


            double[] tempValues = new double[numValues];
            int[] tempIndices = new int[numValues];

            System.arraycopy(m_ValueBuffer, 0, tempValues, 0, numValues);
            System.arraycopy(m_IndicesBuffer, 0, tempIndices, 0, numValues);
            Instance inst = new SparseInstance(1, tempValues, tempIndices,
                    m_Data.numAttributes());

            inst.setDataset(m_Data);
     
            return inst;
        }
View Full Code Here


            }
        }
   
        // create instance
        if (sparse) {
            result = new SparseInstance(weight, values);
        } else {
            result = new Instance(weight, values);
        }
   
        return result;
View Full Code Here

TOP

Related Classes of org.integratedmodelling.riskwiz.learning.data.SparseInstance

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.