We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c606ab commit cf2070bCopy full SHA for cf2070b
example.py
@@ -2,6 +2,7 @@
2
import numpy as np
3
from pymanopt.optimizers.line_search import AdaptiveLineSearcher
4
from pyriemann.datasets import make_matrices
5
+from pyriemann.utils.mean import mean_covariance
6
7
from riemannianpca import compute_supervised_rpca
8
@@ -14,6 +15,7 @@
14
15
"max_iterations": 30,
16
"max_time": float("inf"),
17
}
18
+starting_point = mean_covariance(C, metric="riemann")
19
20
21
U, logs = compute_supervised_rpca(
@@ -24,7 +26,7 @@
24
26
solver="steepest",
25
27
solv_args=solv_args,
28
return_log=True,
- init=None,
29
+ init=starting_point,
30
k=3,
31
)
32
0 commit comments