Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

done #88

Merged
merged 1 commit into from
Sep 7, 2023
Merged

done #88

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading