You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mach = machine(model, X) |> fit! # this errors ERROR: MethodError: no method matching size(::MultivariateStats.ICA{Float64}, ::Int64)
589
+
model = ICA(outdim = 3, tol=0.1)
590
+
mach = machine(model, X) |> fit!
591
+
592
+
X_unmixed = transform(mach, X)
593
+
594
+
using Plots
595
+
596
+
plot(X.x2)
597
+
plot(X.x2)
598
+
plot(X.x3)
599
+
600
+
plot(X_unmixed.x1)
601
+
plot(X_unmixed.x2)
602
+
plot(X_unmixed.x3)
592
603
593
-
Xproj = transform(mach, X)
594
-
@info sum(abs, Xproj - signal)
595
604
```
596
605
597
606
See also
@@ -611,7 +620,14 @@ possible the degree to which the target classes are separable can be discrimated
611
620
either for dimension reduction of the features (see transform below) or for probabilistic
612
621
classification of the target (see predict below).
613
622
614
-
In the case of prediction, the class probability for a new observation reflects the proximity of that observation to training observations associated with that class, and how far away the observation is from those associated with other classes. Specifically, the distances, in the transformed (projected) space, of a new observation, from the centroid of each target class, is computed; the resulting vector of distances (times minus one) is passed to a softmax function to obtain a class probability prediction. Here "distance" is computed using a user-specified distance function.
623
+
In the case of prediction, the class probability for a new observation reflects the
624
+
proximity of that observation to training observations associated with that class, and how
625
+
far away the observation is from those associated with other classes. Specifically, the
626
+
distances, in the transformed (projected) space, of a new observation, from the centroid of
627
+
each target class, is computed; the resulting vector of distances (times minus one) is
628
+
passed to a softmax function to obtain a class probability prediction. Here "distance" is
629
+
computed using a user-specified distance function.
630
+
615
631
# Training data
616
632
617
633
In MLJ or MLJBase, bind an instance `model` to data with
0 commit comments