Skip to content

Commit

Permalink
Fix and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
giopaglia committed Dec 4, 2023
1 parent 09dc95d commit b3f406b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "SoleModels"
uuid = "4249d9c7-3290-4ddd-961c-e1d3ec2467f8"
license = "MIT"
authors = ["Michele GHIOTTI", "Giovanni PAGLIARINI", "Eduard I. STAN"]
version = "0.5.2"
version = "0.5.3"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
10 changes: 4 additions & 6 deletions src/models/evaluation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ function readmetrics(m::LeafModel{L}; digits = 2) where {L<:Label}
end
elseif haskey(info(m), :supporting_labels)
return (; ninstances = length(info(m).supporting_labels))
elseif haskey(info(consequent(m)), :supporting_labels)
return (; ninstances = length(info(m).supporting_labels))
else
return (;)
end, (; coverage = 1.0))
Expand Down Expand Up @@ -70,11 +68,11 @@ See also
[`checkantecedent`](@ref).
"""
function evaluaterule(
rule::Rule{O,A,FM},
rule::Rule,
X::AbstractInterpretationSet,
Y::AbstractVector{<:Label};
kwargs...,
) where {O,A,FM<:AbstractModel}
)
#println("Evaluation rule in time...")
ys = apply(rule,X)
#if X isa SupportedLogiset
Expand Down Expand Up @@ -147,11 +145,11 @@ See also
[`consequent`](@ref).
"""
function rulemetrics(
rule::Rule{O,A,FM},
rule::Rule,
X::AbstractInterpretationSet,
Y::AbstractVector{<:Label};
kwargs...,
) where {O,A,FM<:AbstractModel}
)
eval_result = evaluaterule(rule, X, Y; kwargs...)
ys = eval_result[:ys]
antsat = eval_result[:antsat]
Expand Down

0 comments on commit b3f406b

Please sign in to comment.