docs: refine Tutorial hierarchy and compiler guides - #156
Merged
chaoming0625 merged 1 commit intoJul 30, 2026
Merged
Conversation
Reviewer's GuideRefines tutorial hierarchy and wording around online-learning concepts, strengthens links to API references, and makes the Graph Compilation and Visualization notebooks fully executable, showing how to inspect ETraceGraph and CompilationReport programmatically while standardizing algorithm naming to Sequence diagram for compiling a model and inspecting ETraceGraph and CompilationReportsequenceDiagram
actor User
participant braintrace
participant Learner
participant CompilationReport
participant ETraceGraph
User->>braintrace: compile(model, algo, x0, batch_size)
braintrace-->>Learner: return Learner
Learner-->>ETraceGraph: graph
Learner-->>CompilationReport: report
User->>Learner: show_graph()
Learner->>ETraceGraph: render hidden_groups and relations
User->>CompilationReport: report.show(level)
CompilationReport-->>User: counts, etrace_weights, excluded_weights, diagnostics
User->>ETraceGraph: inspect hidden_groups, hidden_param_op_relations
ETraceGraph-->>User: hidden_paths, primitive, hidden_groups
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In the
learner.reportexample for the single-layer RNN,etrace_weightsshows the same weight path twice; consider either explaining that this reflects separate trainable keys (e.g., weight/bias) or adjusting the example to avoid confusion for readers expecting unique weight entries. - Several notebook outputs now embed local file-system paths in warnings (e.g.,
D:\BrainTrace\.venv\...); it may be worth re-running or lightly editing those cells to avoid publishing environment-specific paths in the documentation.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the `learner.report` example for the single-layer RNN, `etrace_weights` shows the same weight path twice; consider either explaining that this reflects separate trainable keys (e.g., weight/bias) or adjusting the example to avoid confusion for readers expecting unique weight entries.
- Several notebook outputs now embed local file-system paths in warnings (e.g., `D:\BrainTrace\.venv\...`); it may be worth re-running or lightly editing those cells to avoid publishing environment-specific paths in the documentation.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
chaoming0625
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ETraceGraphandCompilationReportinspection examples.pp-prop.Validation
graph_compilation.ipynbandvisualization.ipynbwith the project virtual environment.git diff --checkpasses.Summary by Sourcery
Refine online-learning documentation by clarifying the progression from ETP operators through neural-network layers to hidden-state management, and by enriching compiler/graph tutorials with executable inspection examples.
Documentation: