sf.apps.train.prob_click

prob_click(A, sample)[source]

Calculate the probability of a click pattern.

The input adjacency matrix must have singular values not exceeding one. This can be achieved by rescaling an arbitrary adjacency matrix using rescale_adjacency().

Parameters
  • A (array) – the adjacency matrix

  • sample (array) – the sample

Returns

the probability

Return type

float