This file contains hidden or 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
### Environment Creation | |
```zsh | |
# create conda env with a name of `conda_env_1` | |
conda create -y --name conda_env_1 | |
# if you have a packages specified in a .yml file, can create a conda env with those packages | |
conda env create -f path/to/conda.yml | |
# if you have an explicit conda environment - explicit files contains URLs of the package tarballs. |
This file contains hidden or 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
[user] | |
email = evandlutins@gmail.com | |
name = evan lutins | |
[alias] | |
# nice one liner for status | |
st = status --short | |
stu = status --short --untracked-files=no | |
stau = status --untracked-files=no | |
# nice one liner to push the current local branch to the remote origin with the branch with the same name | |
psu = "!f() { \ |
This file contains hidden or 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 hidden or 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 hidden or 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 |