Skip to content

Instantly share code, notes, and snippets.

View elutins's full-sized avatar

Evan Lutins elutins

  • realtor.com
  • Austin, TX
View GitHub Profile
@elutins
elutins / base_drift_parameters.py
Created March 28, 2024 14:35
base drift parameters class - public gist
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
@elutins
elutins / SampleDriftFlow.py
Last active April 12, 2024 18:16
Demo metaflow for running drift detection
"""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
@elutins
elutins / 0_reuse_code.js
Created July 27, 2017 23:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console