You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracks rank 27 in benchmarks/OPTIMIZATION_ROADMAP.md: BaggingClassifier.decision_function. Complete the roadmap optimization hypothesis with sklearn-parity-gated benchmark evidence, then update roadmap evidence/disposition before closing.
Closing as a no-op. BaggingClassifier.decision_function does not exist in flow-scikit, so there is nothing to optimize.
What I checked
lib/scikit/ensemble.flow defines exactly four bagging_classifier_* symbols:
310: export struct BaggingClassifier
319: export function bagging_classifier_fit
371: export function bagging_classifier_predict
409: export function bagging_classifier_free
A repo-wide search for decision_function returns no Bagging definition, and no caller anywhere. The only files that reference Bagging at all are lib/scikit/ensemble.flow, tests/test_estimators.flow, tests/test_new_features.flow and examples/ensemble_comparison.flow. The Python bindings under python/ do not expose one either.
Why the issue exists anyway
Rank 27 sits in the 21-100 band of benchmarks/OPTIMIZATION_ROADMAP.md, where all 80 rows are tied at score 46.5 with a blank measured-speedup column and one templated hypothesis string ("remove Python control/validation and specialize the complete operation"). Those rows are generated from sklearn's API surface rather than from a measurement of flow-scikit.
This row is doubly generated. In sklearn, BaggingClassifier.decision_function is an available_if property that only exists when the base estimator has a decision_function. flow-scikit's BaggingClassifier is hardcoded to DecisionTreeClassifier (bagging_classifier_fit calls decision_tree_classifier_fit directly), and decision trees have no decision_function in sklearn either. So even a faithful port would not have this method.
There is no baseline to measure and no code to make faster. Nothing to implement here either, unless BaggingClassifier first grows support for a configurable base estimator, which would be a separate feature issue.
Related work from the same campaign, all in lib/scikit/ensemble.flow: #387 (BaggingRegressor.predict, 577x), #388 (AdaBoostRegressor.predict), #389 (BaggingClassifier.fit), #390 (BaggingRegressor.fit). #235 was closed for the same reason as this one.
Activity
godofecht commentedon Aug 18, 2026
Closing as a no-op.
BaggingClassifier.decision_functiondoes not exist in flow-scikit, so there is nothing to optimize.What I checked
lib/scikit/ensemble.flowdefines exactly fourbagging_classifier_*symbols:A repo-wide search for
decision_functionreturns no Bagging definition, and no caller anywhere. The only files that reference Bagging at all arelib/scikit/ensemble.flow,tests/test_estimators.flow,tests/test_new_features.flowandexamples/ensemble_comparison.flow. The Python bindings underpython/do not expose one either.Why the issue exists anyway
Rank 27 sits in the 21-100 band of
benchmarks/OPTIMIZATION_ROADMAP.md, where all 80 rows are tied at score 46.5 with a blank measured-speedup column and one templated hypothesis string ("remove Python control/validation and specialize the complete operation"). Those rows are generated from sklearn's API surface rather than from a measurement of flow-scikit.This row is doubly generated. In sklearn,
BaggingClassifier.decision_functionis anavailable_ifproperty that only exists when the base estimator has adecision_function. flow-scikit'sBaggingClassifieris hardcoded toDecisionTreeClassifier(bagging_classifier_fitcallsdecision_tree_classifier_fitdirectly), and decision trees have nodecision_functionin sklearn either. So even a faithful port would not have this method.There is no baseline to measure and no code to make faster. Nothing to implement here either, unless BaggingClassifier first grows support for a configurable base estimator, which would be a separate feature issue.
Related work from the same campaign, all in
lib/scikit/ensemble.flow: #387 (BaggingRegressor.predict, 577x), #388 (AdaBoostRegressor.predict), #389 (BaggingClassifier.fit), #390 (BaggingRegressor.fit). #235 was closed for the same reason as this one.