Giter VIP home page Giter VIP logo

giskard-ci-cd-tutorial's Introduction

Mastering Machine Learning Validation with Giskard: CI/CD Integration

Welcome to this tutorial repository, where we explore the use of Giskard in the context of CI/CD integration.

This tutorial is part of the Mastering Machine Learning Validation with Giskard: From Detection to CI/CD Integration article.

To see how Giskard detects vulnerabilities in our model in action, you can demo the notebook in Google Colab: Open In Colab

Features

  • Model Validation: Detect potential issues in your machine learning models using Giskard's comprehensive scanning capabilities.
  • Test Suites: Create and customize test suites to systematically validate your models and ensure issues are addressed.
  • Custom Tests: Tailor your validation with custom tests to meet specific requirements.
  • CI/CD Integration: Integrate Giskard into your CI/CD pipeline to ensure your models are always validated before deployment.

Below, we'll explain the code structure and how to use it effectively.

Usage

We have provided a simple Python script named run_test_suites.py that utilizes the giskard package to scan a model, run a test suite, and save the results in a JSON format, suitable for consumption by your CI/CD pipeline.

The script is designed to be triggered by your CI/CD pipeline when a pull request is created or updated. The pipeline will execute the script and display the results in the pull request comments.

In this tutorial, we use a simple logistic regression model trained on the Customer Churn dataset.

You can find the trained model in the model directory, and the validation dataset is provided in the data directory.

Snapshots of the Scan Results, Test Suite Results, and CI/CD Integration are provided below.

Scan Results

Scan Results

Test Suite Results

Test Suite Results

CI/CD Workflow Initiated

CI/CD Workflow Initiated

PR Comment

PR Comment

giskard-ci-cd-tutorial's People

Contributors

sagar118 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.