Aller au contenu
login
arrow_backRetour aux issues
goldener-data/goldener #222

All `GoldDoers` must be able to restrict their actions to some samples

ecoDébutant enhancement good first issue help wanted ready

descriptionDescription

**Context & Problem** Sometimes, you might want to focus only on some samples or vector row when requesting a GoldDoer to make an action. We have already implemented this possibility in `GoldSelector` to allow the split to be made from clusterized data. This can be useful as well for: `GoldClusterizer`, `GoldDescriptor`and `GoldVectorizer`. It should systematic for new GoldDoer. **Proposed Solution** In methods `do_in_table` and `do_in_table`, we add 2 new arguments: ``` restrict_to: set[int] | None = None, restriction_idx_key: str = "idx_vector", ``` and then we apply them to filter out the data before the action. `select_in_table` in `GoldSelector` should be taken as an illustration of the actions to make!
codeOuvre sur GitHub