协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
training【开发与工程】Repository operating skill for Flow Forecast config-driven training, validation, checkpoints, model selection, and light smoke runs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about fitting, resuming, validating, or debugging Flow Forecast models. It covers the JSON trainer workflow, meta/autoencoder training, loss and optimizer selection, and the data-loader/model-contract details that determine whether a run can start successfully.
Start with:
python -m flood_forecast.trainer -p config.json for the main PyTorch and DA-RNN entry path.python -m flood_forecast.meta_train -p config.json for the autoencoder/meta path.PyTorchForecast, train_transformer_style, torch_single_train, compute_validation, and EarlyStopper.model_dict_function registry, scaling_function, make_criterion_functions, and weight_path / weight_path_add transfer-learning knobs.flood_forecast.da_rnn.train_da, not a standalone package CLI; read the troubleshooting caveat before using preprocess_da_rnn.make_data output directly.scripts/validate_training_config.py.references/model-configs.md and references/configuration.md.inference_params should usually be present because the trainer evaluates after fitting.wandb must be False or a mapping; a bare True is not valid because the code reads wandb.get(...).device: "auto" prefers CUDA, then MPS, then CPU. Explicit cuda or mps requests fail if the backend is missing.scaler_params are often written with feature_range as a list; the trainer normalizes that to a tuple before constructing the scaler.GeneralClassificationLoader and VariableSequenceLength follow different validation paths from forecasting loaders, so do not expect the same post-training evaluation flow.