This folder contains Python code, Jupyter Notebooks and JSON examples to demonstrate MLBlocks functionaliry.
Within this folder you will find:
primitives: Example primitive JSONs to demonstrate different MLBlocks functionalities.pipelines: Example pipeline JSONs to demonstrate different MLBlocks functionalities.tutorials: Collection of Jupyter Notebooks to show the usage of different MLBlocks functionalities.
In order to run the examples contained in this folder you should have pip installed on your system .
Optionally, also install and activate a virtualenv to run them in an isolated environment.
In order to run these tutorials on your computer, please follow these steps:
- Clone this github repository:
git clone git@github.com:MLBazaar/MLBlocks.git- (Optional) Create a virtualenv to execute the examples in an environment isolated from the rest of your computer:
pip install virtualenv
virtualenv -p $(which python3.6) mlblocks-venv
soucre mlblocks-venv/bin/activate- Enter the repository and install the dependencies
cd MLBlocks
make install-examplesThis will install MLBLocks as well as MLPrimitives and Jupyter.
- Enter the
examplesfolder and start a Jupyter Notebook:
jupyter notebook- Point your browser at the link shown in your console and run the examples from the
examples/tutorialsfolder.