weka

SMO,Sequential Minimal Optimization in WEKA

走远了吗. 提交于 2020-01-23 18:30:10
问题 I'm new with Weka. I want to use Sequential Minimal Optimization in WEKA. Could anyone tell me how to proceed? here is my Java code but it doesn't work: public class SVMTest { public void test(File input) throws Exception{ File tmp = new File("tmp-file-duplicate-pairs.arff"); String path = input.getParent(); //tmp.deleteOnExit(); ////removeFeatures(input,tmp,useType,useNames, useActivities, useOccupation,useFriends,useMailAndSite,useLocations); Instances data = new weka.core.converters

SMO,Sequential Minimal Optimization in WEKA

若如初见. 提交于 2020-01-23 18:29:16
问题 I'm new with Weka. I want to use Sequential Minimal Optimization in WEKA. Could anyone tell me how to proceed? here is my Java code but it doesn't work: public class SVMTest { public void test(File input) throws Exception{ File tmp = new File("tmp-file-duplicate-pairs.arff"); String path = input.getParent(); //tmp.deleteOnExit(); ////removeFeatures(input,tmp,useType,useNames, useActivities, useOccupation,useFriends,useMailAndSite,useLocations); Instances data = new weka.core.converters

Stanford classifier cross validation averaged or aggregate metrics

天大地大妈咪最大 提交于 2020-01-23 17:21:12
问题 With Stanford Classifier it is possible to use cross validation by setting the options in the properties file, such as this for 10-fold cross validation: crossValidationFolds=10 printCrossValidationDecisions=true shuffleTrainingData=true shuffleSeed=1 Running this will output, per fold, the various metrics, such as precision, recall, Accuracy/micro-averaged F1 and Macro-averaged F1. Is there an option to get an averaged or otherwise aggregated score of all 10 Accuracy/micro-averaged F1 or all

Wrong number of values when importing csv in Weka

社会主义新天地 提交于 2020-01-21 05:01:27
问题 I want to open a csv file (saved from openoffice calc) in weka. I keep getting an error: "wrong number of values. 140 read, 139 expected on line 3." The csv was already fixed with quotes around the labels. And I count 140 values on the first lines. What is wrong here? Link to the file. 回答1: Turns out there was an value somewhere for beyond sight in the excel file I was exporting. I noticed it because all the rows ended with a comma instead of nothing. Carefully selected only the right reach,

Method of finding threshold in Decision tree for continuous data

别说谁变了你拦得住时间么 提交于 2020-01-17 05:02:20
问题 I am using decision tree in Weka and I have some continuous data, so when I use Weka it automatically find the threshold for me but for some reason I want to implement Decision Tree by myself so I need to know what approach to use to find the threshold to discretize my continuous data? 回答1: ID3 and C4.5 use entropy heuristic for discretization of continuous data. The method finds a binary cut for each variable (feature). You could apply the same method recursively to get multiple intervals

Weka throws “UnassignedDatasetException”

↘锁芯ラ 提交于 2020-01-14 12:42:53
问题 I am working with Weka 3.6.11 and I am having an error which I can't figure out what is causing it. I have followed pages 202-204 in the Weka manual and have constructed my data like they say. Still when I try t classify the data I get an error. weka.core.UnassignedDatasetException: Instance doesn't have access to a dataset! Here is the code I have so far: public static void classifyTest() { try { Classifier classifier = (Classifier)weka.core.SerializationHelper.read("iris120.model"); System

Weka throws “UnassignedDatasetException”

ε祈祈猫儿з 提交于 2020-01-14 12:42:47
问题 I am working with Weka 3.6.11 and I am having an error which I can't figure out what is causing it. I have followed pages 202-204 in the Weka manual and have constructed my data like they say. Still when I try t classify the data I get an error. weka.core.UnassignedDatasetException: Instance doesn't have access to a dataset! Here is the code I have so far: public static void classifyTest() { try { Classifier classifier = (Classifier)weka.core.SerializationHelper.read("iris120.model"); System

How can I match up cluster labels to my 'ground truth' labels in Matlab

倾然丶 夕夏残阳落幕 提交于 2020-01-13 13:28:12
问题 I have searched here and googled, but to no avail. When clustering in Weka there is a handy option, classes to clusters, which matches up the clusters produced by the algorithm e.g. simple k-means, to the 'ground truth' class labels you supply as the class attribute. So that we can see cluster accuracy (% incorrect). Now, how can I achieve this in Matlab, i.e. translate my clusterClasses vector e.g. [1, 1, 2, 1, 3, 2, 3, 1, 1, 1] into the same index as the supplied ground truth labels vector

how to connect mysql databases in weka?

烂漫一生 提交于 2020-01-13 12:08:12
问题 i want to use my mysql databases in weka in order to analysis data. i download the mysql-connector-java-5.0.8-bin.jar and put that in weka folder in my program Files folder, and add this path to system variable path, but when i open the weka explorer and click the openDB, i don't know what should i write in the url textbox, i don't know completely what should i do? the error that i saw is: problem connecting to database: no suitable driver found for! please give me a total guidance, thanks in

how to connect mysql databases in weka?

筅森魡賤 提交于 2020-01-13 12:07:29
问题 i want to use my mysql databases in weka in order to analysis data. i download the mysql-connector-java-5.0.8-bin.jar and put that in weka folder in my program Files folder, and add this path to system variable path, but when i open the weka explorer and click the openDB, i don't know what should i write in the url textbox, i don't know completely what should i do? the error that i saw is: problem connecting to database: no suitable driver found for! please give me a total guidance, thanks in