How To Install python-shogun on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-shogun
on Ubuntu 18.04.
What is python-shogun
python-shogun is:
SHOGUN - is a new machine learning toolbox with focus on large scale kernel methods and especially on Support Vector Machines (SVM) with focus to bioinformatics. It provides a generic SVM object interfacing to several different SVM implementations. Each of the SVMs can be combined with a variety of the many kernels implemented. It can deal with weighted linear combination of a number of sub-kernels, each of which not necessarily working on the same domain, where an optimal sub-kernel weighting can be learned using Multiple Kernel Learning. Apart from SVM 2-class classification and regression problems, a number of linear methods like Linear Discriminant Analysis (LDA), Linear Programming Machine (LPM), (Kernel) Perceptrons and also algorithms to train hidden markov models are implemented. The input feature-objects can be dense, sparse or strings and of type int/short/double/char and can be converted into different feature types. Chains of preprocessors (e.g. substracting the mean) can be attached to each feature object allowing for on-the-fly pre-processing.
SHOGUN comes in different flavours, a stand-a-lone version and also with interfaces to Matlab(tm), R, Octave, Readline and Python. This package contains the static and the modular Python interfaces.
There are three methods to install python-shogun
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-shogun Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-shogun
using apt-get
by running the following command:
sudo apt-get -y install python-shogun
Install python-shogun Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-shogun
using apt
by running the following command:
sudo apt -y install python-shogun
Install python-shogun Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-shogun
using aptitude
by running the following command:
sudo aptitude -y install python-shogun
How To Uninstall python-shogun on Ubuntu 18.04
To uninstall only the python-shogun
package we can use the following command:
sudo apt-get remove python-shogun
Uninstall python-shogun And Its Dependencies
To uninstall python-shogun
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-shogun
Remove python-shogun Configurations and Data
To remove python-shogun
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-shogun
Remove python-shogun configuration, data, and all of its dependencies
We can use the following command to remove python-shogun
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-shogun
References
Summary
In this tutorial we learn how to install python-shogun
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.