dandls / counterfactuals

counterfactuals: An R package for Counterfactual Explanation Methods
https://dandls.github.io/counterfactuals/
GNU Lesser General Public License v3.0
21 stars 4 forks source link

Dev random search #15

Closed andreash0 closed 2 years ago

andreash0 commented 2 years ago

I implemented RandomSearchClassif and RandomSearchRegr as special cases of MOCClassif and MOCRegr so that they also use the moc_algo function (they use the random initialization strategy and have 0 evolutionary generations). I think this highlights the fact that they are closely related to MOC and primarily used for benchmark comparisons with MOC.

@dandls What do you think about this?

dandls commented 2 years ago

Great idea! So we can directly reuse some of the arguments for Random Search (fixed_features, upper, lower, ...). I can merge this latter on into the main branch. Need to adapt the nr_changed to no_changed afterwards.