Skip to main content

Utilities for saving Scikit-Learn Linear Models in HDF5 format.

Project description

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.

pip install py-lingo

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

import pylingo
from sklearn.linear_model import LinearRegression

model = LinearRegression()

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-lingo-0.0.1b1.tar.gz (2.8 kB view hashes)

Uploaded source

Built Distribution

py_lingo-0.0.1b1-py3-none-any.whl (3.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page