Last active
June 21, 2024 10:24
-
-
Save eyaltrabelsi/f9ba6c35928cd71401e7ed93fac7bda2 to your computer and use it in GitHub Desktop.
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
def test_training_reproduceable(): | |
data = get_production_sample(pct=0.1) | |
data = feature_engineering(data) | |
train, test = split_data(data) | |
model_a = fit_model(train) | |
model_b = fit_model(train) | |
a_preds = model_a.predict(test) | |
b_preds = model_b.predict(test) | |
assert all(abs(a_preds - b_preds)) < 0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment