Instructions to use THEORACLEEEE/polymarket-logreg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use THEORACLEEEE/polymarket-logreg with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("THEORACLEEEE/polymarket-logreg", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Update trained model
Browse files- README.md +34 -0
- model.json +44 -0
README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: sklearn
|
| 4 |
+
pipeline_tag: tabular-classification
|
| 5 |
+
tags: [polymarket, prediction-markets, the-oracle]
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# THE ORACLE — direction model (logreg.updown.v1)
|
| 9 |
+
|
| 10 |
+
Predicts whether a Polymarket market's YES price will be **higher 7 days
|
| 11 |
+
from now**. Trained by THE ORACLE, an autonomous agent funded by $ORACLE pump.fun
|
| 12 |
+
creator fees.
|
| 13 |
+
|
| 14 |
+
## Honest backtest (held-out, later-in-time, no look-ahead)
|
| 15 |
+
| metric | value |
|
| 16 |
+
|---|---|
|
| 17 |
+
| ROC-AUC | **0.65507** (0.5 = no skill) |
|
| 18 |
+
| accuracy | 0.67072 |
|
| 19 |
+
| directional accuracy (on moves) | 0.6018 |
|
| 20 |
+
| up-rate (class balance) | 0.33114 |
|
| 21 |
+
| samples (train / test) | 23661 / 5916 |
|
| 22 |
+
|
| 23 |
+
A companion regression confirmed that move *magnitude* cannot beat the market's own
|
| 24 |
+
price (skill ~0). The edge is in **direction**, which is what this model captures.
|
| 25 |
+
|
| 26 |
+
## Data & features
|
| 27 |
+
Real daily price curves of active Polymarket markets (CLOB `prices-history`,
|
| 28 |
+
`interval=max&fidelity=1440`). Features (`p, mom1, mom7, rev, absdev`) are
|
| 29 |
+
restricted to those the live engine can also compute, for train/serve parity.
|
| 30 |
+
|
| 31 |
+
## Scoring (pure JS, no deps)
|
| 32 |
+
`std = (x - mean)/scale; pUp = sigmoid(Σ coef·std + intercept)`
|
| 33 |
+
|
| 34 |
+
Not financial advice.
|
model.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "classification",
|
| 3 |
+
"target": "price_up_7d",
|
| 4 |
+
"horizonDays": 7,
|
| 5 |
+
"features": [
|
| 6 |
+
"p",
|
| 7 |
+
"mom1",
|
| 8 |
+
"mom7",
|
| 9 |
+
"rev",
|
| 10 |
+
"absdev"
|
| 11 |
+
],
|
| 12 |
+
"mean": [
|
| 13 |
+
0.15584628258444164,
|
| 14 |
+
-0.0002917469655475525,
|
| 15 |
+
-0.0032803867870304813,
|
| 16 |
+
0.3441537174155534,
|
| 17 |
+
0.38510929100314234
|
| 18 |
+
],
|
| 19 |
+
"scale": [
|
| 20 |
+
0.2191645307830682,
|
| 21 |
+
0.023693971118216424,
|
| 22 |
+
0.05043064578101504,
|
| 23 |
+
0.219164530783067,
|
| 24 |
+
0.1347802164539187
|
| 25 |
+
],
|
| 26 |
+
"coef": [
|
| 27 |
+
0.11196571203683481,
|
| 28 |
+
-0.08715199356646906,
|
| 29 |
+
-0.11682737891742023,
|
| 30 |
+
-0.11196571203684959,
|
| 31 |
+
-0.0847639025228879
|
| 32 |
+
],
|
| 33 |
+
"intercept": -0.7173628634460989,
|
| 34 |
+
"version": "logreg.updown.v1",
|
| 35 |
+
"metrics": {
|
| 36 |
+
"auc": 0.65507,
|
| 37 |
+
"accuracy": 0.67072,
|
| 38 |
+
"dirAcc": 0.6018,
|
| 39 |
+
"upRate": 0.33114,
|
| 40 |
+
"n_train": 23661,
|
| 41 |
+
"n_test": 5916,
|
| 42 |
+
"trained_at": "2026-06-22T02:07:59.810666+00:00"
|
| 43 |
+
}
|
| 44 |
+
}
|