Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!)
- Host: GitHub
- URL: https://github.com/markdouthwaite/py-lingo
- Owner: markdouthwaite
- License: mit
- Created: 2020-11-11T07:57:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-12T18:37:24.000Z (about 4 years ago)
- Last Synced: 2025-01-01T08:52:09.692Z (15 days ago)
- Topics: hdf5, linear-models, scikit-learn
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 LinearRegressionmodel = LinearRegression()
pylingo.dump(model, "model.h5")
loaded_model = pylingo.load("model.h5")
```