Skip to main content
drawing

Libra

An ergonomic machine learning library for non-technical users. Save time. Blaze through ML.

Build Status Downloads Slack

PyPi Release Website shields.io Issues


Installation

Install latest release version:

pip install -U libra

Install directory from github:

git clone https://github.com/Palashio/libra.git
cd libra
pip install .

Alternatively you can build and use the docker image locally with:

docker build . -f docker/libra-normal/Dockerfile -t libra
docker run -v /path/to/my/data:/data -it --rm libra

Or if you have nvidia-docker installed.

docker build . -f docker/libra-gpu/Dockerfile -t libra-gpu
docker run -v /path/to/my/data:/data --gpus all -it --rm libra-gpu

Usage: the basics

The core functionality of libra works through the client object. A new client object should be created for every dataset that you want to produce results for. All information about the models that're built, the plots that are generated, and the metrics are created will be stored in the object.

You can then call different queries on that client object, and the dataset you passed to it will be used.

from libra import client

newClient = client('path/to/dataset') 
newClient.neural_network_query('please model the median number of households')

Now, calling

newClient.info()

will return a dictionary of all the information that was generated:

dict_keys(['id', 'model', 'num_classes', 'plots', 'target', 'preprocessor', 
          'interpreter', 'test_data', 'losses', 'accuracy'])

Other queries can also be called on the same object, and will be appended to the models dictionary.

newClient.svm_query('predict the proximity to the ocean')
newClient.model().keys()

dict_keys(['regression_ANN', svm'])

Tutorials


Asking for help

Welcome to the Libra community!

If you have any questions, feel free to:

  1. read the docs.
  2. Search through the issues.
  3. Ask on stackoverflow with the tag libra.
  4. Join our slack.

Demos

alt-text

Contact

Shoot me an email at ps9cmk@virginia.edu if you'd like to get in touch!

Follow me on twitter for updates and my insights about modern AI!

Metadata

Release files for libra 1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libra 1.2.5
File Size Uploaded
libra-1.2.5.tar.gz 75.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libra 1.2.5
File Interpreter ABI Platform
libra-1.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 159.0 kB

Release files / libra-1.2.5.tar.gz

Download URL libra-1.2.5.tar.gz
Size 75.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cacd6a59dc20dd2256dbbe2d70a404d5271333fec03886e929f73b72bf780911
BLAKE2b-256 checksum
How to use checksums
023fe41a0163933148f45d4ab57c3c3a63f1c24d93120321b2c96ff1cb5776cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / libra-1.2.5-py3-none-any.whl

Download URL libra-1.2.5-py3-none-any.whl
Size 83.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d50cb9cad142d1008edbc680bf4643bc10c7deac4c40119a4f8b23149359e932
BLAKE2b-256 checksum
How to use checksums
297360b2dbde0cc0505ed1fb31fca6bc940afd819b18ca49c1fd7d999b7fd7ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.2.5 This release

2 release files

1.2.2

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.6

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page