Commit 5fb40a5
fix: add lib accessors so examples compile (#49)
The library compiles clean; the two examples `basic_usage.rs` and
`mlp_router.rs` called methods that don't exist on the public API (8x
E0599 for stale API names).
Adds thin 1:1 accessor / convenience wrappers to the lib (preferred
approach):
- `Orchestrator::current_project()` — delegates to the context manager
- `MLP::input_size()` / `MLP::output_size()` — getters for private
fields
- `MLP::train_step(input, target, lr)` — runs `backward` + `update`,
returns the step loss
`cargo check --examples` is now clean (0 errors). `reservoir_demo.rs`
untouched.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 85f607b commit 5fb40a5
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
149 | 167 | | |
150 | 168 | | |
151 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments