Package org.integratedmodelling.riskwiz.learning.data

Examples of org.integratedmodelling.riskwiz.learning.data.Instances.attribute()


            m_DataBaseConnection.disconnectFromDatabase();
            // get rid of m_idColumn
            if (m_DataBaseConnection.getUpperCase()) {
                m_idColumn = m_idColumn.toUpperCase();
            }
            if (result.attribute(0).name().equals(m_idColumn)) {
                result.deleteAttributeAt(0);
            }
            m_structure = new Instances(result, 0);
        } catch (Exception ex) {
            printException(ex);
View Full Code Here


                if (cval instanceof String) {
                    if (((String) cval).compareTo("'?'") == 0) {
                        vals[j] = Instance.missingValue();
                    } else {
                        if (!dataSet.attribute(j).isNominal()) {
                            System.err.println("Wrong attribute type!!!");
                            System.exit(1);
                        }
                        // find correct index
                        Hashtable lookup = (Hashtable) m_cumulativeStructure.elementAt(
View Full Code Here

                                j);
                        int index = ((Integer) lookup.get(cval)).intValue();

                        vals[j] = index;
                    }
                } else if (dataSet.attribute(j).isNominal()) {
                    // find correct index
                    Hashtable lookup = (Hashtable) m_cumulativeStructure.elementAt(
                            j);
                    int index = ((Integer) lookup.get(cval)).intValue();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.