Expand description
Orchestrates one full ensemble-predict call: builds the n_estimators member configs,
runs each member’s preprocessing + a single TabFMModel::predict forward pass (reusing the
core model unchanged), then aggregates — optionally applying calibration/NNLS ensemble
weighting fit via oof.rs’s out-of-fold procedure.
Structs§
- Classification
Output - Ensemble
Params - Parameters for one
ensemble-predictcall — the sklearn-wrapper-equivalent counterpart toTabFMClassifier(...)/TabFMRegressor(...)’s constructor kwargs. Fields are private; build one by chaining.with_*()offEnsembleParams::default(defaults match the wrapper’s own constructor defaults). - Regression
Output
Functions§
- run_
classification - run_
members_ classification - Runs every ensemble member’s forward pass for classification, given a train/query row split
(query rows may be real held-out test rows, or an OOF fold’s validation rows). Members are
grouped into
batch_size-sized chunks (default:DEFAULT_BATCH_CHUNK_SIZE) and each chunk runs as a singleTabFMModel::predict_batchcall — sharing the fixed cost of the model’s deepest stage (24-block ICL) across the whole chunk instead of paying it once per member. Chunks run in parallel viarayon, combining with Round 1’s parallelism. Returns[member][query_row][class]logits, already un-shifted back to original class order. - run_
members_ regression - Same idea for regression: returns
[member][query_row]scaled (not yet inverse-transformed) predictions. - run_
regression