Skip to content

Commit d5532b0

Browse files
committed
Arrumando formatação
1 parent 6d43b5f commit d5532b0

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/sklearn.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ function generate_classification(; n_samples::Int = 100,
212212

213213
return convert(features, labels)
214214
end
215+
215216
"""
216217
function generate_swiss_roll(; n_samples::Int = 100,
217218
noise::Float64 = 0.0,
@@ -227,11 +228,9 @@ function generate_swiss_roll(; n_samples::Int = 100,
227228
noise::Float64 = 0.0,
228229
random_state::Union{Int,Nothing} = nothing)
229230

230-
231231
(features, labels) = datasets.make_swiss_roll( n_samples = n_samples,
232232
noise = noise,
233233
random_state = random_state)
234234

235235
return convert(features, labels)
236-
237236
end

test/runtests.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ using Test
2727
@test size(data)[1] == samples
2828
@test size(data)[2] == 4
2929

30-
3130
data = SyntheticDatasets.generate_regression(n_samples = samples,
3231
n_features = features,
3332
noise = 2.2,
@@ -40,16 +39,13 @@ using Test
4039
n_features = features,
4140
n_classes = 1)
4241

43-
4442
@test size(data)[1] == samples
4543
@test size(data)[2] == features + 1
4644

4745
data = SyntheticDatasets.generate_swiss_roll(n_samples =samples,
4846
noise = 2.2,
4947
random_state = 5)
5048

51-
@test @show size(data)[1] == samples
52-
@test size(data)[2] == 4
53-
54-
49+
@test @show size(data)[1] == samples
50+
@test size(data)[2] == 4
5551
end

0 commit comments

Comments
 (0)