Skip to content

optional ExpressionPreprocessor for COO values before rank/bin#57

Merged
pavanramkumar merged 2 commits into
mainfrom
preprocessor
May 28, 2026
Merged

optional ExpressionPreprocessor for COO values before rank/bin#57
pavanramkumar merged 2 commits into
mainfrom
preprocessor

Conversation

@pavanramkumar

Copy link
Copy Markdown
Contributor

Add ExpressionPreprocessor (normalize_total, log1p) and apply_expression_preprocessor, which no-ops on None or empty config. Wire expression_preprocessor through SLAFDataLoader, SLAFIterableDataset, PrefetchBatchProcessor, and DistributedSLAFDataLoader into window kwargs.

ScGPTWindow skips a second log1p when preprocessor.log1p is true. Export from slaf.ml; add aggregator tests.

Add ExpressionPreprocessor (normalize_total, log1p) and apply_expression_preprocessor,
which no-ops on None or empty config. Wire expression_preprocessor through SLAFDataLoader,
SLAFIterableDataset, PrefetchBatchProcessor, and DistributedSLAFDataLoader into window kwargs.

ScGPTWindow skips a second log1p when preprocessor.log1p is true. Export from slaf.ml;
add aggregator tests.

Made-with: Cursor
@pavanramkumar pavanramkumar merged commit 499f4df into main May 28, 2026
pavanramkumar added a commit to alam-shahul/slaf that referenced this pull request May 28, 2026
Pass SLAFArray to tokenizers again and apply normalize/log1p upstream via
ExpressionPreprocessor in window aggregators. Restore dataloader and worker
APIs from post-slaf-project#57; keep epoch field on prefetch batches for reporting.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant