Skip to content

Commit

Permalink
removed plots from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-alt committed Sep 7, 2023
1 parent 9ed7e7e commit 287806c
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions test/laplace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ function run_workflow(
verbose::Bool=false,
do_optimize_prior::Bool=true,
do_predict::Bool=true,
do_plot::Bool=true,
)
# Unpack:
X = val[:X]
Expand Down Expand Up @@ -209,28 +208,6 @@ function run_workflow(
if do_predict
predict(la, X)
end
if do_plot
if outdim == 1
plot(la, X, y) # standard
plot(la, X, y; xlims=(-5, 5), ylims=(-5, 5)) # lims
plot(la, X, y; link_approx=:plugin) # plugin approximation
else
# Classification multi is plotted differently
@assert likelihood == :classification
# NOTE: do we not allow for vector-output regression?
for link_approx in [:probit, :plugin]
_labels = sort(unique(y))
plt_list = []
for target in _labels
plt = plot(
la, X, y; target=target, clim=(0, 1), link_approx=link_approx
)
push!(plt_list, plt)
end
plot(plt_list...)
end
end
end

return la.H
end
Expand Down Expand Up @@ -349,7 +326,6 @@ end
hessian_structure=:kron,
do_optimize_prior=false,
do_predict=true,
do_plot=false,
)
end
end

2 comments on commit 287806c

@pat-alt
Copy link
Member Author

@pat-alt pat-alt commented on 287806c Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/90969

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.3 -m "<description of version>" 287806ce7bba8a5659fee2fe7a4dcea3b970fbc7
git push origin v0.1.3

Please sign in to comment.