Friday, December 26, 2025

The way to set up and use the Datumbox Machine Studying Framework


On this information we’re going to focus on learn how to set up and use the Datumbox Machine Studying framework in your Java tasks. Since nearly all the code is written in Java, utilizing it is so simple as together with it as dependency in your Java undertaking. However a few lessons (DataEnvelopmentAnalysis and LPSolver) use an exterior C library referred to as lpsolve (Linear Programming Solver). Observe that should you don’t plan to make use of these 2 lessons you aren’t required to put in any binary libraries in your system. However if you wish to discover all of the supported algorithms it is strongly recommended to do the complete set up as described under. This information covers the installations on Linux and Home windows programs and we offer references for putting in it on Mac OSX.

Earlier than utilizing the framework you’ll need to guarantee that Maven 3 is put in in your system. To validate this open up a console/terminal and sort the next:


mvn --version

Output:


Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T17:37:52+00:00)
Maven house: /usr/share/maven3
Java model: 1.8.0_25, vendor: Oracle Company
Java house: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_GB, platform encoding: UTF-8
OS identify: "linux", model: "3.13.0-34-generic", arch: "amd64", household: "unix"

If Maven 3 shouldn’t be put in in your system observe this information. If you wish to learn the way Maven works try this information. Lastly to see learn how to use Maven in your favorite IDE checkout the next Eclipse and Netbeans tutorials.

The framework makes use of lpsolve 5.5.2.0 to resolve linear programming issues. Observe that it is rather essential to put in the right model of the library to keep away from issues. Thus don’t use the bundle supervisor of your working system as a result of generally you’ll not discover the most recent variations.

To make use of the library you might want to set up 2 binary recordsdata: the liblpsolve55 dev library which solves linear applications and the liblpsolve55j which is a Java wrapper. Though you may obtain the recordsdata from the official web site and observe their set up information, on this tutorial we attempt to maintain issues so simple as potential and supply our personal set up information.

The very first thing you’ll need to do is go to our Github LpSolve repository and obtain the undertaking. When you unzip it, go to the lib folder. There you will see that 5 subfolders that include the binary libraries for the preferred working programs in 32bit and 64bit flavours. Should you work on Home windows click on on win32 or win64 folders, in case you are on Unix/Linux click on on the ux32 or ux64 folder, whereas should you use Mac OSX click on on the mac folder. To put in the library all it’s important to do is copy these recordsdata to the suitable folders of your working system.

Lpsolve on Home windows

On Home windows all it’s important to do is copy the lpsolve55.dll and lpsolve55j.dll recordsdata and paste them within the C:WindowsSystem32 folder (the placement is identical each for the 32bit and 64bit variations of the library).

Lpsolve on Unix/Linux

On Unix/Linux you might want to copy the lpsolve55.so and lpsolve55j.so recordsdata within the lib listing of your working system. The situation may differ relying on the distribution that you simply use. For instance should you use the 64bit flavour of Ubuntu 14.04 it’s best to copy the recordsdata to /usr/lib/ folder. Different variations or distributions may require you to repeat them on barely totally different location (for instance on CentOS 6 makes use of the /usr/lib64/ folder as a substitute).

Ensure you keep away from putting in lpsolve by utilizing bundle managers resembling yum or apt-get as a result of it’s extremely probably you’ll find yourself having the unsuitable model of the library.

Lpsolve on Mac OSX

In case you are a Mac person try this tutorial on learn how to compile and set up the lpsolve libraries.

Final however not least add the Datumbox Framework as a dependency in your Maven Venture. To do that open the pom.xml of your undertaking along with your favorite IDE or editor and add it contained in the dependencies tag the next entry:



    ...
    
        com.datumbox
        datumbox-framework
        RELEASE
    
    ...


That’s it! Now you can use the framework in your undertaking!

About 

My identify is Eleftherios Bampaletakis. I am a JEE developer-Software program Engineer, a Machine Studying fanatic and an lively contributor of Datumbox Machine Studying Framework. Study Extra

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles