2.3 ML Install

The simplest installation will then identify the package name (from the left column of output of the available command). For example:

$ ml install rain

The pacakge itself is retrieved from a git repository, and from github by default. The file MLHUB.yaml will be obtained from that repository which contains the metadata required to install the package for MLHub. We can explictly identify the GitHub path, thus skipping the curated package list:

$ ml install gjwgit/rain

Specific branches and commits of a GitHub repository can also be identified. The example above accesses the master branch by default. The first example below accesses the latest dev branch. The second example accesses a specific commit.

$ ml install gjwgit/rain@dev
$ ml install gjwgit/rain@aace268

Specific MLHub yaml files within a github repository can also be identified:

$ ml install gjwgit/rain:doc/MLHUB.yaml
$ ml install https://github.com/gjwgit/rain/...

The default git repository is GitHub and so the above are the same as:

$ ml install github:gjwgit/rain

The open source GitLab repository is also supported:

$ ml install gitlab:gjwgit/rain@2fe89kh:doc/MLHUB.yaml
$ ml install https://https://gitlab.com/gjwgit/rain/...

As is BitBucket:

$ ml install bitbucket:gjwgit/rain
$ ml install https://bitbucket.org/gjwgit/rain/...


Your donation will support ongoing development and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.