Skip to main content

modelstore

modelstore is a Python library that allows you to export, save and version a machine learning models.

The library's ModelStore will (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.

This library has been developed using Python 3.7.0 and is in pre-alpha. Please open an issue if you have any trouble!

Installation

pip install modelstore

Usage

from modelstore import ModelStore
# And your other imports

# 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)
model_store = ModelStore.from_gcloud(
   project_name="my-project",
   bucket_name="my-bucket",
)

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

# Print the meta-data about the model
print(json.dumps(meta_data, indent=4))

# Download the model back!
target = f"downloaded-{model_type}-model"
os.makedirs(target, exist_ok=True)
model_path = model_store.download(
   local_path=target,
   domain=model_domain,
   model_id=meta["model"]["model_id"],
)

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.

Release files for modelstore 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modelstore 0.0.3
File Size Uploaded
modelstore-0.0.3.tar.gz 20.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for modelstore 0.0.3
File Interpreter ABI Platform
modelstore-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size:73.9 kB

Release files / modelstore-0.0.3.tar.gz

Download URL modelstore-0.0.3.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f08c962a570198a897c17ec05b16c81f29a40ef87a6013ffd7d792e045b17484
BLAKE2b-256 checksum
How to use checksums
3caa907907038f945eadf4e31e28688d04cb9adbef20befadda838c675061e24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.11

Release files / modelstore-0.0.3-py3-none-any.whl

Download URL modelstore-0.0.3-py3-none-any.whl
Size 53.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16a9ce32d8b5ef0f5b8f17b05bf8d6577f140e13a18816262f5f74f0bc9e5e31
BLAKE2b-256 checksum
How to use checksums
26e24d8a21241d0794ef506eeddd00af4fb17124b7059ac332ac64b1521e1eee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.11

Release history Release notifications | RSS feed

0.0.82

2 release files

0.0.80

2 release files

0.0.78

2 release files

0.0.77

2 release files

0.0.74

2 release files

0.0.72

2 release files

0.0.71

2 release files

0.0.65

2 release files

0.0.52

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page