Skip to content

Sensitivity branch has a major bug for power mean proximity #49

@rafaqz

Description

@rafaqz

S_e_aff, S_e_cost = PM_sensitivity(grsp.g.affinities, nothing, grsp.θ, grsp.W, grsp.Z, grsp.Z, qˢ, qᵗ, targetnodes)

Here you can see that grsp.Z is passed in for both Z and K arguments. But K is written into in PM_sensitivity here with ./=:

K ./= [Z[lmarks[i],i] for i in 1:length(lmarks)]'

This also alters Z, as they are the same matrix. Z is later passed to betweenness functions despite being altered:

bet_edge_k = ConScape.RSP_edge_betweenness_kweighted(W, Z, qˢ, qᵗ, K, lmarks)

@ninbrm I assume this is not intended, and will remove for testing the new version. Please confirm!

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