Skip to content

What is the actual formula to construct the affinity kernel matrix? #69

@caodudu

Description

@caodudu

Hi. In the paper, The adaptive Gaussian kernel was given by $$M(x_i.x_j)=\frac{1}{\sqrt{2\pi(\sigma_i+\sigma_j)}}e^{\left(-\frac{1}{2}\frac{(x_i-x_j)^T(x_i-x_j)}{\sigma_i+\sigma_j}\right)}$$. However, in the script (~/SEACells/build_graph.py), I noted the method constructing affinity kernel matrix is more similar to $$M(x_i​,x_j​)=e^{(−\frac{|x_i​−x_j​|^2}{​σ_i​\cdotσ_j}​)}$$? So did I misunderstand something about it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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