LIBLINEAR with Weka - weka

I'm using Weka 3.6.11 and I want to use its LibLinear wrapper.
I get the message that "Liblinear classes not in CLASSPATH"
I am on Windows. I create the CLASSPATH to the system variables, and wrote the path to the liblinear.jar file which happens to be
C:\Program Files (x86)\Weka-3-6\LibLINEAR.jar
So now, I'm not sure what the problem is. Any ideas?

I haven't exactly resolved my issue but when I used Weka 3.7 instead of 3.6 and used the Weka Package manager to install LibLinear and LIBSVM, they worked just fine.

Related

blpapi Bloomberg - Python prog. vs. BBG Interaction

I'm quite new to Python (Got forced to use it since BBG don't support R), and i'm having difficulty installing blpapi. I'm currently using Spyder and Python 2.7 version.
Does anyone on this forum had already used python to send orders to Bloomberg and manipulate data provided by the terminal? If Positive, could you pls share how you've installed the API Libs and any other useful stuff. The idea is to feed a certain model with live data.
There's an .exe file in the Zip that you download from WAPI , but there's an error message appearing. I've already tried to speak with a BBG represent. but that does not helped.
Regards,

Missing module to read MS Access using python

I was trying with the situation described in this question - Read an Access database in Python on non-Windows platform (Linux or Mac)
I downloaded the jython 2.5 jar file tried setting up the class path, but I am getting the error:
No module named com.ziclix.python.sql.
I dont know if i am doing it in a wrong way,
I just could not figure out how to configure odoo directory..
Jython includes com.ziclix.python.sql in "jython.jar" itself, so no external dependencies should be required. If you are able to get Odoo to run under Jython (instead of CPython) then com.ziclix.python.sql should be available.

Qt5 examples package on Debian

How can I separately get the package with examples for Qt5 on Debian Jessie? I have QtCreator with Qt5 and can develop Qt apps, however I do not have the examples. Synaptic Package Manager comes up with too many hits when I search Qt. I think the closes thing to what I want is qtbase5-examples, but I'm not 100% sure if this is what I have to download.
These files are provided by qtbase5-examples, this is correct. However, the files are not installed in obvious path and it depends on the architecture:
/usr/lib/x86_64-linux-gnu/qt5/examples/ [amd64]
/usr/lib/i386-linux-gnu/qt5/examples/ [i386]
More info about paths
These files are correct qt5 example code from the Qt Examples List.
Why do you need it to be from the debian repository.
I would recommend getting the examples form the download page.
That has worked better for me.
Also if you begin to develop on another system, other linuxes or windows etc,
then you don't have to go and search for right packages.
If you use the installers, you can get all samples, that is not necessarily true when using a distro package.
http://download.qt.io/official_releases/qt/5.5/5.5.0/single/qt-everywhere-opensource-src-5.5.0.zip
Git repositories to get the code updated and you can check out the release you want.
http://code.qt.io/cgit/qt/
All downloads (OpenSource) page:
http://www.qt.io/download-open-source/#section-2

OpenCV haartraining: Mergevec error: Input file does not exist or not readable

Following this tutorial, I've created my positive samples but need to merge them now, using mergevec. I downloaded the mergevec.exe binary file provided and got the two required dlls cxcore100.dll and highgui100.dll. However, when I run it like so:
mergevec samples.txt samples.vec
it gives me the error:
ERROR: Input file <filename> does not exist or not readable.
What should I do to fix this? My vec files are fine, because I was able to view them using the opencv_createsamples utility. So I know they're fine.
I ran into this issue as well and made a python utility that combines .vec files to avoid installing openCV again: https://github.com/wulfebw/mergevec
Hope it helps.
I was in the same situation as you few days ago so i'll try to help you out =P.
First of all i am interested to know where you found the mergevec.exe, because it isn't available to download anymore if i recall. I ask because i think that you might have downloaded an exe compiled on Linux. I had the same error when i tried to execute the mergevec, i had compiled on Ubuntu, on my Windows computer. Even with the 2 dlls.
As i explained it here , The mergevec from Naotoshi was originally made for Unix distribution, so under windows you will encounter a lot of problems. I first tried to do it on windows but i abandonned because it was too complicated and even with a full Cygwin installation i could not compile the mergevec.cpp.
What i advise you to do is to create yourself an Ubuntu virtual machine and to compile your own mergevec.exe. Once done you can copy your vec files in your virtual machine and merge them under Ubuntu. After this you can bring back the merged vec file to Windows if you want (It is better to not run the training under a VM: less computation power).
Here is what i did:
Installed VMware player with Ubuntu 14.0.4 (although i don't recommend it, still some bugs)
Installed OpenCV from the sources with TBB. There are a lot of tutorials, but the only one that worked for me is the OPenCV website, they are the more accurate on the libraries you mandatorily need.
I downloaded the GitHub classifier training and then I followed the commands given and it worked well.
If you encounter any library problem or OpenCV Installation issue don't hesitate i went through them too.

Liblinear not in CLASSPARH, on linux with weka

I download liblinear.1.92 from http://liblinear.bwaldvogel.de/ , put the .jar file under
$HOME/lib/liblinear-1.92/liblinear-1.92.jar
and start weka as
java -classpath $CLASSPATH:weka.jar:$HOME/lib/libsvm-3.16/java/libsvm.jar:$HOME/lib/liblinear-1.92/liblinear-1.92.jar weka.gui.GUIChooser
every thing was fine until I wanted to use liblinear classifier, weka shows "liblinear not in CLASSPATH". What could be the problem? Thanks.
That's because the liblinear.jar you downloaded is not the original one. The creator of that jar uses his own package structure, his classes are placed in
de.bwaldvoge.liblinear
but the standard weka classifier looks for Linear in
liblinear
On the bottom of bwaldvogels website that you linked, he gives a link to a Weka wrapper that points to his package.
The Weka package manager is available from version 3.7.2 or later, so you have to download the developer version, since the latest stable is 3.6.9.
Then, simply start the Weka package manager and install LibLINEAR. It worked for me this way. Note, that this will create a "wekafiles" directory in $HOME.