Spaces:
Sleeping
Sleeping
File size: 482 Bytes
0c661f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from src.train import train_pipeline
from src.evaluate import evaluate_model
def test_evaluation():
model_path, scaler_path, columns_path = train_pipeline()
auc = evaluate_model(model_path, scaler_path, columns_path)
assert auc > 0.5, "AUC too low"
print("Evaluation test passed. AUC:", auc)
if __name__ == "__main__":
test_evaluation()
|