feat(active-learning): add FLORA active-learning operator - #1364
Open
EmileAydar wants to merge 3 commits into
Open
EmileAydar wants to merge 3 commits into
EmileAydar wants to merge 3 commits into
Conversation
added 2 commits
August 19, 2026 11:58
Add the ado-active-learning plugin implementing Predictive Kernel Herding (PKH), a regression-based active-learning operator for finite Discovery Spaces, and register it as a uv workspace member. Signed-off-by: Emile Aydar <emile.aydar@ibm.com>
Add FLORA, a pointwise random-forest disagreement acquisition operator, alongside PKH in the ado-active-learning plugin. FLORA selects the entity expected to most reduce a fitted model's predictive risk, complementing PKH's representativeness-focused acquisition. Signed-off-by: Emile Aydar <emile.aydar@ibm.com>
…/flora-active-learning
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR builds on PR #1361 (please merge that first). This PR adds FLORA,
the second operator in the
ado-active-learningplugin: a pointwiserandom-forest disagreement acquisition operator for finite Discovery Spaces.
Where PKH (this plugin's first operator) chooses entities to make the
labelled sample representative of the full pool, FLORA chooses entities to
make the fitted model as predictively accurate as possible. They're
deliberately complementary: two objectives for the same "what should I
measure next" problem, sharing the same plumbing.
Why add this to ADO
See PR #1361 for the general motivation.
FLORA specifically covers the case PKH doesn't: when the goal isn't a
representative sample but the lowest-error predictive model over the entity
pool. Shipping both together, with the same parameter shape and installation
path, lets ADO users pick the acquisition objective that matches their actual
goal rather than only having one option.
How it works
FLORA reuses the same
_PredictiveSampleSelector/_SequentialSelectionStatemachinery PKH uses (from
active_learning/regression/_shared.py), swappingin a different acquisition score.
After one deterministic pilot (by default: 5 randomly sampled entities), if no labels are already available, FLORA repeats:
RandomForestRegressoron the labels collected so far, refitting according to the schedule below.predictions - a proxy for how uncertain the forest is there - and average
that disagreement within each leaf.
The forest is refit on a log-tempered expanding schedule, so refits become less
frequent as the labelled sample grows (vs. PKH's fixed
epochLength).Example
Non-Breaking Changes
Purely additive: a new
ado.operatorsentry point (flora) inside thealready-registered
ado-active-learningplugin. Does not modify PKH'sbehavior or any other operator.