Skip to main content

napparent_tabular/
lib.rs

1//! Tabular effect features on Apache Arrow batches (Barn Effect algorithm).
2//!
3//! Discretize columns, accumulate pairwise co-occurrence statistics, and produce per-row
4//! `{column}_effect` attributions. See [`transform_record_batches`](crate::pipeline::transform_record_batches)
5//! and [`transform_record_batches_chunked`](crate::pipeline::transform_record_batches_chunked).
6//!
7//! - API docs: <https://docs.rs/napparent-tabular>
8//! - Theory: <https://github.com/NiklausParcell/napparent/tree/main/paper>
9
10mod activation;
11mod aggregator;
12mod arrow_io;
13mod cancel;
14mod ndarrow_bridge;
15mod pipeline;
16mod preprocess;
17mod progress;
18mod sigfig;
19mod table;
20
21pub use activation::{
22    ActivationConfig, EffectActivation, EffectContext, KgPairActivation, PairStats,
23    TransformConfig, TransformLimits,
24};
25pub use aggregator::PairAggregator;
26pub use arrow_io::{
27    batch_from_map, concat_same_schema, split_batch_views, split_batch_xy, OutcomesRef,
28};
29pub use cancel::{CancelToken, CtrlcGuard, INTERRUPT_MSG};
30pub use pipeline::{transform_record_batches, transform_record_batches_chunked};
31pub use preprocess::{BinDepth, BinType, ColumnPreprocess, PreprocessStream, ValueKey};
32pub use sigfig::round_to_significant_figures;
33pub use table::{
34    BatchChunk, BatchColumn, ChunkTable, ColGraph, ColumnVec, OutcomeSource, TargetColumn,
35};