Given a valid pca::PCA, calling reconstruct(pca, y) with y that is not an AbstractVecOrMat will call the fallback method, which errors saying
'reconstruct' is not defined for PCA{T}
when it's not true. This should be handled differently.
|
reconstruct(model::AbstractDimensionalityReduction, y) = error("'reconstruct' is not defined for $(typeof(model)).") |
Given a valid
pca::PCA, callingreconstruct(pca, y)withythat is not anAbstractVecOrMatwill call the fallback method, which errors sayingwhen it's not true. This should be handled differently.
MultivariateStats.jl/src/types.jl
Line 27 in b7dc36e