Skip to content

Fallback reconstruct method provides incorrect error message #238

@bertini97

Description

@bertini97

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions