Skip to main content

A package for easy validation and post deployment monitoring of common linear and non linear ML models and clustering model

Project description

seamlessvalidation

Automating the validation process for machine learning models is crucial for efficient deployment and monitoring. Depending on the phase (pre-deployment or monitoring) and the model type (such as Classifiers, Regressors, Clusters), a tailored approach is necessary for selecting appropriate validation types and methods.

During the pre-deployment phase, the seamlessvalidation package intelligently selects validation types like Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE) for regression models, while for classification models, it opts for Receiver Operating Characteristic (ROC) curves, Confusion Matrices, Precision-Recall Scores, or F1 scores based on the model's nature. Moreover, it selects validation methods such as k-fold cross-validation, stratified cross-validation, leave-one-out cross-validation, bootstrapping, or holdout validation to ensure robustness in assessing model performance.

In the monitoring phase, the system continues to adapt its validation strategy based on the model type and current deployment context. It automatically selects appropriate validation types and methods to evaluate the model's performance over time. Additionally, it provides continuous monitoring results on data drift, enabling users to assess the model's effectiveness and population shift in real-world scenarios.

By automating the selection of validation types and methods based on the model type and deployment phase, the package ensures thorough and accurate validation, leading to more reliable model deployment and monitoring processes.

Installation

You can install your package using pip: pip install seamlessvalidation

Usage

Here's how you can use your package:

import seamlessvalidation

# Example usage code here
seamlessvalidation(your_model,X=X_class,y=y_class,n_splits=number_of_splits
                   ,cv_strategy='stratified_k_fold',avg_strategy='weighted',phase='validation')

seamlessvalidation(your_model,X=X_class,y=y_class
                   ,p_value=0.5
                   ,data_compare=old_data_to_compare, data_new=new_data
                   ,phase='post_deployment_monitoring')

Features

Auto selection on validation metrics based on model type and development stage. Easily selection of validation strategy. Flexible intergration comparison method and data drift monitoring

Dependencies

'scikit-learn', 'pandas', 'numpy', 'matplotlib', 'pickle', 'scipy'

Contributing

Contributions are welcome! Here's how you can contribute:

  • Fork the repository
  • Make your changes
  • Submit a pull request

License

Copyright (c) 2023, The Hugging Face Team. All rights reserved.

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.

Authors

ZhuZheng(Iverson) ZHOU

Support or Contact

zzho044@aucklanduni.ac.nz

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

seamlessvalidation-0.12.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

seamlessvalidation-0.12-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file seamlessvalidation-0.12.tar.gz.

File metadata

  • Download URL: seamlessvalidation-0.12.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.8

File hashes

Hashes for seamlessvalidation-0.12.tar.gz
Algorithm Hash digest
SHA256 5948d16b9d4cf98d7254372103e9e6975f81ea5d5194eaf23ae0f8610575e811
MD5 edb15f465d90ab8feaa8d7af5f70d326
BLAKE2b-256 accd0bb4523a7c6bb451a83f96767cefebfcc62f86341fee813f8952136bceb1

See more details on using hashes here.

File details

Details for the file seamlessvalidation-0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for seamlessvalidation-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf43d29be0e9fb5b0d8bc81978cf971833ca21e67885efcaacda0d8b5af6f63
MD5 867d5c9ba8c5bca0ebc8595307c798a7
BLAKE2b-256 4354de3208d0ec7511a1f96abd56509feb3730d7a102e87a9f8102043376e316

See more details on using hashes here.

Supported by

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