weka

Weka GUI - Not enough memory, won't load?

六眼飞鱼酱① 提交于 2019-12-01 03:26:12
问题 This same installation of Weka has loaded for me in the past. I am simply trying to load the Weka GUI (double click on the icon) and I get the following error. How can I fix it? OutOfMemory Not enough memory. Please load a smaller dataset or use a larger heap size. - initial JVM size: 122.4 MB - total memory used: 165.3 MB - max. memory avail.: 227.6 MB Note: The Java heap size can be specified with the -Xmx option. etc.. I am not loading Weka from the command line, so how can I stop this

WEKA classification likelihood of the classes

这一生的挚爱 提交于 2019-12-01 02:12:02
问题 I would like to know if there is a way in WEKA to output a number of 'best-guesses' for a classification. My scenario is: I classify the data with cross-validation for instance, then on weka's output I get something like: these are the 3 best-guesses for the classification of this instance. What I want is like, even if an instance isn't correctly classified i get an output of the 3 or 5 best-guesses for that instance. Example: Classes: A,B,C,D,E Instances: 1...10 And output would be: instance

Could not find or load main class when calling Weka

≯℡__Kan透↙ 提交于 2019-12-01 00:49:37
I apologise for my Java noobness but I am trying to use Weka from console and for some reason I get following error: Error: Could not find or load main class weka.classifiers.trees.J48 I am trying following command: java weka.classifiers.trees.J48 -l C:\xampp\htdocs\frequencyreplyallwords.arff -T C:\xampp\htdocs\testfreqrep.arff -p 0 > C:\xampp\htdocs\output.txt I suspect some problems with classpath but since I don't really understand Java is there any simple way of checking if everything is correct? Thank you for any help Linux/macOS solution download a relevant version such as the Developer

Weka printing sparse arff file

烈酒焚心 提交于 2019-11-30 23:14:02
I was trying out the sparse representation of the arff file as shown here . In my program I am able to print the the class label "B" but for some reason it is not printing "A". attVals = new FastVector(); attVals.addElement("A"); attVals.addElement("B"); atts.addElement(new Attribute("class", attVals)); vals[index] = attVals.indexOf("A"); The output for the program is like - {0 6,2 8} --- I should get {0 6,2 8,3 A} But when I do vals[index] = attVals.indexOf("B"); I get proper output - {0 6,2 8,3 B} For some reason it is not taking the index 0. Can someone tell me why this is happening? This

Weka printing sparse arff file

霸气de小男生 提交于 2019-11-30 18:17:25
问题 I was trying out the sparse representation of the arff file as shown here. In my program I am able to print the the class label "B" but for some reason it is not printing "A". attVals = new FastVector(); attVals.addElement("A"); attVals.addElement("B"); atts.addElement(new Attribute("class", attVals)); vals[index] = attVals.indexOf("A"); The output for the program is like - {0 6,2 8} --- I should get {0 6,2 8,3 A} But when I do vals[index] = attVals.indexOf("B"); I get proper output - {0 6,2

WEKA & MySQL Setup a connection

泪湿孤枕 提交于 2019-11-30 17:11:14
问题 WEKA Explorer can't open a connection to MySQL. connecting to: jdbc:mysql://MYSERVER:3306/NAME = true by the way: mysql driver was downloaded mysql-connector-java-5.1.14-bin & classpath was set. (User & Pass are ok because it works with MySQL Workbench) when clicking on the JButton OK (in the form 'Open DB'), then a message box shows an error - see image: (screen shot shows infamous "no driver" error) weka version is 3.6.3. any suggestions ? 回答1: Wasted half an hour on this same problem, here

Sentence Classification (Categorization)

别说谁变了你拦得住时间么 提交于 2019-11-30 16:45:39
I have been reading about text classification and found several Java tools which are available for classification, but I am still wondering: Is text classification the same as sentence classification! Is there any tool which focuses on sentence classification? Theres no formal difference between 'Text classification' and 'Sentence classification'. After all, a sentence is a type of text. But generally, when people talk about text classification, IMHO they mean larger units of text such as an essay, review or speech. Classifying a politician's speech into democrat or republican is a lot easier

Sentence Classification (Categorization)

主宰稳场 提交于 2019-11-30 16:20:37
问题 I have been reading about text classification and found several Java tools which are available for classification, but I am still wondering: Is text classification the same as sentence classification! Is there any tool which focuses on sentence classification? 回答1: Theres no formal difference between 'Text classification' and 'Sentence classification'. After all, a sentence is a type of text. But generally, when people talk about text classification, IMHO they mean larger units of text such

Majority vote algorithm in Weka.classifiers.meta.vote

≯℡__Kan透↙ 提交于 2019-11-30 15:56:54
问题 What is the majority vote algorithm used in Weka. I tried to figure out its code but could not understand it. 回答1: In Weka you can select multiple classifiers to be used in Weka.classifiers.meta.vote . If you select Majority Voting as combinationRule (which only works with nominal classes), then each of these classifiers will predict a nominal class label for a test sample. The label which was predicted the most will then be selected as output of the vote classifier. For example. You select

SMO confidence measure in weka

*爱你&永不变心* 提交于 2019-11-30 15:23:00
I'm writing a classification code using the smo class of weka. But what i'm yet to find is a confidence measure of the classification of an instance. It always either returns 0 or 1 when distributionForInstance is called. I have two classes to be classified into. Any idea how i can get this measure? Thanks. Ok I figured out how to get this in case it might help someone. Get the source code for SMO.java and add it to your package. Resolve imports if any. Set m_fitLogisticModels to true . Change smo.buildClassifier(train, cl1, cl2, false, -1, -1); to smo.buildClassifier(train, cl1, cl2, true, -1