You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.
Search by package name:
my-package (implicit)
name:my-package (explicit)
Search by package filename:
filename:my-package.ext
Search by package tag:
tag:latest
Search by package version:
version:1.0.0
prerelease:true (prereleases)
prerelease:false (no prereleases)
Search by package architecture:
architecture:x86_64
Search by package distribution:
distribution:el
Search by package license:
license:MIT
Search by package format:
format:deb
Search by package status:
status:in_progress
Search by package file checksum:
checksum:5afba
Search by package security status:
severity:critical
Search by package vulnerabilities:
vulnerabilities:>1
vulnerabilities:<1000
Search by # of package downloads:
downloads:>8
downloads:<100
Search by package type:
type:binary
type:source
Search by package size (bytes):
size:>50000
size:<10000
Search by dependency name/version:
dependency:log4j
dependency:log4j=1.0.0
dependency:log4j>1.0.0
Search by uploaded date:
uploaded:>"1 day ago"
uploaded:<"August 14, 2022 EST"
Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY
Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true
Search by repository:
repository:repo-name
Search by last download date:
last_downloaded:<"30 days ago"
last_downloaded:>"August 14, 2022 EST"
Search queries for all Debian-specific (and related) package types
Search by component:
deb_component:unstable
Search queries for all Maven-specific (and related) package types
Search by group ID:
maven_group_id:org.apache
Search queries for all Docker-specific (and related) package types
Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)
Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)
Search queries for all Generic-specific package types
Search by file path:
generic_filepath:path/to/file.txt
Search by directory:
generic_directory:path/to
Field type modifiers (depending on the type, you can influence behaviour)
For all queries, you can use:
~foo for negation
For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching
For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal
Need a secure and centralised artifact repository to deliver Alpine,
Cargo,
CocoaPods,
Composer,
Conan,
Conda,
CRAN,
Dart,
Debian,
Docker,
Generic,
Go,
Helm,
Hex,
HuggingFace,
LuaRocks,
Maven,
MCP,
npm,
NuGet,
P2,
Python,
RedHat,
Ruby,
Swift,
Terraform,
Vagrant,
VSX,
Raw & More packages?
Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.
With support for all major package formats, you can trust us to manage your software supply chain.
akerbp.mlops
3.4.0
One-liner (summary)
Description
# MLOps Framework This is a framework for MLOps that deploys models as functions in Cognite Data Fusion
# User Guide
## Reference guide This assumes you are already familiar with the framework, and acts as a quick reference guide for deploying models using the prediction service, i.e. when model training is performed outside of the MLOps framework. 1. Train model to generate model artifacts 2. Manually upload artifacts to your test environment
- This includes model artifacts generated during training, mapping- and settings-file for the model, scaler object etc. Basically everything that is needed to preprocess the data and make predictions using the trained model.
- Deploy prediction service to test - This is handled by the CI/CD pipeline in Bitbucket
- Manually promote model artifacts from test to production
- Manually trigger deployment of model to production - Trigger in the CI/CD pipeline
- Call deployed model - See section "Calling a deployed model prediction service hosted in CDF" below
## Getting Started: Follow these steps: - Install package: pip install akerbp.mlops - Set up pipeline file bitbucket-pipelines.yml and config file
mlops_settings.yaml by running this command from your repo's root folder: `bash python -m akerbp.mlops.deployment.setup `
- Fill in user settings and then validate them by running this (from repo root): `python from akerbp.mlops.core.config import validate_user_settings validate_user_settings() ` alternatively, run the setup again: `bash python -m akerbp.mlops.deployment.setup `
- Commit the pipeline and settings files to your repo
- Become familiar with the model template (see folder model_code) and make sure your model follows the same interface and file structure (see [Files and Folders Structure](#files-and-folders-structure))
- Follow or request the Bitbucket setup (described later)
A this point every git push in master branch will trigger a deployment in the test environment. More information about the deployments pipelines is provided later.
## Updating MLOps Follow these steps: - Install a new version using pip, e.g. pip install akerbp.mlops==x, or upgrade your existing version to the latest release by running pip install --upgrade akerbp.mlops - Run this command from your repo's root folder:
`bash python -m akerbp.mlops.deployment.setup ` This will update the bitbucket pipeline with the newest release of akerbp.mlops and validate your settings. Once the settings are validated, commit changes and you're ready to go!
## General Guidelines Users should consider the following general guidelines: - Model artifacts should not be committed to the repo. Folder model_artifact
does store model artifacts for the model defined in model_code, but it is just to help users understand the framework ([see this section](#model-manager) on how to handle model artifacts)
- Follow the recommended file and folder structure ([see this section](#files-and-folders-structure))
- There can be several models in your repo: they need to be registered in the settings, and then they need to have their own model and test files
- Follow the import guidelines ([see this section](#import-guidelines))
- Make sure the prediction service gets access to model artifacts ([see this section](#model-manager))
## Configuration MLOps configuration is stored in mlops_settings.yaml. Example for a project with a single model: ```yaml model_name: model1 human_friendly_model_name: 'My First Model' model_file: model_code/model1.py req_file: model_code/requirements.model artifact_folder: model_artifact artifact_version: 1 # Optional test_file: model_code/test_model1.py platform: cdf dataset: mlops python_version: py39 helper_models:
- my_helper_model
- info:
- prediction: &desc
description: 'Description prediction service, model1' metadata:
- required_input:
- ACS
- RDEP
- DEN
- training_wells:
- 3/14
- 2/7-18
- input_types:
- int
- float
- string
- units:
- s/ft
- 1
- kg/m3
- output_curves:
- AC
- output_units:
- s/ft
petrel_exposure: False imputed: True num_filler: -999.15 cat_filler: UNKNOWN
owner: data@science.com
- training:
<< : *desc description: 'Description training service, model1' metadata:
- required_input:
- ACS
- RDEP
- DEN
- output_curves:
- AC
- hyperparameters:
- learning_rate: 1e-3 batch_size: 100 epochs: 10
``` | Field | Description | | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | model_name | a suitable name for your model. No spaces or dashes are allowed | | human_friendly_model_name | Name of function (in CDF) | | model_file | model file path relative to the repo's root folder. All required model code should be under the top folder in that path (model_code in the example above). | | req_file | model requirement file. Do not use .txt extension! | | artifact_folder | model artifact folder. It can be the name of an existing local folder (note that it should not be committed to the repo). In that case it will be used in local deployment. It still needs to be uploaded/promoted with the model manager so that it can be used in Test or Prod. If the folder does not exist locally, the framework will try to create that folder and download the artifacts there. Set to null if there is no model artifact. | | artifact_version (optional) | artifact version number to use during deployment. Defaults to the latest version if not specified | | test_file | test file to use. Set to null for no testing before deployment (not recommended). | | platform | deployment platforms, either cdf (Cognite) or local for local testing. | | python_version | If platform is set to cdf, the python_version required by the model to be deployed needs to be specified. Available versions can be found [here](https://cognite-sdk-python.readthedocs-hosted.com/en/latest/functions.html#create-function) | | helper_models | Array of helper models using for feature engineering during preprocessing. During deployment, iterate through this list and check that helper model requirements are the same as the main model. For now we only check for akerbp.mlpet | | dataset | CDF Dataset to use to read/write model artifacts (see [Model Manager](#model-manager)). Set to null is there is no dataset (not recommended). | | info | description, metadata and owner information for the prediction and training services. Training field can be discarded if there's no such service. |
- Note:
- all paths should be unix style, regardless of the platform.
- Notes on metadata:
- We need to specify the metadata under info as a dictionary with strings as keys and values, as CDF only allows strings for now. We are also limited to the following - Keys can contain at most 16 characters - Values can contain at most 512 characters - At most 16 key-value pairs - Maximum size of entire metadata field is 512 bytes
If there are multiple models, model configuration should be separated using ---. Example: `yaml model_name: model1 human_friendly_model_name: 'My First Model' model_file: model_code/model1.py (...) --- # <- this separates model1 and model2 :) model_name: model2 human_friendly_model: 'My Second Model' model_file: model_code/model2.py (...) `
## Files and Folders Structure All the model code and files should be under a single folder, e.g. model_code. Required files i
| Status | Completed |
|---|---|
| Checksum (MD5) | c2132189dffd30d3b337d49964d5a89a |
| Checksum (SHA-1) | 7800cf5b878ba38035f484cfb3250b3f1bbcb3dd |
| Checksum (SHA-256) | f49472315a821f89b0cf4d9097d57e52e8ab205e2f46b837f2d2649d166338fa |
| Checksum (SHA-512) | b0060388aa38b7f33b0825859a182e63059315fa122b2eda25547da636a8643a24… |
| GPG Signature | |
| GPG Fingerprint | 6811684bac0b8895434e97bdd4391b8fb999e537 |
| Storage Region | Dublin, Ireland |
| Type | Binary (contains binaries and binary artifacts) |
| Uploaded At | 4 months, 3 weeks ago |
| Uploaded By |
|
| Slug Id | akerbpmlops-340-py3-none-anywhl-ml5n |
| Unique Id | NWt8LSyqZpB6YbA9 |
| Version (Raw) | 3.4.0 |
| Version (Parsed) |
|
| extended metadata | |
| Author | Alfonso M. Canterla <alfonso.canterla@soprasteria.com> |
| Classifiers | License :: OSI Approved :: MIT License | Operating System :: OS Independent | Programming Language :: Python :: 3 |
| Maintainer | Christian N. Lehre <christian.lehre@soprasteria.com> |
| Metadata Version | 2.1 |
| Project Urls | Homepage, https://bitbucket.org/akerbp/akerbp.mlops/ |
| Py Filetype | bdist_wheel |
| Py Version | py3 |
| Requires Dist | PyYAML >=5.4.1 | black ; extra == 'dev' | build ; extra == 'dev' | cognite-sdk[pandas] <6,>=4.4.3 ; extra == 'cdf' | fastapi ; extra == 'gc' | flake8 ; extra == 'dev' | mypy ; extra == 'dev' | pre-commit ; extra == 'dev' | pydantic <2,>=1.7.3 | pytest >=6.1.1 | setuptools >50.3.0 | types-PyYAML ; extra == 'dev' | types-requests ; extra == 'dev' | uvicorn ; extra == 'gc' |
| Requires Python | >=3.8 |
| pkg | akerbp.mlops-3.4.0-py3-none-any… |
6
67.9 KB |
md5 | sha1 | sha256 | sha512 |
This package has 46 files/directories.
| Newer |
|
akerbp.mlops |
5 |
|
||
|
|
akerbp.mlops |
6 |
|
|||
| Older |
|
akerbp.mlops |
4 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
4 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
4 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
||
| Older |
|
akerbp.mlops |
5 |
|
Last scanned
4 months, 3 weeks ago
Scan result
Clean
Vulnerability count
0
Max. severity
UnknownPackage statistics are no longer available on cloudsmith.io. Please visit our new web app to access this feature.
You can embed a badge in another website that shows this or the latest version of this package.
To embed the badge for this specific package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/3.4.0/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/)
|This version of 'akerbp.mlops' @ Cloudsmith|
.. |This version of 'akerbp.mlops' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/akerbp.mlops/3.4.0/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/?render=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/3.4.0/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/akerbp.mlops/3.4.0/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/3.4.0/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/",title="This version of 'akerbp.mlops' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/3.4.0/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/akerbp.mlops/3.4.0/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/?render=true" alt="This version of 'akerbp.mlops' @ Cloudsmith" /></a>
rendered as:
To embed the badge for the latest package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/latest/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/)
|Latest version of 'akerbp.mlops' @ Cloudsmith|
.. |Latest version of 'akerbp.mlops' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/akerbp.mlops/latest/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/?render=true&show_latest=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/latest/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/akerbp.mlops/latest/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/latest/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/",title="Latest version of 'akerbp.mlops' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/akerbp.mlops/latest/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/akerbp.mlops/latest/a=noarch;xf=bdist_wheel;xn=akerbp-mlops;xv=py3/?render=true&show_latest=true" alt="Latest version of 'akerbp.mlops' @ Cloudsmith" /></a>
rendered as:
These instructions assume you have setup the repository first (or read it).
To install/use akerbp.mlops @ version 3.4.0 ...
pip install 'akerbp.mlops==3.4.0'
You can also install the latest version of this package:
pip install --upgrade 'akerbp.mlops'
If necessary, you can specify the repository directly:
pip install \
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
akerbp.mlops==3.4.0
If you've got a project requirements.txt file, you can specify this as a dependency:
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
akerbp.mlops==3.4.0
In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:
--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
akerbp.mlops==3.4.0