Repository navigation
Tests and CI, and the decision on the overlap with the library's symbolic PDE module - #4
Merged
Merged
Conversation
…DE module Five tests over the generator: a factory builds a loss from real SymPy strings, the loss is differentiable with respect to the network, the data term is the mean squared error checked by hand, an inverse parameter receives a gradient, and a loss weight scales only its own term. Records the decision the issue asked for: this stays an independent package rather than a wrapper, because it installs with torch and sympy alone, its API is published on PyPI, and the duplication is named as the cost it is.
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.
Closes #3.
Tests — five, over the generator rather than the examples:
Verified locally: 5 passed in 2.1 s.
CI — Python 3.10, 3.11 and 3.12 on
ubuntu-latest, CPU torch, sympy, pytest.The decision — this stays a small independent package, not a wrapper. The overlap with
pinneapple_physics.symbolic_pdeis real and is written down, but: this installs withtorchandsympyalone while the library is a git dependency of several hundred megabytes; 0.1.0 is published on PyPI with this API; and two implementations, one small enough to read in one sitting, are easier to check against each other than one with no second opinion.The README names the cost of that choice — a fix in one will not reach the other — and says that if it ever becomes the reason to merge, the merge should be into the library, not into a wrapper that hides the dependency.