Repository navigation
Conversation
Share aggregate reductions and history frames for feature generation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Change mapRequested requirement: accelerate aggregate feature generation without changing raw categories, window selection or floating accumulation order. Baseline multi-window probe decodes988rows from512input rows and scans each reduction separately. The smallest sufficient native change shares compatible aggregate-only frames and column reductions; raw Arrow output is in platform PR89. Stop when exact baseline/head output hashes and thread1/4 parity hold, native/platform checks pass, and paired loader measurements show the actual gain. This is the upstream publication of the reviewed change from alan-kumo#1.
|
Summary
Feature generation recomputed numeric moments and categorical hashes per reduction, and traversed/decoded overlapping history windows. Fuse ungrouped reductions per frame/anchor/column, reuse compatible broader aggregate-only frames, and parallelize independent anchors in the existing configured thread pool. Preserve each anchor's row order and floating accumulation order.
Platform dependency/benchmark PR: https://github.com/kumo-ai/rdl-platform/pull/91. Requested in https://github.com/kumo-ai/rdl-platform/issues/88. Original-value raw Arrow output is separate: https://github.com/kumo-ai/rdl-platform/pull/89.
Upstream publication of fork PR #1, targeting
rdl-base. The diff is identical to the reviewed fork PR. Benchmarks below were run against feature commit926c679a577f3ad54c9c829b7e77820d2697f106; this PR's head is the fork merge commit28ea7bc18e38e010492645b7dc4d3ff46234dbbe.Change map
Maintained file map.
Testing Done
Same platform loader and inspectable format, five alternating base/head pairs at each matched thread count:
All 20 hashes match exactly for nonconstant numerical values, original categorical strings, validity and sample/entity/time identity. Synthetic CPU feature loader: 128 anchors, batch 64, 256 rows/anchor, 102 reductions across full/30-day/90-day windows. Queries/adaptation/assembly included; ingestion/fitting/parity conversion excluded. This is not a training or GPU speedup claim.
Reproduction, every observation and native profiles. Decoded rows 48,000→32,640; traversal accounting 98,304→32,768.
a3635cddaa1ef569693cda205b045cfeef33fd4435c8de6b062d3d780b810987.cd packages/diskgraph; CARGO_TARGET_DIR=<cache> RUSTFLAGS='-C target-feature=+aes,+sse2' cargo test --release -p diskgraph-pybind --lib temporal_query.--require-imports, including both-engine conformance. New reference/thread/decode-budget tests pass; baseline fails 988 > 512 physical rows. Raw-column and request companion checks also pass (10 and 92 tests).Grouped reductions and mixed sequence frames retain their prior paths. Window sharing requires matching root/path/clock/distinct and covering projection/bounds. No approved answer, tolerance, sampling behavior, public API or dependency changes.