Currently reconstruct for PCA have the following signature:
reconstruct(M::PCA{T}, y::AbstractVecOrMat{T}) where {T<:Real}
This can be slightly annoying if the PCA was fitted with Float32 (e.g. data loaded from some file for which it is standard) and then the y is generated independantly thus being Float64 and leading to MethodError.
Could these kind of restrictions be lifted? If yes I'll look into a PR for it.
Currently reconstruct for PCA have the following signature:
This can be slightly annoying if the PCA was fitted with Float32 (e.g. data loaded from some file for which it is standard) and then the
yis generated independantly thus being Float64 and leading toMethodError.Could these kind of restrictions be lifted? If yes I'll look into a PR for it.