calc_grad# scarlet2.nn.calc_grad(x, model)[source]# Calculates the gradient of the log-prior using the ScoreNet model chosen Parameters: x – array of the data model – the model to calculate the score function Returns: score_func Return type: array of the score function