Skip to content

PCA example throws error #166

Description

@rkube

Hi,
I'm trying to run the PCA example for the IRIS code but get an error when calling predict:

julia> M = fit(PCA, Xtr; maxoutdim=3)
PCA(indim = 4, outdim = 3, principalratio = 0.9957325846529407)

julia> Yte = predict(M, Xte)
ERROR: MethodError: no method matching predict(::PCA{Float64}, ::LinearAlgebra.Adjoint{Float64, Matrix{Float64}})
Closest candidates are:
  predict(::Discriminant, ::AbstractMatrix{T} where T) at /home/rkube/.julia/packages/MultivariateStats/HTpHt/src/lda.jl:26
Stacktrace:
 [1] top-level scope

Does anyone know what is going on here?

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