vivek sachi | 20 Oct 10:05 2014
Picon

Installing Weka 3.7.7 on Ubuntu

Hi All,

I am new to Weka, I was previously using NLTK. Now, I have moved to Weka. I would like to install LIBSVM package and train the data using SVC classifier. I already have weka on ubuntu and updated to latest. 
But I see packageManager is available only for developer version i.e. above 3.7  Could you please guide me in installing the LIBSVM package on UBUNTU?

Thanks,
Vivek
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Serega Sheypak | 19 Oct 15:28 2014
Picon

J48 result interpretation

Hi, I'm trying to apply Classify->j48 and I'm totally confused.
i have 10 predictors and 1 dependent variable. It value could be: 0,1

The result is:

J48 pruned tree
------------------
: true (37601.0/10093.0)

Number of Leaves  : 1

Size of the tree : 1


Time taken to build model: 3.3 seconds

=== Stratified cross-validation ===
=== Summary ===

Correctly Classified Instances       27509               73.1603 %
Incorrectly Classified Instances     10092               26.8397 %
Kappa statistic                          0.0012
Mean absolute error                      0.3913
Root mean squared error                  0.4425
Relative absolute error                 99.6348 %
Root relative squared error             99.8532 %
Total Number of Instances            37601     

=== Detailed Accuracy By Class ===

               TP Rate   FP Rate   Precision   Recall  F-Measure   ROC Area  Class
                 0.001     0          0.52      0.001     0.003      0.517    false
                 1         0.999      0.732     1         0.845      0.517    true
Weighted Avg.    0.732     0.731      0.675     0.732     0.619      0.517

=== Confusion Matrix ===

     a     b   <-- classified as
    13 10080 |     a = false
    12 27496 |     b = true

1. Number of Leaves  :  1, Size of the tree :  1 means I have a problems?
2. Relative absolute error                 99.6348 %
Root relative squared error             99.8532 %

these measures should be as low as possible?

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Serega Sheypak | 19 Oct 14:36 2014
Picon

Weka explorer returns 0 rows from DB

Hi, I'm trying to load mysql table as a dataset to Weka usig Weka Explorer GUI.
My table has only these types set in DatabaseUtils.props


jdbcDriver=org.gjt.mm.mysql.Driver
jdbcURL=jdbc:mysql://localhost:3306/lk
VARCHAR=0
TINYINT=1
DECIMAL=2
SMALLINT=5

I want use VARCHAR as a class attribute
tinyint as a boolean attribute
decimal is an absolute value
smallint as a class 

Right now weka says that query retuned 0 rows. I submit query directly to DB and get >37K rows.
How can i debug? How can i fnd what makes Weka reject records?
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Myriam Abramson | 19 Oct 16:20 2014
Face
Picon

Sequitur


Is there an interface to the Sequitur algorithm (www.sequitur.info) in
Weka? I couldn't find anything in the packages but the sequitur paper
has Ian Witten as co-author and the Java port was written by Eibe Frank.

--

-- 
                                   myriam

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Alex Karargyris | 16 Oct 22:08 2014
Picon

Confidence value for SMO.

How can I get the confidence value of the SMO output in the 0-1 interval? I only get 0 or 1.

This doesn't happen with other classifiers.


_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Eman | 16 Oct 00:09 2014
Picon

how to use Genetic search in Java to get the same structure in Weka

Hi Weka users ,,

 please could you help me to use Bayesian network classifier by using
Genetic search algorithm ,,in my own java code,, I try to do this but it
doesn't work :
   BayesNet bn_model=new BayesNet();  

   GeneticSearch GS=new   GeneticSearch();  

    bn_model.setSearchAlgorithm(GS);
   bn_model.buildClassifier(Train);

 and when I use weka tools to run this classifier with Genetic search ,, it
takes too much time(more than hour) to run that. so ,why that happened .

 Thanks 

--
View this message in context: http://weka.8497.n7.nabble.com/how-to-use-Genetic-search-in-Java-to-get-the-same-structure-in-Weka-tp32450.html
Sent from the WEKA mailing list archive at Nabble.com.
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Leonardo Lion | 15 Oct 10:26 2014
Picon

Data cleaning

HI all,

My questions are:
1- When can we apply data cleaning in Weka?
2- How to discover that our data need data cleaning?
3- How to do data cleaning with Weka?

Thanks,
Leonardo

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Roy Jaques | 15 Oct 09:14 2014
Picon

Reading a ball tree model in Scala‏

I've struggled long enough, it's time to ask those with greater knowledge.

I'm trying to load a ball tree model in Scala which was created using the
GUI and saved with the save option.

using :

var cls = new IBk()
cls =
SerializationHelper.read("""D:\Projects\routePredictionData\ballTree1.model""").asInstanceOf[IBk]

gives an error of

Exception in thread "main" java.io.InvalidClassException:
weka.core.NormalizableDistance; local class incompatible: stream classdesc
serialVersionUID = -2806520224161351708, local class serialVersionUID =
-4429407502154065067
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
	at weka.core.SerializationHelper.read(SerializationHelper.java:289)
	at weka.core.SerializationHelper.read(SerializationHelper.java:271)
	at Main$.main(Main.scala:18)
	at Main.main(Main.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

alternately :

var cls = new IBk()
cls =
SerializationHelper.readAll("""D:\Projects\routePredictionData\ballTree1.model""").asInstanceOf[IBk]

gives

Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object;
cannot be cast to weka.classifiers.lazy.IBk
	at Main$.main(Main.scala:18)
	at Main.main(Main.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

additionally trying to access the model as the first item of an array
returns ArrayIndexOutOfBoundsException.

So the question is - what is the structure of the object so I can get to the
model ? Please bear in mind that giving a pure Java solution may go over my
head as I'm using Scala as a functional language and avoiding as much object
oriented code as possible.

Regards,
Roy

--
View this message in context: http://weka.8497.n7.nabble.com/Reading-a-ball-tree-model-in-Scala-tp32444.html
Sent from the WEKA mailing list archive at Nabble.com.
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

孙中彬 | 14 Oct 10:42 2014
Picon

Bug in "weka.filters.unsupervised.attribute.StringToWordVector"

Dear all,
 
It seems that something is wrong when using the filter "StringToWordVector". In Weka version 3.7.0, a bug occurs in the function
 
"convertInstancewoDocNorm()". Specially, it occurs from line 1645 to 1654 when doing TFTransform. The variable val in line 1651 is
 
always a constant 1. The term frequency is not used when dong TFTransform.
 
Would anyone kindly help me solve this problem ?
Zhongbin Sun
Department of Computer Science & Technology
Xi'an Jiaotong University
28 Xianning West Road
Xi'an, Shaanxi, 710049
P.R. China
Tel: (+86) 13468958754
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Eman | 14 Oct 18:12 2014
Picon

Genetic Search in Bayesian Network


Hi Weka members ..

1. please could you tell me why the Genetic search algorithm that use in
Bayesian network takes to much time to run .. where I try it on hearth data
set which has 270 instances ,it takes more than 1 hour ? and I don't get the
answer yet !!

2. please could any one tell me how to use it into java code ..because I
used the following code but it gives Nive Bayes structure ? but when I used
by Weka gives different structure !!

  BayesNet bn_model=new BayesNet();     
  GeneticSearch GS=new   GeneticSearch();  
  bn_model.setSearchAlgorithm(GS);      
bn_model.buildClassifier(Train); 

3. please I want the paper that represents this method!!

Thanks weka 

--
View this message in context: http://weka.8497.n7.nabble.com/Genetic-Search-in-Bayesian-Network-tp32431.html
Sent from the WEKA mailing list archive at Nabble.com.
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

GMartin | 13 Oct 16:35 2014

Timeout to SQL Server 2014

Using Weka version 3.7.11, I have a local 2014 SQL Server instance on my PC.  I have a standalone JAVA program that reads from an Oracle database and writes to this SQL Server database.  Thus, I have went through enabling TCP connections, firewall issues, etc. to get that  to work.  When I copy the following connection string (same one I use for the JAVA program mentioned above)

 

jdbc:sqlserver://localhost:1433;user=gregory;password=xxxxxx;integratedSecurity=true;databaseName=green

 

into the Explorer -> Open DB -> URL box

 

I get the following error message:

  • javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=jar:file:/C:/Program%20Files/Weka-3-7/weka.jar!/weka/gui/images/information_small.gif,disabledIcon=,horizontalAlignment=LEFT,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=connecting to: jdbc:sqlserver://localhost:1433;user=gregory;password=xxxxxx;integratedSecurity=true;databaseName=green = false,verticalAlignment=CENTER,verticalTextPosition=CENTER]

  • javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=jar:file:/C:/Program%20Files/Weka-3-7/weka.jar!/weka/gui/images/error_small.gif,disabledIcon=,horizontalAlignment=LEFT,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=exception: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".,verticalAlignment=CENTER,verticalTextPosition=CENTER]

I know everything in the bottom error message in yellow is set correctly.  What may be missing is in my standalone JAVA program I have to include ‘sqljdbc_auth.dll’ but that corrected the ‘invalid username/password’ error I was getting – not the connection issue above.

 

CLASSPATH is:  C:\Program Files\Weka-3-7\weka.jar;C:\Program Files\Weka-3-7\sqljdbc4.jar;C:\Program Files\Weka-3-7\ojdbc14.jar;WEKA_HOME;%CLASSPATH%

 

Any ideas?

 

PS.  I know it’s not good to mix two different issues in the same email, but the ojdbc14.jar I have in the CLASSPATH variable doesn’t throw any errors when I try to connect to an Oracle 11.2.0.3 instance, it just hangs and I have to use task manager to kill Weka.  And for the record, the sqljdbc.jar doesn’t work – I had to change it to sqljdbc4.jar in the CLASSPATH to get this far with SQL Server 2014. 

 

 

 

The top part of my DatabaseUtils.props looks like this:

 

# Database settings for Microsoft SQL Server 2000

#

# General information on database access can be found here:

# http://weka.wikispaces.com/Databases

#

# url:     http://www.microsoft.com/

# jdbc:    http://www.microsoft.com/downloads/details.aspx?familyid=07287B11-0502-461A-B138-2AA54BFDC03A

# author:  Fracpete (fracpete at waikato dot ac dot nz)

# version: $Revision: 5837 $

 

# JDBC driver (comma-separated list)

jdbcDriver=com.microsoft.jdbc.sqlserver.SQLServerDriver

 

# database URL

jdbc:sqlserver://localhost:1433;user=gregory;password=xxxxxx;integratedSecurity=true;databaseName=green

#jdbcURL=jdbc:sqlserver://server_name:1433

 

Greg Martin

Oracle DBA

Summit Racing Equipment

330-633-2555  x4488

 

 


NOTICE: The information in this electronic mail transmission, including all attachments, is intended by Autosales, Incorporated dba Summit Racing Equipment for exclusive use of the named individual or entity to which it is directed. Please understand that this electronic mail transmission may contain information that is a trade secret or is otherwise confidential, and therefore must be protected from disclosure. It is not intended for transmission to, or receipt by, anyone other than the named addressee (or person expressly authorized to deliver it to the named addressee). The information contained in this electronic mail transmission must not be copied or forwarded to any unauthorized person. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and please notify the sender of the error by reply email or by calling Summit Racing Equipment at 330-630-5343, which will enable us to correct our records.  ­­  
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.waikato.ac.nz
List info and subscription status: http://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Gmane