The CLI Tool for Machine Learning

Rapidly automate the creation of powerful supervised learning models:


Learn More ⇩

Overview

What is CLIML?

CLIML is a CLI tool that rapidly automates the creation of powerful supervised learning models:

Who is CLIML for?

Installing CLIML

1. Pre-Requisites

On MacOS, libomp is required for LightGBM models. You can get libomp by running: brew install libomp.

2. Pip Install

Enter the following into the command line in your chosen directory:

$ pip install climl

Using CLIML

1. Getting Data

You can't do machine learning without some properly formatted data.

  1. Make sure it's a rectangular dataset (like you'd get in Excel).
  2. Ensure that your dataset has column headers.
  3. Put the output you want to start predicting in the final column.
  4. Save your dataset as a CSV file. (Excel coming soon!)
  5. Navigate to where the file is saved via the command line (ls and cd are your friends).

That's as complicated as it gets! Now you're ready to do some Machine Learning.

2. Training a Model

You can train a powerful ML model using just four words (in seconds) :

$ climl train dataset.csv num_of_seconds

This will tell CLIML to ...

  1. Detect whether the final column in dataset.csv is numerical or categorical.
  2. Begin training multiple regression or classification models, respectively.
  3. Continue tuning hyperparameters for your specified num_of_seconds.
  4. Display the most accurate model and its hyperparameters to the terminal.
  5. Save your model as an .climl file.

If you enter ls you'll be able to see your newly trained dataset.climl model!

3. Inspecting a Model

Forgot what type of model you trained? Interested in telling everyone about its hyperparameters? You'll only need three words this time:

$ climl inspect dataset.climl

This will output the model's type, hyperparameters, accuracy, and time taken to discover

4. Making Predictions

Annoyingly you'll need four whole words again.

Firstly, make sure that your things_to_predict.csv file is formatted exactly like the CSV file which model.climl was trained on - just without the final output column!

Then run:

$ climl predict things_to_predict.csv model.climl

This will:

  1. Display a prediction of the outputs for whatever inputs are in things_to_predict.csv
  2. Append a new column to things_to_predict.csv, with the header "Predicted Outputs"

5. Errors and --help

If you enter something incorrect, CLIML is pretty good at telling you why. For instance, if you enter:

$ climl train data.csv

You should see something like this: Command Line Error Message It looks like you didn't specify a training time!

If you're still a bit stuck, you can always enter one of the following:

To get something like this: Help for Train Command

Roadmap

Here are some things on the roadmap:

If you particularly need one, drop us an email at the bottom of the page!

FAQs

What models does CLIML train?

CLIML runs its model selection algorithm on: XGBoost, LightGBM, Random Forest, Extra_Tree, Logistic Regressions with L1 and L2 Regularization, CatBoost, KNeighbours

How long to specify for training?

Depending on your dataset, start small (<20 seconds), then lengthen until you notice accuracy starts to taper off or if it's "good enough"!

Do I need a super-powerful computer?

No! CLIML is suited for devices with low computational resource. But there are limits to everything!

Contact

Any questions are very wlecome - please send them to: hello@climl.com