Skip to content

Incorrect parsing of affinity='precomputed' for the input data #1

@ljwolf

Description

@ljwolf

When you pass

spenc.SPENC(n_clusters=k, affinity='precomputed').fit(affinity, W)

spenc ignores W altogether, since it treats the precomputed affinity matrix as if it's already filtered by W.

This is not intended. I'd instead always intended in setting attribute_affinity_, then mixing that with spatial_affinity_ to get affinity_matrix_, on which the clustering is based.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions