Sg/backend improvements - #32
Open
saurabhinfocusp wants to merge 7 commits into
Open
saurabhinfocusp wants to merge 7 commits into
saurabhinfocusp wants to merge 7 commits into
Conversation
CI's yapf check failed because the new P0 files did not match the project's .style.yapf (google style, 80 cols). Reformatted with `yapf -ir --style .style.yapf` and `isort --settings-path .isort.cfg`; no logic changes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
CI's yapf check was failing because add_argument calls exceeded the 80-col limit. Reformatted with `yapf -ir --style .style.yapf`; no logic changes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Explainability: scalr/explain.py implements Grad x Input saliency attribution, wired into AnnotationModel.explain()/explain_class() and a new `scalr explain` CLI subcommand, to report which genes supported or contradicted a prediction (per cell or per class). Streaming predict: AnnotationModel.predict() gains streaming/chunk_size params (implied by passing a file path); gene alignment and scoring now happen chunk-by-chunk instead of materializing one aligned matrix for the whole dataset, per the low-resource design goal. Forwarded through scalr.annotate() and the `scalr annotate` CLI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add Python-API and CLI usage examples for model.explain()/explain_class() and streaming/chunked model.predict(), added in a6d45c0. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This branch has not been deployed
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
Test plan