Skip to content

Can't build CoefTable from FixedSizeArray #995

Description

@bertini97

Hi, when using FixedSizeArrays and doing PCA

using FixedSizeArrays, MultivariateStats
M = FixedSizeArray(randn(10, 100))
fit(PCA, M, method=:svd)

after resolving the errors with MultivariateStats, one is met with

MethodError: no method matching CoefTable(::FixedSizeArray{Float64, 2, Memory{Float64}}, ::Vector{String}, ::Vector{String})
The type `CoefTable` exists, but no method is defined for this combination of argument types when trying to construct it.

Closest candidates are:
  CoefTable(::Vector, ::Vector, ::Vector)
   @ StatsBase ~/.julia/packages/StatsBase/lRQEN/src/statmodels.jl:72
  CoefTable(::Vector, ::Vector, ::Vector, ::Int64)
   @ StatsBase ~/.julia/packages/StatsBase/lRQEN/src/statmodels.jl:72
  CoefTable(::Vector, ::Vector, ::Vector, ::Int64, ::Int64)
   @ StatsBase ~/.julia/packages/StatsBase/lRQEN/src/statmodels.jl:72
  ...


Stacktrace:
 [1] show(io::IOContext{IOBuffer}, ::MIME{Symbol("...")}, M::PCA{Float64})
   @ MultivariateStats ~/.julia/packages/MultivariateStats/sSKHh/src/pca.jl:165

Probably CoefTable is hardcoded to expect only a vector. Can this be addressed? Thanks a lot in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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