Skip to content

Fallback reconstruct method provides incorrect error message #238

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions