Skip to content

AssertionError in K-medoids algorithm #281

@MagnusHK

Description

@MagnusHK

I am using K-medoids to reduce my data (potential future scenarios of a stock's price) from 500 scenarios to n = 25.
I computed the distance amtrix based on the Eucledian distance:
C = pairwise(Euclidean(), data', data')
where data is my 500 scenarios.

Then I run K-medoids:
kmedoids(C, n, init = :kmpp)
I get the error:
ERROR: AssertionError: !(isempty(grp))

Does any of you know what could be wrong?

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