athena.utils.initialize_weights

initialize_weights(matrix)[source]

Inizialize uniform weights for simple Monte Carlo method or linear regression in local linear gradients.

Parameters

matrix (numpy.ndarray) – matrix which shape[0] value contains the dimension of the weights to be computed.

Returns

weights

Return type

numpy.ndarray