Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-alt committed Sep 7, 2023
1 parent e758c2f commit 7a750b1
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 377 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ConformalPrediction"
uuid = "98bfc277-1877-43dc-819b-a3e38c30242f"
authors = ["Patrick Altmeyer"]
version = "0.1.9"
version = "0.1.10"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
Expand Down
1 change: 0 additions & 1 deletion src/conformal_models/conformal_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const ConformalModel = Union{

include("utils.jl")
include("heuristics.jl")
include("plotting.jl")

# Main API call to wrap model:
"""
Expand Down
322 changes: 0 additions & 322 deletions src/conformal_models/plotting.jl

This file was deleted.

30 changes: 0 additions & 30 deletions test/classification.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,36 +51,6 @@ conformal_models = merge(values(available_models[:classification])...)
@test !isnothing(conf_model.scores)
predict(mach, selectrows(X, test))

# Plotting:
@test isplot(bar(mach.model, mach.fitresult, X))
@test isplot(areaplot(mach.model, mach.fitresult, X, y))
@test isplot(
areaplot(mach.model, mach.fitresult, X, y; input_var=1)
)
@test isplot(
areaplot(mach.model, mach.fitresult, X, y; input_var=:x1)
)
if data_set[:specs][1] != 2
@test_throws AssertionError contourf(
mach.model, mach.fitresult, X, y
)
else
@test isplot(contourf(mach.model, mach.fitresult, X, y))
@test isplot(
contourf(
mach.model,
mach.fitresult,
X,
y;
zoom=-1,
plot_set_size=true,
),
)
@test isplot(
contourf(mach.model, mach.fitresult, X, y; target=1)
)
end

# Evaluation:
# Evaluation takes some time, so only testing for one method.
if _method == :simple_inductive && data_set[:specs][1] > 1
Expand Down
Loading

0 comments on commit 7a750b1

Please sign in to comment.