Skip to content

Commit a9775a7

Browse files
committed
Adicionando Labels e chamando convert
1 parent c649dee commit a9775a7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/sklearn.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ function generate_low_rank_matrix(; n_samples::Int = 100,
267267
effective_rank = effective_rank,
268268
tail_strength = tail_strength,
269269
random_state = random_state)
270-
#return convert(features, labels)
270+
labels = zeros(size(features, 1))
271+
272+
return convert(features, labels)
271273

272274
end

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ using Test
5454
tail_strength = 0.5,
5555
random_state = 5)
5656

57+
5758
@test size(data)[1] == samples
58-
@test size(data)[2] == features
59+
@test size(data)[2] == features + 1
5960

6061
end

0 commit comments

Comments
 (0)