kelvi23 commited on
Commit
777dcd9
·
verified ·
1 Parent(s): 603d039

Update README.md

Browse files

update how to use code

Files changed (1) hide show
  1. README.md +7 -3
README.md CHANGED
@@ -24,6 +24,10 @@ Trained on FINRA FTD + TRACE (2009-2025).
24
  **Usage**
25
 
26
  ```python
27
- import joblib, pandas as pd
28
- model = joblib.load("xgb_next_day_fails_model.joblib")
29
- y_hat = model.predict(pd.DataFrame(...))
 
 
 
 
 
24
  **Usage**
25
 
26
  ```python
27
+ import joblib, lightgbm as lgb, pandas as pd
28
+ xgb = joblib.load("xgb_next_day_fails_model.joblib")
29
+ lgbm = lgb.Booster(model_file="lgb_quantile90_next_day_fails.txt")
30
+
31
+ y_hat = xgb.predict(X_new)
32
+ y_q90 = lgbm.predict(X_new)
33
+ alert = y_hat > y_q90