Spaces:
Runtime error
Runtime error
v1.3: startup conserva datos de derivados + fix pydantic
Browse files- startup.sh +21 -10
startup.sh
CHANGED
|
@@ -1,25 +1,36 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
echo "========================================="
|
| 3 |
-
echo " AURORA BRAIN v1.
|
| 4 |
echo "========================================="
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
rm -
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
# Paso 1: Descargar datos
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
echo "Generando features..."
|
| 16 |
python feature_engine.py --all
|
| 17 |
|
| 18 |
-
# Paso 3: Etiquetar regimenes
|
| 19 |
echo "Etiquetando regimenes..."
|
| 20 |
python regime_labeler.py --all
|
| 21 |
|
| 22 |
-
# Paso 4: Entrenar modelo
|
| 23 |
echo "Entrenando detector de regimen (multi-symbol)..."
|
| 24 |
python regime_detector.py --multi
|
| 25 |
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
echo "========================================="
|
| 3 |
+
echo " AURORA BRAIN v1.3 — Starting Pipeline"
|
| 4 |
echo "========================================="
|
| 5 |
|
| 6 |
+
# Solo limpiar features y modelos (NO los parquets de datos crudos)
|
| 7 |
+
rm -f data/features_*.parquet data/labeled_*.parquet
|
| 8 |
+
rm -f models/*.pkl models/*.json
|
| 9 |
+
echo "Features y modelos limpiados — re-entrenando"
|
| 10 |
|
| 11 |
+
# Paso 1: Descargar datos (solo si no existen las klines)
|
| 12 |
+
if [ ! -f "data/klines_BTCUSDT_4h.parquet" ]; then
|
| 13 |
+
echo "Descargando datos historicos..."
|
| 14 |
+
python download_data.py --symbols BTCUSDT ETHUSDT SOLUSDT --days 1825
|
| 15 |
+
else
|
| 16 |
+
echo "Klines ya existen — salteando descarga"
|
| 17 |
+
# Igual intentar macro y F&G (se actualizan)
|
| 18 |
+
python download_data.py --symbols BTCUSDT --days 1825 --no-derivatives 2>/dev/null || true
|
| 19 |
+
fi
|
| 20 |
|
| 21 |
+
# Mostrar archivos de datos disponibles
|
| 22 |
+
echo "Archivos de datos disponibles:"
|
| 23 |
+
ls -la data/*.parquet 2>/dev/null || echo " (ninguno)"
|
| 24 |
+
|
| 25 |
+
# Paso 2: Generar features (incluye derivados si los parquets existen)
|
| 26 |
echo "Generando features..."
|
| 27 |
python feature_engine.py --all
|
| 28 |
|
| 29 |
+
# Paso 3: Etiquetar regimenes
|
| 30 |
echo "Etiquetando regimenes..."
|
| 31 |
python regime_labeler.py --all
|
| 32 |
|
| 33 |
+
# Paso 4: Entrenar modelo multi-symbol
|
| 34 |
echo "Entrenando detector de regimen (multi-symbol)..."
|
| 35 |
python regime_detector.py --multi
|
| 36 |
|