Delete test_seeding.py
Browse files- test_seeding.py +0 -17
test_seeding.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
import sys
|
| 2 |
-
from pathlib import Path
|
| 3 |
-
|
| 4 |
-
# Add backend to path
|
| 5 |
-
backend_path = Path(__file__).parent / 'backend'
|
| 6 |
-
sys.path.insert(0, str(backend_path))
|
| 7 |
-
|
| 8 |
-
from nifty_backend.runtime import seed_live_accuracy_from_backtest
|
| 9 |
-
|
| 10 |
-
print("Seeding live accuracy...")
|
| 11 |
-
ledger = seed_live_accuracy_from_backtest()
|
| 12 |
-
for model in ('t5', 'tomorrow', 'tplus1'):
|
| 13 |
-
entries = ledger[model]['entries']
|
| 14 |
-
total = len(entries)
|
| 15 |
-
correct = sum(1 for e in entries if e.get('correct'))
|
| 16 |
-
accuracy = correct / total if total > 0 else 0
|
| 17 |
-
print(f"{model}: entries={total}, backtest_count={ledger[model]['backtest_count']}, correct={correct}, accuracy={accuracy:.3f}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|