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
will have will have fitted two PCs to SALT and two PCs to THETA.
In Pauthenet et al. 2017 he first transforms SALT and THETA to a spline basis, to scale them, and then concatenates these elements into one long vector which he performs PCA on, resulting in three thermohaline PCs.
hi @sdat2
It would be a plus to have several dimensionnality reduction logic.
From the Pauthenet 2017 approach I see 2 things for pyxpcm:
the spline basis projection is also a reduction step, this could be added to pyxpcm
the join step for PCA could in fact be generalized to any reduction method, basically this could be an option determining if the reduction is to be applied to each feature separately or to their concatenation.
The 2nd point is somehow tricky internally I think, and we have to keep in mind performance in mind, computing the PCA for the concatenated field will be much longer than on each features.
I think Etienne thought that the spline basis projection step doesn't make much difference to the output of the PCA (assuming the inputs are clean), so we can probably not implement that step for now.
A join step does seem quite hard to implement given the class structure of pcm. I am mid-way through doing that so I would be happy to carry on working on this.
I think Etienne thought that the spline basis projection step doesn't make much difference to the output of the PCA (assuming the inputs are clean), so we can probably not implement that step for now.
A join step does seem quite hard to implement given the class structure of pcm. I am mid-way through doing that so I would be happy to carry on working on this.
Currently each feature (say salt and temperature) is fitted with a separate set of PCs
e.g.
will have will have fitted two PCs to SALT and two PCs to THETA.
In Pauthenet et al. 2017 he first transforms SALT and THETA to a spline basis, to scale them, and then concatenates these elements into one long vector which he performs PCA on, resulting in three thermohaline PCs.
https://doi.org/10.1175/JPO-D-16-0083.1
We wouldn't need to worry about transforming on to a spline basis (it doesn't seem to make much difference), but we could add a keyword argument like
m = pcm(K=5, features=features_pcm, maxvar=2, join=True)
so that there is a concatenation before the principal component step.
The text was updated successfully, but these errors were encountered: