GNU/Linux Desktop Survival Guide
by Graham Williams
20200220 The machine learning hub is a platform specifically built on Ubuntu. See Chapter 4 for getting started with Ubuntu on different platforms. This quick start is based on a fresh install of Ubuntu 18.04 LTS. Some of the steps may not be necessary if some software is already installed.
We begin with making sure the system is up to date. You may be asked questions to confirm that you would like a package or two to be installed along the way. This will take less than 5 minutes.
$ sudo apt update $ sudo apt upgrade $ sudo apt install python3-pip
Now install and configure MLHub:
$ pip3 install mlhub $ ml configure
MLHub links github repositories into a collection of quickly accessible and ready to run, explore, rebuild, and even deploy, pre-built machine learning models and data science technology. The models and technology are accessed and managed using the ml command from the mlhub package available for quick installation from pypi. A growing number of machine learning models and data science technology are becoming available, as well as cloud based services.
If you find that the ml command is not found then you may
like to log out and back in again. This will refresh the PATH where
commands are found. The default in Ubuntu 18.04 LTS is that the path
~/.local/bin if it exists, which won;t be the case
for the first time. Pip install the ml command there and a login will
check this. If all else fails the following coul be useful (but not
$ echo 'PATH=~/.local/bin:$PATH' >> ~/.bashrc
The configure of ml as above will install quite a comprehensive collection of AI technology to have your computer AI-ready. This will include several hundred packages (mostly small) that are downloaded and installed. For each of the major packages you will be asked to confirm that it is okay to install it. This could take up to 5 minutes.
This will install quite a collection of free and open source packages that begins to form a foundation for doing AI and ML and Data Science on Ubuntu. Included is the R Statistical Software package.
As the instructions will suggest, run the following to immediately turn on tab expansion for mlhub commands and model names. This will be available anyhow on the next login.
$ source /etc/bash_completion.d/ml.bash