diegozea / ROC.jl
Showing 2 of 3 files from the diff.
Other files ignored by Codecov
test/runtests.jl has changed.

@@ -31,7 +31,7 @@
Loading
31 31
		throw(ArgumentError("scores and labels should have the same length."))
32 32
	end
33 33
	bit_labels = falses(n_labels)
34 -
	used_scores_type = promote_type(Missings.T(eltype(scores)), Infinite)
34 +
	used_scores_type = promote_type(Missings.nonmissingtype(eltype(scores)), Infinite)
35 35
	used_scores = Vector{used_scores_type}(undef, n_labels)
36 36
	n_used = 0
37 37
	for (score, label) in zip(scores, labels)
@@ -111,7 +111,7 @@
Loading
111 111
end
112 112
113 113
function roc(scores, labels; distances::Bool=false)
114 -
	if Missings.T(eltype(labels)) === Bool
114 +
	if Missings.nonmissingtype(eltype(labels)) === Bool
115 115
		roc(scores, labels, identity; distances=distances)
116 116
	else
117 117
		positive =  _get_positive_label(labels)

@@ -1,7 +1,7 @@
Loading
1 1
module ROC
2 2
3 3
using Infinity
4 -
using Missings # to use Missings.T
4 +
using Missings # to use Missings.nonmissingtype
5 5
using RecipesBase # for creating a Plots.jl recipe
6 6
7 7
export	ROCData,
Files Coverage
src 78.10%
Project Totals (4 files) 78.10%
i441hos1pqaiojg7
blrgt9kglnajc2nh
saf96wtwcn40gpsa
o0xkm6117jhykjpf

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading