Skip to content

Commit

Permalink
typos fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Nov 5, 2024
1 parent 17b668d commit f7d1233
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/learn_julia/krige.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ for i in 1:n
end
end

Gadfly.plot(Gadfly.layer(z=k, x=x, y=y, Gadfly.Geom.contour(levels=collect(range(minimum(k); stop=maximum(k), length=51))), Gadfly.layer(x=X[1,:], y=X[2,:], Geom.point, Gadfly.Theme(default_color=parse(Colors.Colorant, "red"), point_size=4pt)))
Gadfly.plot(Gadfly.layer(z=k, x=x, y=y, Gadfly.Geom.contour(levels=collect(range(minimum(k); stop=maximum(k), length=51)))), Gadfly.layer(x=X[1,:], y=X[2,:], Geom.point, Gadfly.Theme(default_color=parse(Colors.Colorant, "red"), point_size=4pt)))

fig = PyPlot.figure(figsize=(8, 6))
ax = fig.gca(projection="3d")
Expand Down
2 changes: 1 addition & 1 deletion examples/model_analysis/bayes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ mcmcchain = Mads.bayessampling(md; nsteps=1000000, burnin=1000, thinning=1000, s
Mads.scatterplotsamples(md, permutedims(mcmcchain.value), joinpath("bayes_results", "bayes_scatter.png"))
Mads.display(joinpath("bayes_results", "bayes_scatter.png"))
o = Mads.forward(md, mcmcchain.value)
Mads.spaghettiplot(md, o, filename=joinpath("bayes_results" "bayes_spaghetti.png"))
Mads.spaghettiplot(md, o, filename=joinpath("bayes_results", "bayes_spaghetti.png"))
Mads.display(joinpath("bayes_results", "bayes_spaghetti.png"))
2 changes: 1 addition & 1 deletion examples/ode/ode-driver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function madsmodelrun(parameters::AbstractDict)
times = collect(0:.1:100)
initialconditions = [1.,0.]
t, y = ODE.ode23s(funcosc, initialconditions, times; points=:specified)
ys = permutedims(hcat(y...) # vectorize the output and transpose with
ys = permutedims(hcat(y...)) # vectorize the output and transpose with
predictions = OrderedCollections.OrderedDict{String, Float64}(zip(map(i -> string("o", i), times), ys[:,1]))
return predictions
end

0 comments on commit f7d1233

Please sign in to comment.