accelmo.fitting.weights¶ Inverse-variance loss weights. accelmo.fitting.weights.variance_to_weight(variances)[source]¶ Inverse-variance weights; a non-finite or non-positive variance gets weight zero. Return type: ndarray Parameters: variances (numpy.ndarray)