Skip to main content

For handling binary machine learning models in mongodb

Project description

Mongodb ML Model Managing

Mongodb can store machine learning binary models. Using this package ml models can be versioned. Also, possible to modify existing version. When the version is available the package use the local model. If packages are not available in the local storage, it will download.

Requires python 3.8+

Mongodb:

Prediction Model management

  • Models are stored in mongodb

  • Config setting mongodb.model for settings

  • Uploading model

    • Model name in db has 3 part
      • First part project name
      • Second part model name (should be unique)
      • Third version number
    • If model name exist in db
      • Delete it automatically
      • Insert new model
  • Downloading model

    • If file exist in the local, file will be reused, discard the downloading
    • File will be saved in /ml/model/modele_name/version
  • Adding new model

    • Create a class name in config file
      • Format
        • model.class_name
        • Required attributes
          • name
          • version
  • Usage

    • Importing package

      from mongodb_ml_models import ManageModel
      • ManageModel.get_model()
      • ManageModel.upload_model()
      • ManageModel.get_model_versions()
    • upload_model(binary_model, model_class)
      • model_class is the reference name in config file for mapping
      • Model will be saved in mongodb
      • Model will be saved in local path, ml/model/model_name/version (model name and model version should mention in config)
    • get_model(model_class)
      • Check for local path (ml/model/model_name/version)
      • If not available then download from db
    • get_model_versions(model_class)
      • It lists out all the available versions

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

mongodb-ml-models-1.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

mongodb_ml_models-1.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file mongodb-ml-models-1.0.0.tar.gz.

File metadata

  • Download URL: mongodb-ml-models-1.0.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.9

File hashes

Hashes for mongodb-ml-models-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c726cf131944fba7f9099238020eb9e534704c63910986c563d7888d006a47fe
MD5 64aab0cf76720adbf34fd40fd0e0c726
BLAKE2b-256 bdf806b0f294e7143303021218454b6a54f764784204a6094815837c2ead88cd

See more details on using hashes here.

File details

Details for the file mongodb_ml_models-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mongodb_ml_models-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.9

File hashes

Hashes for mongodb_ml_models-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2edcfd16b6fdc3ceb5dbe3477b68f16591a2c1974cf3e75759bd55ba7f8cdf6
MD5 0cb86a3cf68cf133f993ab142a22c1f7
BLAKE2b-256 60c03a72e463e2867d78db58ebed41755e6cb4e8fbfa7a7b0ac02529f20746f1

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