Add final BallFilter, train/valid scripts, train-derived sum filters

- final_BallFilter: CSV history loader, TRAIN_ALLOW for 6-sum and week diff,
  fix filterOneDigitPattern ball overwrite bug, drop socket call
- final_filter_params: build sum6 and abs_sum_diff from rounds 1-800
- filter_model re-exports BallFilter; train/valid evaluate pass-through counts
- final_filterTest aligned with 1_FilterTest_25 plus optional MC survivors
- README and scripts/run_with_ncue.sh for ncue workflow

Made-with: Cursor
This commit is contained in:
2026-04-08 19:29:10 +09:00
parent 013206ef67
commit 52e8495148
8 changed files with 4639 additions and 725 deletions

View File

@@ -1,17 +1,9 @@
#!/usr/bin/env bash
# miniconda 환경 ncue에서 Python으로 인자 실행: ./scripts/run_with_ncue.sh final_filterTest.py
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
for base in "${MINICONDA_HOME:-}" "$HOME/miniconda3" "$HOME/miniforge3" "$HOME/anaconda3" "$HOME/mambaforge"; do
[ -n "$base" ] || continue
c="$base/bin/conda"
if [ -x "$c" ]; then
exec "$c" run -n ncue -- python "$@"
fi
done
if [ -n "${CONDA_EXE:-}" ] && [ -x "$CONDA_EXE" ]; then
exec "$CONDA_EXE" run -n ncue -- python "$@"
fi
echo "conda ncue 환경을 찾지 못했습니다. 터미널에서: conda activate ncue && python \"\$@\"" >&2
exit 1
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
export PATH="${HOME}/miniconda3/bin:${HOME}/anaconda3/bin:/opt/anaconda3/bin:${PATH}"
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate ncue
cd "${REPO_ROOT}"
exec python "$@"