Update README.md
Browse filesupdate how to use code
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 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|