Remove legacy LSTM retraining
This commit is contained in:
@@ -217,9 +217,6 @@ def _safe_config(settings: Settings) -> dict[str, Any]:
|
||||
"time_series_min_edge_percent": settings.time_series_min_edge_percent,
|
||||
"time_series_max_adjustment": settings.time_series_max_adjustment,
|
||||
"time_series_lstm_enabled": settings.time_series_lstm_enabled,
|
||||
"time_series_lstm_lookback": settings.time_series_lstm_lookback,
|
||||
"time_series_lstm_units": settings.time_series_lstm_units,
|
||||
"time_series_lstm_ridge": settings.time_series_lstm_ridge,
|
||||
"time_series_lstm_model_path": str(settings.time_series_lstm_model_path),
|
||||
"time_series_model_artifact": _time_series_model_artifact(settings),
|
||||
"stop_loss_percent": settings.stop_loss_percent,
|
||||
@@ -266,16 +263,19 @@ def _time_series_model_artifact(settings: Settings) -> dict[str, Any]:
|
||||
}
|
||||
)
|
||||
artifact_type = str(data.get("type", "")).strip()
|
||||
if artifact_type == "pytorch_recurrent_forecaster":
|
||||
label = "PyTorch LSTM/GRU"
|
||||
elif artifact_type == "lstm_reservoir_ridge_params":
|
||||
label = "легкий LSTM fallback"
|
||||
else:
|
||||
label = artifact_type or "настройки прогноза"
|
||||
if artifact_type != "pytorch_recurrent_forecaster":
|
||||
return {
|
||||
"available": False,
|
||||
"type": artifact_type or "unknown",
|
||||
"label": "устаревший файл модели не используется",
|
||||
"created_at": data.get("created_at", ""),
|
||||
"symbol_count": len(rows),
|
||||
"models": models,
|
||||
}
|
||||
return {
|
||||
"available": True,
|
||||
"type": artifact_type or "unknown",
|
||||
"label": label,
|
||||
"type": artifact_type,
|
||||
"label": "PyTorch LSTM/GRU",
|
||||
"created_at": data.get("created_at", ""),
|
||||
"symbol_count": len(rows),
|
||||
"models": models,
|
||||
@@ -289,7 +289,7 @@ def _forecast_model_label(model: str) -> str:
|
||||
if normalized == "torch_gru":
|
||||
return "PyTorch GRU"
|
||||
if normalized == "lstm":
|
||||
return "легкий LSTM"
|
||||
return "устаревший LSTM"
|
||||
if normalized == "gru":
|
||||
return "GRU"
|
||||
return model
|
||||
@@ -742,7 +742,7 @@ HTML = r"""
|
||||
const names = {
|
||||
torch_lstm: 'PyTorch LSTM',
|
||||
torch_gru: 'PyTorch GRU',
|
||||
lstm: 'Легкий LSTM',
|
||||
lstm: 'Устаревший LSTM',
|
||||
naive: 'Baseline',
|
||||
drift: 'Drift',
|
||||
ewma: 'EWMA',
|
||||
@@ -757,7 +757,7 @@ HTML = r"""
|
||||
return String(reason || '')
|
||||
.replaceAll('torch_lstm', 'PyTorch LSTM')
|
||||
.replaceAll('torch_gru', 'PyTorch GRU')
|
||||
.replaceAll('модель lstm', 'модель легкий LSTM');
|
||||
.replaceAll('модель lstm', 'модель устаревший LSTM');
|
||||
}
|
||||
|
||||
function modelArtifactSummary(config) {
|
||||
|
||||
Reference in New Issue
Block a user