Skip to content

Commit fb4d788

Browse files
committed
uploaded real-world
1 parent 9ed3460 commit fb4d788

File tree

7 files changed

+41
-23
lines changed

7 files changed

+41
-23
lines changed

Artifacts.toml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ lazy = true
77
url = "https://github.com/pat-alt/endogenous-macrodynamics-in-algorithmic-recourse/releases/download/camera-ready/dev-artifacts-upload-data-real_world.tar.gz"
88

99
[dev-artifacts-upload-data-synthetic]
10-
git-tree-sha1 = "2bb01d9cdfed8d41983725b07aaa52ed2b1334e6"
10+
git-tree-sha1 = "badee6b6f85fdc2c80b18a34c7640e49b550027c"
1111
lazy = true
1212

1313
[[dev-artifacts-upload-data-synthetic.download]]
14-
sha256 = "181da6139a6531eed62130508d85b659fd40dc096daf2ccf06154f7da6b654eb"
14+
sha256 = "07d20a01d2e76636b8d33644a195cb49391cc74b2400806b7e307b9a80d2785a"
1515
url = "https://github.com/pat-alt/endogenous-macrodynamics-in-algorithmic-recourse/releases/download/camera-ready/dev-artifacts-upload-data-synthetic.tar.gz"
1616

1717
[dev-artifacts-upload-output-real_world]
@@ -22,10 +22,26 @@ lazy = true
2222
sha256 = "ba0e753fe430b9605366b852c6457df5fa2d0bd3cae90f828090f4f1bec1d8b7"
2323
url = "https://github.com/pat-alt/endogenous-macrodynamics-in-algorithmic-recourse/releases/download/camera-ready/dev-artifacts-upload-output-real_world.tar.gz"
2424

25+
[dev-artifacts-upload-output-synthetic]
26+
git-tree-sha1 = "d81bc078e85ef8c7b255e39d620edbdc98795e69"
27+
lazy = true
28+
29+
[[dev-artifacts-upload-output-synthetic.download]]
30+
sha256 = "704c05de484d694aa7563c76b32f0810622aee1761f61101226e1b0934ea7a34"
31+
url = "https://github.com/pat-alt/endogenous-macrodynamics-in-algorithmic-recourse/releases/download/camera-ready/dev-artifacts-upload-output-synthetic.tar.gz"
32+
2533
[dev-artifacts-upload-www-real_world]
2634
git-tree-sha1 = "ceb45c40d527d9e4ab0888f5fc07a0519ba04702"
2735
lazy = true
2836

2937
[[dev-artifacts-upload-www-real_world.download]]
3038
sha256 = "f4d3ca2ff572affa5e443667bbcfa0461f9f300e681a5d74450584b37a224b58"
3139
url = "https://github.com/pat-alt/endogenous-macrodynamics-in-algorithmic-recourse/releases/download/camera-ready/dev-artifacts-upload-www-real_world.tar.gz"
40+
41+
[dev-artifacts-upload-www-synthetic]
42+
git-tree-sha1 = "351f47768dbc33d8a0cbcb55b46703230bd69c4e"
43+
lazy = true
44+
45+
[[dev-artifacts-upload-www-synthetic.download]]
46+
sha256 = "08300d62dd0cbcf65a17d629dc87d4242bbcc908e57af6613ed34363b27ba9fd"
47+
url = "https://github.com/pat-alt/endogenous-macrodynamics-in-algorithmic-recourse/releases/download/camera-ready/dev-artifacts-upload-www-synthetic.tar.gz"

paper/www/poc.png

-6.2 KB
Loading

paper/www/synthetic_data.png

3.92 KB
Loading

sections/data_preprocessing/_synthetic_data.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ df.target = y
4040
CSV.write(joinpath(data_path, "moons.csv"),df)
4141
```
4242

43+
44+
```{julia}
45+
generate_artifacts(data_path)
46+
```
47+
48+
4349
```{julia}
4450
#| output: true
4551
@@ -54,9 +60,3 @@ plt = plot(plts..., layout=(1,4), size=(850,200))
5460
savefig(plt, "paper/www/synthetic_data.png")
5561
display(plt)
5662
```
57-
58-
59-
```{julia}
60-
generate_artifacts(data_path)
61-
```
62-

sections/experiments/_mitigation_strategies.qmd

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ models = [
1515
:FluxModel,
1616
:FluxEnsemble,
1717
]
18+
opt = Flux.Descent(0.01)
1819
generators = Dict(
19-
:Generic=>GenericGenerator(decision_threshold=0.5),
20-
:Latent=>REVISEGenerator(),
21-
:Generic_conservative=>GenericGenerator(decision_threshold=0.9),
22-
:Gravitational=>GravitationalGenerator(),
23-
:ClapROAR=>ClapROARGenerator()
20+
:Generic=>GenericGenerator(opt = opt, decision_threshold=0.5),
21+
:Latent=>REVISEGenerator(opt = opt),
22+
:Generic_conservative=>GenericGenerator(opt = opt, decision_threshold=0.9),
23+
:Gravitational=>GravitationalGenerator(opt = opt),
24+
:ClapROAR=>ClapROARGenerator(opt = opt)
2425
)
2526
```
2627

@@ -203,10 +204,10 @@ Images.load(joinpath(www_path,"paper_synthetic_results.png"))
203204

204205
```{julia}
205206
generators = Dict(
206-
:Latent=>GenericGenerator(decision_threshold=0.5),
207-
:Latent_conservative=>GenericGenerator(decision_threshold=0.9),
208-
:Gravitational=>GravitationalGenerator(),
209-
:ClapROAR=>ClapROARGenerator()
207+
:Latent=>GenericGenerator(opt = opt, decision_threshold=0.5),
208+
:Latent_conservative=>GenericGenerator(opt = opt, decision_threshold=0.9),
209+
:Gravitational=>GravitationalGenerator(opt = opt),
210+
:ClapROAR=>ClapROARGenerator(opt = opt)
210211
)
211212
```
212213

sections/experiments/_synthetic.qmd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ models = [
2020
:FluxModel,
2121
:FluxEnsemble,
2222
]
23+
opt = Flux.Descent(0.01)
2324
generators = Dict(
2425
:Greedy=>GreedyGenerator(),
25-
:Generic=>GenericGenerator(),
26-
:REVISE=>REVISEGenerator(),
27-
:DICE=>DiCEGenerator(),
26+
:Generic=>GenericGenerator(opt = opt),
27+
:REVISE=>REVISEGenerator(opt = opt),
28+
:DICE=>DiCEGenerator(opt = opt),
2829
)
2930
```
3031

@@ -349,6 +350,6 @@ Images.load(joinpath(www_path,"paper_synthetic_results.png"))
349350
```
350351

351352
```{julia}
352-
generate_artifacts(output_path)
353-
generate_artifacts(www_path)
353+
# generate_artifacts(output_path)
354+
# generate_artifacts(www_path)
354355
```

src/setup.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ setup = quote
2626
using StatsBase
2727

2828
# Setup
29-
Random.seed!(2023) # global seed to allow for reproducibility
29+
Random.seed!(42) # global seed to allow for reproducibility
3030
theme(:wong)
3131

3232
# Utils

0 commit comments

Comments
 (0)