Skip to content

Commit

Permalink
cleanup and support for CSV api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalmes committed Sep 16, 2021
1 parent f3d4422 commit d08f4d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_normalizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ function test_normalizer()
@test isapprox(maximum(res[:,2]),1.0,atol=1e-8)
norm = Normalizer(Dict(:method => :pca))
res=fit_transform!(norm,X)
@test isapprox(std(res[:,1]),0.28996,atol=1e-2)
@test isapprox(std(res[:,1]),0.28996,atol=0.1)
res=fit_transform(norm,X)
@test isapprox(std(res[:,1]),0.28996,atol=1e-2)
@test isapprox(std(res[:,1]),0.28996,atol=0.1)
norm = Normalizer(Dict(:method => :fa))
res = fit_transform!(norm,X)
@test isapprox(std(res[:,1]),0.81670,atol=1e-2)
@test isapprox(std(res[:,1]),0.81670,atol=0.1)
res = fit_transform(norm,X)
@test isapprox(std(res[:,1]),0.81670,atol=1e-2)
@test isapprox(std(res[:,1]),0.81670,atol=0.1)
norm = Normalizer(Dict(:method => :ppca))
res = fit_transform!(norm,X)
@test isapprox(std(res[:,1]),0.00408,atol=1e-2)
Expand Down

0 comments on commit d08f4d1

Please sign in to comment.