This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseDriftParameters: | |
"""A base class to provide a template/common methods for all feature drift pipelines. | |
this class can be copy/pasted into an existing codebase and will by default run all tests set in global_tests, | |
numerical_tests, categorical_tests. the only variables that need modified are the high_risk_features, | |
low_risk_features, categorical_cols, numeric_cols | |
""" | |
response_fields = [] | |
# setting default thresholds of failure for tests that are to be run as part of drift detection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Simple flow to demonstrate how to run feature drift detection with Evidently on some dummy data.""" | |
from __future__ import annotations | |
import os | |
import numpy as np | |
import pandas as pd | |
from metaflow import FlowSpec, batch, card, step # pylint: disable=no-name-in-module | |
# BaseDriftParameters found in gist: https://gist.github.com/elutins/14db8768fef4ebd68c197d41b74f93f4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |