Hi I'm accessing to a database where I've numerical data and nominal data. When I execute the process in the GUI of RapidMiner I get results like mode and average in column statistics of MetaDataView tab. The problem is that with the API of rapid miner I'm not allowed to get statistics like mode and least (and the GUI shows it to me) except with the AVERAGE.
File f = new File("operadores2.xml")
Process process = new Process(f)
IOContainer ioc = process.run()
ExampleSet ses = ioc.get(ExampleSet.class)
ses.recalculateAllAttributeStatistics()
ExampleTable ext = ses.getExampleTable()
System.out.println(ses.getStatistics(ext.getAttribute(14), Statistics.AVERAGE))
this works but ....
File f = new File("operadores2.xml")
Process process = new Process(f)
IOContainer ioc = process.run()
ExampleSet ses = ioc.get(ExampleSet.class)
ses.recalculateAllAttributeStatistics()
ExampleTable ext = ses.getExampleTable()
System.out.println(ses.getStatistics(ext.getAttribute(7), Statistics.MODE))
this doesn't work (attribute number 7 is nominal)
what i'm doing wrong ?
thx