Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infogap_results/opportuneness_vs_robustness.png added
- Loading branch information
1 parent
25cc45d
commit 667a349
Showing
5 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include(Pkg.dir("Mads") * "/src/MadsInfoGap.jl") | ||
|
||
infogap_jumplin(horizons=[0.05, 0.1, 0.2, 0.5], retries=1, maxiter=1000, verbosity=0, seed=2015) | ||
min, max = infogap_jump_polinomial(model=1, horizons=[0.1, 0.2, 0.5], retries=1, maxiter=1000, verbosity=0, seed=2015) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
import Mads | ||
# import Mads | ||
import Gadfly | ||
include(Pkg.dir("Mads") * "/src/MadsInfoGap.jl") | ||
|
||
md = Mads.loadmadsfile("models/internal-polynomial.mads") | ||
# md = Mads.loadmadsfile("models/internal-polynomial.mads") | ||
|
||
if !isdir("infogap_results") | ||
mkdir("infogap_results") | ||
end | ||
|
||
info("Information Gap analysis") | ||
|
||
infogap_jump(md, retries=2, seed=2016) | ||
h = [0.001, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1] | ||
lmin = Array(Any, 3) | ||
lmax = Array(Any, 3) | ||
colors = ["blue", "red", "green"] | ||
for i = 1:3 | ||
min, max = infogap_jump_polinomial(model=i, horizons=h, retries=10, maxiter=1000, verbosity=0, seed=2015) | ||
lmin[i] = Gadfly.layer(x=min, y=h, Gadfly.Geom.line, Gadfly.Theme(default_color=parse(Colors.Colorant, colors[i]))) | ||
lmax[i] = Gadfly.layer(x=max, y=h, Gadfly.Geom.line, Gadfly.Theme(default_color=parse(Colors.Colorant, colors[i]))) | ||
end | ||
f = Gadfly.plot(lmin..., lmax..., Gadfly.Guide.xlabel("o5"), Gadfly.Guide.ylabel("Horizon of uncertainty"), Gadfly.Guide.title("Opportuneness vs. Robustness"), Gadfly.Guide.manual_color_key("Models", ["y = a * t + c", "y = a * t^(1.1) + b * t + c", "y = a * t^n + b * t + c"], colors)) | ||
Gadfly.draw(Gadfly.PNG("infogap_results/opportuneness_vs_robustness.png", 6Gadfly.inch, 4Gadfly.inch), f) | ||
display(f) |
Binary file added
BIN
+36.5 KB
examples/model_analysis/infogap_results/opportuneness_vs_robustness.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters