weka

how to connect mysql databases in weka?

北城以北 提交于 2020-01-13 12:07:08
问题 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

Predicting text data labels in test data set with Weka?

怎甘沉沦 提交于 2020-01-13 07:06:30
问题 I am using the Weka gui to train a SVM classifier (using libSVM) on a dataset. The data in the .arff file is @relation Expandtext @attribute message string @attribute Class {positive, negative, objective} @data I turn it into a bag of words with String-to-Word Vector, run SVM and get a decent classification rate. Now I have my test data I want to predict their labels which I do not know. Again it's header information is the same but for every class it is labeled with a question mark (?) ie

Adding database drivers to use WEKA classes

孤街浪徒 提交于 2020-01-10 04:18:05
问题 I tried to run the following command on the command-line: G:\Weka-3-6>java weka.core.converters.CSVLoader data.csv > data.arff This is the error message: ---Registering Weka Editors--- Trying to add database driver (JDBC): RmiJdbc.RJDriver - Error, not in CLASSPATH? Trying to add database driver (JDBC): jdbc.idbDriver - Error, not in CLASSPATH? Trying to add database driver (JDBC): org.gjt.mm.mysql.Driver - Error, not in CLASSPATH? Trying to add database driver (JDBC): com.mckoi.JDBCDriver -

Weka attribute date doesn't work

主宰稳场 提交于 2020-01-06 19:33:02
问题 I created a .arff file with the attribute date: @attribute data date "yyyy-MM-dd" And others attributes. One example of data is: @data "2014-01-02",11.27,11.44,11.03,11.18,11.07,11.07,11.12,9419,2003400,2240946600,1 Yet, the Weka seems to not recognized the date attribute. That's because when I look at the graphic (from date attribute), the margin of the axis x (which would correspond the date) starts at 1388628000000 and ends at 1419904800000, which makes no sense at all. And when I tried to

how to edit weka configurations to find “1”

最后都变了- 提交于 2020-01-06 08:31:59
问题 I have an arff table with bool results. Most of the lines end with "0" (like 95%). But the "0" don't interesting me. i want weka to find lines that end with "1". But unfortunately, most of the algorithms just select "0" all of the time. That don't help to me at all. How to make weka reach "1" only? (If it possible)? 回答1: I think you are describing classical class imbalance problem . That is, almost every machine learning algorithm is designed to look for best accuracy. In your case if it

how to edit weka configurations to find “1”

大城市里の小女人 提交于 2020-01-06 08:31:31
问题 I have an arff table with bool results. Most of the lines end with "0" (like 95%). But the "0" don't interesting me. i want weka to find lines that end with "1". But unfortunately, most of the algorithms just select "0" all of the time. That don't help to me at all. How to make weka reach "1" only? (If it possible)? 回答1: I think you are describing classical class imbalance problem . That is, almost every machine learning algorithm is designed to look for best accuracy. In your case if it

Getting Database Attribute From KMeans Clustering WEKA

折月煮酒 提交于 2020-01-06 04:23:09
问题 i have function that create k-means algorithm using WEKA.jar. I have done creating function and showing the list of object in my console. But, i want to show specific attribute from k-means clustering. This is my syntax result: //importing required dependencies import weka.core.Instance; import weka.experiment.InstanceQuery; public class KMeans { /*get connection strings from database manager*/ private DatabaseManager datman = new DatabaseManager(); private String username = datman

Weka prediction (percentage confidence) - what does it mean?

与世无争的帅哥 提交于 2020-01-06 03:00:10
问题 I've been teaching myself Weka and have learned how to build models and get predictions out of them (predictions using the CLI). When I run prediction on a data set from a previously built model I get a column that is the "prediction" also known as prediction confidence for each instance predicted. I know what percent confidence means but shouldn't all my predictions be the accuracy of my Weka Model? aka if I have a J48 Decision tree classifier with accuracy of 90%, shouldn't every classified

import weka.jar file

坚强是说给别人听的谎言 提交于 2020-01-04 04:56:45
问题 I am a student at a local university in Atlanta , Georgia. I am looking for incorporating Weka.jar file to my eclipse for my class project. I have tried many time to incorporate the weka-3.4.jar file into our java build path in java project using Eclipse. Each time, my program gave me an error saying that weka.core could not be resolved from my import statement in my java test program. It seems very obvious that i did missed something very important but i could not figure it out. If you know

Filtering Attributes with Weka

社会主义新天地 提交于 2020-01-04 01:59:09
问题 I have a simple question about filtering attributes in WEKA. Let's say I have 500 attributes 30 classes and 100 samples for each class which equals 3000 rows and 500 columns. This causes time and memory problems a you can guess. How do I filter attributes that occur only once or twice (or n times) in 3000 rows. And is it a good idea? Thank you 回答1: Use the following filter weka.filters.unsupervised.attribute.RemoveUseless This filter removes attributes that do not vary at all or that vary too