DSE-MSU / DeepRobust

A pytorch adversarial library for attack and defense methods on images and graphs
MIT License
976 stars 189 forks source link

what is the param "ptb_rate " of PrePtbDataset means ? #129

Open chengglmotto opened 1 year ago

chengglmotto commented 1 year ago

ie: ptb_rate=0.05 means ptb 0.05% or 5%? image

ChandlerBang commented 1 year ago

Hi,

ptb_rate means perturbation rate, which is the ratio of changed edges to total edges. For example, if we have 1000 edges in the original graph, ptb_rate=0.05 indicates that we change 50 edges (5%) in this graph.