Skip to content

Less restrictive types for reconstruct #139

@Kolaru

Description

@Kolaru

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions