diff --git a/Project.toml b/Project.toml index e9b88f2..b1e3f28 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StatisticalMeasures" uuid = "a19d573c-0a75-4610-95b3-7071388c7541" authors = ["Anthony D. Blaom "] -version = "0.1.3" +version = "0.1.4" [deps] CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597" @@ -39,6 +39,7 @@ PrecompileTools = "1.1" ScientificTypes = "3" ScientificTypesBase = "3" StatisticalMeasuresBase = "0.1" +Statistics = "1" StatsBase = "0.33, 0.34" julia = "1.6" diff --git a/docs/src/examples_of_usage.md b/docs/src/examples_of_usage.md index 0428d5c..43f4b07 100644 --- a/docs/src/examples_of_usage.md +++ b/docs/src/examples_of_usage.md @@ -299,7 +299,7 @@ import LossFunctions as LF loss = Measure(LF.L1HingeLoss()) ``` -This loss can only called on scalars (true for LossFunctions.jl losses since v0.10): +This loss can only be called on scalars (true for LossFunctions.jl losses since v0.10): ```@example 28 using CategoricalArrays diff --git a/src/finite.jl b/src/finite.jl index ced11c9..96ce027 100644 --- a/src/finite.jl +++ b/src/finite.jl @@ -500,7 +500,7 @@ const FScoreType = API.FussyMeasure{<:API.RobustMeasure{<:_FScore}} # Allow callable on confusion matrices: (measure::FScoreType)(cm::ConfusionMatrices.ConfusionMatrix) = - ConfusionMatrices.fscore(cm, measures.beta) + ConfusionMatrices.fscore(cm, measure.beta) # these traits will be inherited by `FScore`: @trait(