Commit e09b987
Update default configuration values for improved training
This commit updates several default configuration values to provide
better out-of-box training behavior and align with best practices:
**DataLoaderConfig Changes:**
- batch_size: 1 → 4
- More efficient training with larger batch sizes
- Better gradient estimates and faster convergence
**TrainerConfig Changes:**
- max_epochs: 10 → 100
- Allows more training time for better convergence
- seed: 0 → None
- No default seeding, allowing natural randomization
**DataConfig Changes:**
- use_augmentations_train: False → True
- Enables data augmentation by default for better generalization
- Removed conditional logic in data_mapper that auto-set use_augmentations_train
- Simplifies behavior to always default to True
**ModelConfig Changes:**
- ClassMapConfig sigma: 15.0 → 5.0
- More precise class map generation for multi-class models
- Consistent with confmaps sigma defaults
**Documentation Updates:**
- Updated all docstrings to reflect new default values
- Ensures documentation accuracy across all config classes
These changes provide better default training configurations while
maintaining full backward compatibility through explicit config overrides.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent b3432ef commit e09b987
File tree
3 files changed
+10
-13
lines changed- sleap_nn/config
3 files changed
+10
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | 466 | | |
470 | 467 | | |
471 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | | - | |
| 840 | + | |
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
| 246 | + | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
0 commit comments