Skip to main content

modelstore is a library for versioning, exporting, and storing machine learning models

Project description

modelstore

modelstore is a Python library that allows you to version, export, and save a machine learning models to your filesystem or a cloud storage provider (AWS or GCP).

The library's ModelStore helps you to (a) version your mdoels, (b) store them in a structured way, and (c) collect meta data about the Python runtime that was used to train them.

Installation

pip install modelstore

Usage

# Train your model
clf = RandomForestClassifier(n_estimators=10)
clf = clf.fit(X, Y)

# Create a model store that uses a Google Cloud bucket (or AWS bucket)
ms = ModelStore.from_gcloud(
   project_name="my-project",
   bucket_name="my-bucket",
)

# Create an archive that exports your model
archive = ms.sklearn.create_archive(model=clf)

# Upload the archive to your model store
meta_data = ms.upload(domain="example-model", archive)

print(json.dumps(meta_data, indent=4))

For more details, please refer to the documentation.

## License

Copyright 2020 Neal Lathia

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

modelstore-0.0.1b0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modelstore-0.0.1b0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file modelstore-0.0.1b0.tar.gz.

File metadata

  • Download URL: modelstore-0.0.1b0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0

File hashes

Hashes for modelstore-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 748b67644409cedfdae24a1797c879923412c712f85f38d12dce7f8644b9569d
MD5 00a4925d442149c94a25a3849789ee08
BLAKE2b-256 1612bde11f4ba475b667da2439e7cb1d20c458ac0338927e9edb54f2f9f3354f

See more details on using hashes here.

File details

Details for the file modelstore-0.0.1b0-py3-none-any.whl.

File metadata

  • Download URL: modelstore-0.0.1b0-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0

File hashes

Hashes for modelstore-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c359b1e977f94bd7d6a5aa599e6d78ba0c046db6eb782f96a3b38b0010d389d1
MD5 85e85d2b5a7e7a6bb7ac4b99fc4a0cce
BLAKE2b-256 0d7744f4f26febf02fabcc0e819c68033cfe8c0d412abcb970bb8c5a71d16d9d

See more details on using hashes here.

Supported by

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