Skip to content

Support build of "adaptive" kernel graphs #889

@darribas

Description

@darribas

Under the weights framework, one can build a kernel W with adaptive bandwidth (example from the book:

# Build weights with adaptive bandwidth
w_adaptive = weights.distance.Kernel.from_dataframe(
    sub_30, fixed=False, k=15
)

The fixed=False flag is not supported under Graph and it'd be useful to have it available (e.g., for gwlearn, cc' @martinfleis). A proposed analogue API could be:

# Build weights with adaptive bandwidth
w_adaptive = graph.Graph.build_kernel(
    sub_30.centroid, fixed=False, k=15
)

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