Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markdouthwaite/py-lingo

Utilities for helping you deploy Scikit-Learn models in Go (with lingo!)
https://github.com/markdouthwaite/py-lingo

hdf5 linear-models scikit-learn

Last synced: 13 days ago
JSON representation

Utilities for helping you deploy Scikit-Learn models in Go (with lingo!)

Awesome Lists containing this project

README

        

# py-lingo

Utilities for helping you deploy a subset of Scikit-Learn linear models in Go. See the
`lingo` repository for more details.

This package is particularly focussed on saving linear models _for inference_ purposes.

The package has been tested and supports the following Linear Model variants:

* **LinearRegression**
* **LogisticRegression**
* **Ridge**
* **RidgeClassifier**
* **Lasso**
* **SGDRegressor**
* **SGDClassifier**

## Quickstart

You can install `py-lingo` with.

```bash
pip install py-lingo
```

You'll then be able to import it in your code with:

```python
import pylingo
from sklearn.linear_model import LinearRegression

model = LinearRegression()

pylingo.dump(model, "model.h5")

loaded_model = pylingo.load("model.h5")
```