suppa09 commited on
Commit
6ec4633
·
verified ·
1 Parent(s): 177f47d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -12
README.md CHANGED
@@ -1,12 +1,65 @@
1
- ---
2
- title: Polybloom
3
- emoji: ⚡
4
- colorFrom: gray
5
- colorTo: yellow
6
- sdk: docker
7
- pinned: false
8
- license: mit
9
- short_description: loss
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PolyBloom ML Ensemble v16 — HuggingFace Files
2
+
3
+ Upload **all three files** to your HF Space (`suppa09/polybloom`), replacing the existing ones:
4
+
5
+ - `app.py`
6
+ - `requirements.txt`
7
+ - `Dockerfile`
8
+
9
+ ## What changed vs v14/v15
10
+
11
+ Added 3 trained classifier endpoints (15 total models):
12
+
13
+ | Model | Library | Purpose |
14
+ |------------|--------------|----------------------------------------------|
15
+ | LightGBM | `lightgbm` | Gradient boosting on numeric features |
16
+ | **XGBoost** | `xgboost` | Best-in-class crypto direction classifier |
17
+ | **CatBoost** | `catboost` | Handles categorical features natively |
18
+
19
+ All three are **trained at container startup** on a synthetic labelled dataset
20
+ (4,000 samples from a stochastic price simulator) so they're available
21
+ immediately. They take ~10–20s to train on first request; subsequent calls
22
+ hit the cached model.
23
+
24
+ ### Categorical features (CatBoost-only native handling)
25
+
26
+ CatBoost ingests these as raw strings — no one-hot encoding required:
27
+
28
+ - `macd` (BULL/BEAR/FLAT)
29
+ - `ema_align` (BULL/BEAR/MIXED)
30
+ - `market_regime` (TREND_UP/TREND_DOWN/RANGE/CHOP)
31
+ - `vol_regime` (LOW/NORMAL/HIGH)
32
+ - `session` (ASIA/EU/US/OFF)
33
+
34
+ XGBoost and LightGBM one-hot encode the same vocab internally.
35
+
36
+ ### Optional: ship pre-trained weights
37
+
38
+ If you want to override the bootstrap models with your own trained ones, mount:
39
+
40
+ - `/tmp/xgb_model.json` → loaded by `XGBClassifier.load_model()`
41
+ - `/tmp/cat_model.cbm` → loaded by `CatBoostClassifier.load_model()`
42
+ - `/tmp/lgbm_model.txt` → loaded by `lgb.Booster(model_file=...)`
43
+
44
+ Or override paths via env vars `XGB_MODEL_PATH`, `CAT_MODEL_PATH`, `LGBM_MODEL_PATH`.
45
+
46
+ ### Health endpoint
47
+
48
+ `GET /` now returns:
49
+
50
+ ```json
51
+ {
52
+ "ok": true,
53
+ "version": "16.0.0",
54
+ "chronos": true,
55
+ "moirai": true,
56
+ "moment": true,
57
+ "lgbm": true,
58
+ "xgboost": true,
59
+ "catboost": true,
60
+ "models": [...15 names...]
61
+ }
62
+ ```
63
+
64
+ The Lovable frontend reads these flags and lights the green availability dot
65
+ per model in the OMEGA Council panel.