Farm-Schlange: flopref-Probe fuer innovation (Bau -j 2, Lagen je Tafel, Einbauen, Bedarf, Exakt-Probe), nachrangig

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 15:42:14 +01:00
co-authored by Claude Opus 5.5
parent 0ad51f0bc4
commit 4d995da20c
+25
View File
@@ -0,0 +1,25 @@
# innovation flopref (Kostenschaetzung "Flop gegen exakt"), Farm-Schlange 04.12.: Bau (-j 2), Lagen je Tafel, Einbauen, Bedarf, Exakt-Probe.
$ErrorActionPreference = 'Continue' # PS 5.1: stderr von cargo waere sonst ein Abbruch; Fehler zaehlen ueber LASTEXITCODE
$B = 'D:\Projects\pf-flopref'; $Q = "$B\flopref-farm"; $A = "$B\aus"; New-Item -ItemType Directory -Force $A | Out-Null
$rake = 'C:\pokerfreak-daten\rake-tafel\blueprint-10000003440.plcp'; $alt = 'D:\pokerfreak-fremd\sharingan\weights\B-local-2e10.plcp'; $bk = 'D:\pokerfreak-fremd\sharingan\data\buckets-200'
function Schritt($name, [scriptblock]$tun) { "=== $(Get-Date -Format HH:mm:ss) $name"; & $tun; if ($LASTEXITCODE -ne 0) { throw "$name fehlgeschlagen (Rueckgabe $LASTEXITCODE)" } }
$env:RUSTFLAGS = '--cap-lints warn'
Set-Location $Q; Schritt 'Bau sharingan-lage' { cargo build --release -j 2 -p sharingan-lage 2>&1 | Select-Object -Last 3 }
Set-Location "$Q\flopref\aws\quelle"; Schritt 'Bau referenz-lauf' { cargo build --release -j 2 2>&1 | Select-Object -Last 3 }
$lage = "$Q\target\release\sharingan-lage.exe"; $ref = "$Q\flopref\aws\quelle\target\release\referenz-lauf.exe"
$env:RAYON_NUM_THREADS = '1'
Set-Location $A
Schritt 'Lagen rake' { & $lage --tafel $rake --buckets $bk --lagen "$Q\daten\lagen.jsonl" --aus "$A\lage-rake.jsonl" }
Schritt 'Lagen alt' { & $lage --tafel $alt --buckets $bk --lagen "$Q\daten\lagen.jsonl" --aus "$A\lage-alt.jsonl" }
$exp = "zeitbild=$Q\daten\export.jsonl,stichprobe=$Q\daten\stichprobe.jsonl"
Schritt 'Einbauen Tafeln' { python -X utf8 "$Q\flopref\py\einbauen.py" --lagen "$Q\daten\lagen.jsonl" --export $exp --tafel "alt=$A\lage-alt.jsonl,rake=$A\lage-rake.jsonl" --aus "$A\export-{tafel}-{quelle}.jsonl" }
Schritt 'Einbauen Motor' { python -X utf8 "$Q\flopref\py\einbauen.py" --lagen "$Q\daten\lagen.jsonl" --export $exp --modus motor --aus "$A\export-motor-{quelle}.jsonl" }
foreach ($e in 'alt-stichprobe', 'alt-zeitbild', 'motor-stichprobe', 'motor-zeitbild') {
Schritt "Bedarf $e" { python -X utf8 "$Q\flopref\py\bedarf_alle.py" $ref "$A\export-$e.jsonl" "$A\bedarf-$e.jsonl" }
}
$env:RAYON_NUM_THREADS = '4'
foreach ($t in 'alt', 'motor') {
$ex = "$A\export-$t-stichprobe.jsonl"
Schritt "Probe exakt $t" { python -X utf8 "$Q\flopref\py\probe_exakt.py" $ref 0.5 4 "$A\probe-$t.jsonl" "${ex}:id=194" "${ex}:id=272" "${ex}:id=181" "${ex}:id=546" }
}
"=== $(Get-Date -Format HH:mm:ss) FERTIG"