modulearn 0.4.0__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. modulearn-0.5.0/CHANGELOG.md +75 -0
  2. modulearn-0.5.0/HSGC-URI-Extension-Isaiah-Broderson(Neural Network).pdf +9692 -14
  3. {modulearn-0.4.0 → modulearn-0.5.0}/PKG-INFO +70 -4
  4. {modulearn-0.4.0 → modulearn-0.5.0}/README.md +62 -1
  5. modulearn-0.5.0/docs/artifacts-download-guide.html +202 -0
  6. modulearn-0.5.0/docs/daily-driver-roadmap.html +295 -0
  7. modulearn-0.5.0/docs/gpu-sweep-concurrency-guide.html +163 -0
  8. modulearn-0.5.0/docs/long-run-lifecycle-guide.html +237 -0
  9. modulearn-0.5.0/docs/metric-series-guide.html +177 -0
  10. modulearn-0.5.0/docs/pytorch-example-guide.html +182 -0
  11. modulearn-0.5.0/docs/resume-checkpoint-guide.html +204 -0
  12. modulearn-0.5.0/examples/pytorch_mlp.py +158 -0
  13. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/__init__.py +3 -1
  14. modulearn-0.5.0/modulearn/_worker.py +47 -0
  15. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/cli.py +5 -0
  16. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/compiler.py +75 -35
  17. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/registry.py +37 -6
  18. modulearn-0.5.0/modulearn/runners.py +410 -0
  19. modulearn-0.5.0/modulearn/server.py +550 -0
  20. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/static/graph.js +108 -26
  21. {modulearn-0.4.0 → modulearn-0.5.0}/pyproject.toml +3 -2
  22. modulearn-0.5.0/tests/test_artifacts.py +80 -0
  23. modulearn-0.5.0/tests/test_environment.py +86 -0
  24. modulearn-0.5.0/tests/test_examples.py +34 -0
  25. modulearn-0.5.0/tests/test_live_limit.py +82 -0
  26. modulearn-0.5.0/tests/test_resume.py +90 -0
  27. modulearn-0.5.0/tests/test_runners.py +289 -0
  28. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_sweep.py +25 -7
  29. modulearn-0.4.0/CHANGELOG.md +0 -33
  30. modulearn-0.4.0/modulearn/server.py +0 -308
  31. {modulearn-0.4.0 → modulearn-0.5.0}/.github/workflows/ci.yml +0 -0
  32. {modulearn-0.4.0 → modulearn-0.5.0}/.gitignore +0 -0
  33. {modulearn-0.4.0 → modulearn-0.5.0}/LICENSE +0 -0
  34. {modulearn-0.4.0 → modulearn-0.5.0}/PUBLISHING.md +0 -0
  35. {modulearn-0.4.0 → modulearn-0.5.0}/docs/canvas-engine-guide.html +0 -0
  36. {modulearn-0.4.0 → modulearn-0.5.0}/docs/changelog-tags-guide.html +0 -0
  37. {modulearn-0.4.0 → modulearn-0.5.0}/docs/ci-badge-guide.html +0 -0
  38. {modulearn-0.4.0 → modulearn-0.5.0}/docs/hyperparameter-sweep-guide.html +0 -0
  39. {modulearn-0.4.0 → modulearn-0.5.0}/docs/implementation-guide.html +0 -0
  40. {modulearn-0.4.0 → modulearn-0.5.0}/docs/init-scaffold-guide.html +0 -0
  41. {modulearn-0.4.0 → modulearn-0.5.0}/docs/readme-install-guide.html +0 -0
  42. {modulearn-0.4.0 → modulearn-0.5.0}/docs/registry-api-guide.html +0 -0
  43. {modulearn-0.4.0 → modulearn-0.5.0}/docs/regression-guide.html +0 -0
  44. {modulearn-0.4.0 → modulearn-0.5.0}/docs/reload-guide.html +0 -0
  45. {modulearn-0.4.0 → modulearn-0.5.0}/docs/roadmap.html +0 -0
  46. {modulearn-0.4.0 → modulearn-0.5.0}/docs/run-comparison-guide.html +0 -0
  47. {modulearn-0.4.0 → modulearn-0.5.0}/docs/run-errors-guide.html +0 -0
  48. {modulearn-0.4.0 → modulearn-0.5.0}/docs/single-source-version-guide.html +0 -0
  49. {modulearn-0.4.0 → modulearn-0.5.0}/docs/stop-rerun-guide.html +0 -0
  50. {modulearn-0.4.0 → modulearn-0.5.0}/docs/type-rules-guide.html +0 -0
  51. {modulearn-0.4.0 → modulearn-0.5.0}/examples/quickstart.py +0 -0
  52. {modulearn-0.4.0 → modulearn-0.5.0}/examples/regression.py +0 -0
  53. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/__main__.py +0 -0
  54. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/demo.py +0 -0
  55. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/static/graph-engine.js +0 -0
  56. {modulearn-0.4.0 → modulearn-0.5.0}/modulearn/static/graph.html +0 -0
  57. {modulearn-0.4.0 → modulearn-0.5.0}/tests/conftest.py +0 -0
  58. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_canvas_engine_e2e.py +0 -0
  59. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_cli_init.py +0 -0
  60. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_robustness.py +0 -0
  61. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_roundtrip_e2e.py +0 -0
  62. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_run_errors.py +0 -0
  63. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_run_errors_cli.py +0 -0
  64. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_server_endpoints.py +0 -0
  65. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_smoke.py +0 -0
  66. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_stop.py +0 -0
  67. {modulearn-0.4.0 → modulearn-0.5.0}/tests/test_type_rules.py +0 -0
@@ -0,0 +1,75 @@
1
+ # Changelog
2
+
3
+ All notable changes to ModuLearn are documented here.
4
+ This project follows [Keep a Changelog](https://keepachangelog.com) and
5
+ [Semantic Versioning](https://semver.org).
6
+
7
+ ## [0.5.0] - 2026-11-23
8
+ Daily-driver track: making ModuLearn usable for real local training, PyTorch
9
+ loops and existing scripts alike.
10
+
11
+ - PyTorch: a first-class `examples/pytorch_mlp.py` (real training loop, cuda/mps/cpu,
12
+ live curve, Stop, checkpointing) and an optional `torch` extra (`pip install "modulearn[torch]"`)
13
+ - Runs produce artifacts: `on_train` files saved to the run dir are listed and
14
+ downloadable from the finished-run panel
15
+ - Long runs survive a server restart / `--reload`: training launches in a detached
16
+ worker process, with liveness tracked by pid
17
+ - Resume a stopped or crashed run from its last checkpoint (a new run continues
18
+ instead of restarting)
19
+ - GPU-safe sweeps: `create_app(sweep_concurrency=…)`, defaulting to 1 so a GPU
20
+ sweep runs sequentially instead of OOM-ing
21
+ - The live chart draws any numeric metric series `on_train` reports (e.g. `acc`),
22
+ not just train/val
23
+ - `run_command()` runs an existing training script as a run, unchanged: TensorBoard
24
+ scalars (read directly, no `tensorboard` dependency) and parsed stdout lines feed
25
+ the live chart, output is saved as an `output.log` artifact, and Stop sends SIGINT
26
+ to the script's whole process group before escalating. `cli_flags()` renders
27
+ hyperparameters as `--flag=value` arguments
28
+ - Environment nodes for reinforcement learning: `Registry.add_environment()` and
29
+ `add_model(input="env")`; `add_model(input=None)` for models that need no input
30
+ - `create_app(max_live_runs=…)` caps simultaneously live runs app-wide, for training
31
+ that holds something exclusive; a refused start returns 409 and sweeps queue
32
+ behind live runs
33
+ - `create_app(chart=…)` sets the live chart's x-axis key, plotted series and y label;
34
+ y-axis ticks now fit their range
35
+
36
+ ### Changed
37
+ - scikit-learn is no longer a core dependency. The bundled examples need it:
38
+ `pip install "modulearn[examples]"` (the `torch` and `dev` extras include it)
39
+
40
+ ### Fixed
41
+ - A finishing run could briefly report a terminal phase while still counted as
42
+ live; it is now released before its final phase is written
43
+
44
+ ### Known limitations
45
+ - `run_command`'s Stop handling has been exercised on macOS only (Linux shares
46
+ its POSIX process-group path); on Windows it uses CTRL_BREAK and `taskkill /T`
47
+ and is untested
48
+
49
+ ## [0.4.0] - 2026-07-30
50
+ - Name a run before launching; the name shows in the runs list and comparison legend
51
+ - Compare several past runs' validation curves overlaid on one chart
52
+ - Stop a running job (cooperative cancel) and re-run an edited graph
53
+ - Hyperparameter sweep: fan a wired hyperparameter over a list of values, overlaid as the runs complete
54
+
55
+ ### Fixed
56
+ - Atomic `state.json` writes so polling `/api/runs` can't catch a half-written file
57
+
58
+ ## [0.3.0] - 2026-07-27
59
+ - `modulearn init [dir]` scaffolds a runnable starter project. (app.py, README, .gitignore)
60
+ - `modulearn run --reload` restarts the server on file changes for live development.
61
+ - Sharper `modulearn run` errors: names the failing line on import errors, suggests a real app attribute
62
+ when the main one is missing, and rejects non-app objects.
63
+
64
+ ## [0.2.0] — 2026-07-23
65
+ - Surface on_train crashes on the canvas (error + full traceback)
66
+ - Loss node now shapes the training curve
67
+ - CompiledGraph.check_shape() validates loaded array shape
68
+ - Enforce hyperparameter min/max at compile
69
+ - GitHub Actions CI across Python 3.10–3.13
70
+
71
+ ## [0.1.1] — 2026-07-22
72
+ - Add `python -m modulearn` entry point
73
+
74
+ ## [0.1.0] — 2026-07-22
75
+ - Initial release: node-graph editor, Registry, compiler, and `modulearn` CLI