我按照教程使用weka來自.net http://weka.wikispaces.com/IKVM+with+Weka+tutorial 問題:weka c#api花費太多時間來加載一個簡單的csv文件,在加載這個相同的文件時,一個小文件需要30秒以上的時間1秒由weka探險家,任何想法?weka .net ikvm - >爲什麼加載csv文件太慢了?
C#示例代碼:
string filename = "weka_file.csv";
// weka.core.converters.ConverterUtils.DataSource source = new weka.core.converters.ConverterUtils.DataSource(filename); // doesn't seem to work for csv files
// weka.core.Instances instsOrg = source.getDataSet();
weka.core.converters.CSVLoader csvLoader = new weka.core.converters.CSVLoader();
csvLoader.setSource(new java.io.File(filename));
weka.core.Instances instsOrg = csvLoader.getDataSet(); // this takes 30 secondes for a particular csv file I have and it take only 1 sec to load it in with the weka explorer...
如何分析? – Nikolay 2012-03-29 07:13:17