algorithm_functions.py#
This file contains helper functions for the SM-SPSA algorithm, such as methods to calculate a stationary distribution or perform the transformation.
Applies the centred mass heuristic to a matrix. |
|
Calculates the hyperlink cost function for a transition probability or matrix. |
|
|
Calculates the objective function value. |
|
Calculates the stationary distribution of a transition matrix. |
Calculates the inverse logistic transformation of a matrix. |
|
|
Applies the logistic function to a matrix. |
|
Normalises a matrix so that the row sums are equal to 1. |
|
Scales a matrix. |
|
Performs the complete transformation yielding a transition matrix. |