Skip to content

Commit fd5b524

Browse files
committed
updated!
1 parent 49f1173 commit fd5b524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MLJMultivariateStatsInterface.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ time = 8 .\ 0:2001
578578
579579
sine_wave = sin.(2*time)
580580
square_wave = sign.(sin.(3*time))
581-
sawtooth_wave = repeat(collect(4 .\ 0:10), 182)
581+
sawtooth_wave = repeat(collect(0:10) / 4, 182)
582582
signal = [sine_wave, square_wave, sawtooth_wave]
583583
add_noise(x) = x + randn()
584584
signal = map((x -> add_noise.(x)), signal)
@@ -587,11 +587,11 @@ signal = permutedims(hcat(signal...))'
587587
mixing_matrix = [ 1 1 1; 0.5 2 1; 1.5 1 2]
588588
X = MLJ.table(signal * mixing_matrix)
589589
590-
model = ICA(outim = 3, tol=0.1)
590+
model = ICA(k = 3, tol=0.1)
591591
mach = machine(model, X) |> fit! # this errors ERROR: MethodError: no method matching size(::MultivariateStats.ICA{Float64}, ::Int64)
592592
593593
Xproj = transform(mach, X)
594-
sum(Xproj - signal)
594+
@info sum(abs, Xproj - signal)
595595
```
596596
597597
See also

0 commit comments

Comments
 (0)