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
### 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.
@elutins
elutins / gitconfig.gitconfig
Created April 14, 2025 13:30
Common git aliases to include in a .gitconfig file
[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() { \
@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