Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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