Add PyTorch recurrent forecaster

This commit is contained in:
Codex
2026-06-20 21:28:05 +03:00
parent bac55f22b7
commit 92538850ad
7 changed files with 781 additions and 13 deletions
+6 -3
View File
@@ -3,7 +3,10 @@ param(
[string]$TaskName = "TradeBot LSTM Retrainer",
[int]$EveryHours = 6,
[string]$Symbols = "BTCUSDT,ETHUSDT,SOLUSDT,XRPUSDT,LTCUSDT",
[int]$Limit = 1000
[int]$Limit = 1000,
[ValidateSet("torch", "reservoir")]
[string]$Trainer = "torch",
[int]$FirstRunMinutes = 0
)
$ErrorActionPreference = "Stop"
@@ -14,7 +17,7 @@ if (-not (Test-Path $Runner)) {
throw "Runner not found: $Runner"
}
$actionArgs = "-NoProfile -ExecutionPolicy Bypass -File `"$Runner`""
$actionArgs = "-NoProfile -ExecutionPolicy Bypass -File `"$Runner`" -Trainer $Trainer"
if ($Symbols) {
$actionArgs += " -Symbols `"$Symbols`""
}
@@ -24,7 +27,7 @@ if ($Limit -gt 0) {
$action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument $actionArgs -WorkingDirectory $RepoRoot
$trigger = New-ScheduledTaskTrigger `
-Once `
-At (Get-Date).AddMinutes(5) `
-At (Get-Date).AddMinutes($(if ($FirstRunMinutes -gt 0) { $FirstRunMinutes } else { $EveryHours * 60 })) `
-RepetitionInterval (New-TimeSpan -Hours $EveryHours) `
-RepetitionDuration (New-TimeSpan -Days 3650)
$principal = New-ScheduledTaskPrincipal `