Liblinear not in CLASSPARH, on linux with weka - 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.

Related

Where is the Weka dataset folder on mac

I installed weka recently for a class in machine learning that I am taking and have been told that certain datasets are available in the weka folder called data. I installed the mac version of weka found at this link but I don't seem to have the sample datasets nor can I find them when I search on my mac through spotlight search. Does anyone know the location that mac would have them. Or does anyone have a link to the sample data folder online that I can download.
Not a Mac user, but you can find the datasets in the Weka git repository:
https://git.cms.waikato.ac.nz/weka/weka/-/tree/main/trunk/wekadocs/data
Or you can download them (and more) from sourceforge.net:
https://sourceforge.net/projects/weka/files/datasets/
The UCI datasets, which make up a large portion of the Weka example datasets, are available from this location:
https://sourceforge.net/projects/weka/files/datasets/UCI%20and%20StatLib/
For macOS, you can find the dataset files by right-click Weka in "Applications", click "Show Package Contents" then within the directory Contents/app/data.
Example, on my mac the location is:
./System/Volumes/Data/Applications/weka-3.8.6.app/Contents/app/data/

View the source code C++ in Eclipse - Ubuntu environtment

I had loaded the project to Eclipse but when I open the .cpp file, it like to open a text file.
Anyone know how to display the code-view in eclipse?
Please support.
Thank you so much.
I cannot find C/C++ in Window -> Preferences
Then you have no CDT installed – I suppose you got the version direct from the initial download page, but that's actually the java package – there's a link 'download packages' below, where you would have found the C++ package. Not too obvious, admitted.
Never mind, you don't need to re-install: Help -> About will reveil you your installed version's name ('Kepler', 'Luna', ...); via Help -> Install new packages you can add CDT plugin to your installation. Select under work with your release version of eclipse repository, e. g. http://download.eclipse.org/releases/photon.
Minimally, you need: C/C++ Development Tools, other plugins might be useful, too, like standalone debugger, call graph visualisation, unit testing support, auto tools support (configure, make; especially under linux), possibly LLVM support (if you want to use clang compiler), ...
My issue had been fixed.
Just do below steps in ubuntu:
Go to
https://www.eclipse.org/cdt/downloads.php and download newest CDT(C/C++ Develop Tool) version.
Copy the download file
eclipse-cpp-2018-12-R-linux-gtk-x86_64.tar.gz
to your folder in Ubuntu.
Extract
eclipse-cpp-2018-12-R-linux-gtk-x86_64.tar.gz
Run execute eclipse file -> Done.

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

LIBLINEAR with 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.

Can't open clojure the project in Intellij IDEA with La Clojure

I was going through this tutorial
http://wiki.jetbrains.net/intellij/Getting_started_with_La_Clojure and I got stuck here
http://wiki.jetbrains.net/intellij/Getting_started_with_La_Clojure#Opening_project_in_IntelliJ_IDEA. I don't know way but 'open project' dialog does show the file 'project.clj'. So I'm not able open the clojure project. (And also I don't know how to create new one)
Is this bug of IDEA/La clojure or I did something wrong?
To open/import clj projects, you need to have the Leiningen plugin installed.
Unfortunately, the latest official release of the lein plugin for intellij doesn't work well with Intellij13 (crashed my idea on load every time until removed manually).
I'm guessing that because of Cursive there wasn't a newer release even though the latest version of the plugin on github does work.
I followed the instructions on the lein plugin's git page to create a plugin bundle from the latest version: https://github.com/derkork/intellij-leiningen-plugin
Assuming you're using Intellij13, creating the bundle yourself and then installing it from disk will enable you to open clj project files.