/basic-ml

A library of basic machine learning algorithms -- written in C++, with Python bindings.

Primary LanguageC++MIT LicenseMIT

Basic ML library

A library of basic machine learning algorithms -- written in C++, with Python and JS bindings. The purpose of this library is to provide a simple, easy to use, and fast implementation of basic machine learning algorithms that can be used both in the web and in Python code.

Installation

To set up install install Pybind11:

python3 -m pip install pybind11[global]

and then run the following command:

python3 -m pip install basic_ml

Macs with M1

arch -arm64 python3 -m pip install basic_ml

Contents

Usage

import basic_ml

Building with emscripten

After installing the emscripten package, you should set the envs:

cd ~/loc-to-sdk/emsdk && source emsdk_env.sh

Then, you can use make library Makefile command.

Demo usage

Launching demo requires building the webasm libraries first. To launch demo best is to install live server with:

npm install -g live-server

and then launch it:

live-server demo/

Contributing

Please read CONTRIBUTING.md for details on dev setup, and the process for submitting pull requests to us.

Authors