Add a micrograd on PowerShell sample#54
Open
eosfor wants to merge 3 commits into
Open
Conversation
e6c782a to
51a9e4e
Compare
Restructure the micrograd notebook into a readable walkthrough with markdown sections for module setup, helper scripts, scalar computation graphs, backpropagation order, neuron and MLP construction, loss calculation, one training step, the training loop, and final graph rendering. Keep both supported module-loading flows in the notebook: local manifests from the repository artifacts for development testing, and normal installed modules for a fresh kernel. The setup cells guard against switching PSGraph.dll sources after the assembly has already loaded into the PowerShell runspace. Move the reusable micrograd pieces into helper scripts: Value operator behavior, expression/backpropagation graph construction, Neuron/Layer/MLP definitions, Zip, and Sum-Value. Clear saved notebook outputs so the example stays lightweight and rerenders from current code.
51a9e4e to
3f86291
Compare
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
PSQuickGraphandPSGraphViewmodules.graphHelper.ps1so the sample fails early on unsupported module versions.Dependency
Depends on #53.
Validation
jq empty samples/Notebooks/powershell/micrograd/micrograd-ps.versoPSParserparse check forsamples/Notebooks/powershell/micrograd/graphHelper.ps1Notebook was also smoke-checked locally by the author before this PR.