Skip to content

Commit ff9ef2c

Browse files
committed
next bug
1 parent ec6bb16 commit ff9ef2c

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

docs/src/paper/experiments/_real_world.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ max_obs = 2500
1515
data_sets = AlgorithmicRecourseDynamics.Data.load_real_world(max_obs; data_dir=data_path)
1616
choices = [
1717
:cal_housing,
18-
:credit_default,
18+
# :credit_default,
1919
:gmsc,
2020
]
2121
data_sets = filter(p -> p[1] in choices, data_sets)
@@ -40,10 +40,10 @@ models = [
4040
:FluxEnsemble
4141
]
4242
generators = Dict(
43-
# :Greedy=>GreedyGenerator(),
44-
# :Generic=>GenericGenerator(),
43+
:Greedy=>GreedyGenerator(),
44+
:Generic=>GenericGenerator(),
4545
:REVISE=>REVISEGenerator(),
46-
# :DICE=>DiCEGenerator(),
46+
:DICE=>DiCEGenerator(),
4747
)
4848
```
4949

src/experiments/functions.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,14 @@ function choose_individuals(experiment::Experiment, recourse_systems::AbstractAr
111111
args = experiment.fixed_parameters
112112
target, μ = experiment.target, args.μ
113113

114-
candidates = map(recourse_systems) do x
115-
n_classes = size(x.data.y, 1)
114+
candidates = map(recourse_systems) do sys
115+
= probs(sys.model, sys.data.X)
116+
n_classes = size(sys.data.y, 1)
116117
if n_classes == 1
117-
cand_ = findall(vec(x.data.y) .!= target)
118+
cand_ = findall(vec() .!= target)
118119
else
119-
y = Flux.onecold(x.data.y, 1:n_classes)
120-
cand_ = findall(vec(y) .!= target)
120+
= Flux.onecold(, 1:n_classes)
121+
cand_ = findall(vec() .!= target)
121122
end
122123
return cand_
123124
end

0 commit comments

Comments
 (0)