JuliaTrustworthyAI / CounterfactualExplanations.jl

A package for Counterfactual Explanations and Algorithmic Recourse in Julia.
https://www.taija.org/CounterfactualExplanations.jl/
MIT License
119 stars 7 forks source link

Use traits for composable generator #435

Open pat-alt opened 5 months ago

pat-alt commented 5 months ago

Maybe an idea could be to use traits: https://ahsmart.com/pub/holy-traits-design-patterns-and-best-practice-book/.

Instead of using a single base struct that can be functionally composed in different ways, we could use traits to define the behavior of different generators. This would still be (perhaps even more) user-friendly, but potentially more flexible and cleeaner.

Also address: