-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_experiments.jl
79 lines (68 loc) · 1.56 KB
/
run_experiments.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
include("setup_env.jl");
# User inputs:
all_data_sets = [
"linearly_separable",
"moons",
"circles",
"mnist",
"fmnist",
"gmsc",
"german_credit",
"california_housing",
]
if "run-all" in ARGS
datanames = all_data_sets
elseif any(contains.(ARGS, "data="))
datanames =
[ARGS[findall(contains.(ARGS, "data="))][1] |> x -> replace(x, "data=" => "")]
datanames = replace.(split(datanames[1], ","), " " => "")
else
@warn "No dataset specified, defaulting to all."
datanames = all_data_sets
end
# Linearly Separable
if "linearly_separable" in datanames
@info "Running linearly separable experiment."
include("linearly_separable.jl")
end
# Moons
if "moons" in datanames
@info "Running moons experiment."
include("moons.jl")
end
# Circles
if "circles" in datanames
@info "Running circles experiment."
include("circles.jl")
end
# GMSC
if "gmsc" in datanames
@info "Running GMSC experiment."
include("gmsc.jl")
end
# German Credit
if "german_credit" in datanames
@info "Running German Credit experiment."
include("german_credit.jl")
end
# California Housing
if "california_housing" in datanames
@info "Running California Housing experiment."
include("california_housing.jl")
end
# MNIST
if "mnist" in datanames
@info "Running MNIST experiment."
include("mnist.jl")
end
if "fmnist" in datanames
@info "Running Fashion-MNIST experiment."
include("fmnist.jl")
end
if USE_MPI
MPI.Finalize()
end
# if UPLOAD
# @info "Uploading results."
# generate_artifacts()
# end