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)).") |