Skip to content
Merged
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 = "StatisticalMeasuresBase"
uuid = "c062fc1d-0d66-479b-b6ac-8b44719de4cc"
authors = ["Anthony D. Blaom <anthony.blaom@gmail.com>"]
version = "0.1.4"
version = "0.1.5"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
Expand Down
4 changes: 0 additions & 4 deletions src/api.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#todo note `check` is called `_check` in MLJBase, but not public
#todo the way class_weights are specified is breaking!
#todo change `w` -> `weights`

"""
measurements(measure, ŷ, y[, weights, class_weights::AbstractDict])

Expand Down
6 changes: 2 additions & 4 deletions src/tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ Then `typename(x)` returns `:Machine`.
"""
function typename(x)
M = typeof(x)
if isdefined(M, :name)
return M.name.name
elseif isdefined(M, :body)
return typename(M.body)
if M isa DataType || M isa UnionAll
return nameof(M)
else
return Symbol(string(M))
end
Expand Down
3 changes: 2 additions & 1 deletion test/tools.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module Fruit
using StatisticalMeasuresBase
import StatisticalMeasuresBase as API

module Fruit

struct RedApple{T}
x::T
end
Expand Down
Loading