π¬ modelstore is a Python library that allows you to version, export, and save a machine learning model to your filesystem or a cloud storage provider.
APACHE-2.0 License
modelstore
is a Python library that allows you to version, export, save and download machine learning models in your choice of storage.
π Give us feedback by completing this survey: https://forms.gle/XShU3zrZcnLRWsk36
β No tracking server required
β Upload and version all your models
β Manage models by domains and states
β Download or load straight into memory
β Use as a command line tool
For more details, please refer to the documentation.
π¬ Come and find us in the MLOps Community Slack's #oss-modelstore
channel.
pip install modelstore
Is there a machine learning framework that is missing?
There is a full example in this Colab notebook.
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 one of the storage options
# In this example, the model store is created with a GCP 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))
# Load the model back!
clf = model_store.load(domain=model_domain, model_id=meta["model"]["model_id"])
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.