ResponseMatrixPredictor

class remu.likelihood.ResponseMatrixPredictor(filename)[source]

Bases: remu.likelihood.MatrixPredictor

Event rate predictor from ResponseMatrix objects.

Parameters
filenamestr or file object

The exported information of a ResponseMatrix or ResponseMatrixArrayBuilder.

Methods

__call__(*args, **kwargs)

See prediction().

check_bounds(parameters)

Check that all parameters are within bounds.

compose(other)

Return a new Predictor that is a composition with other.

fix_parameters(fix_values)

Return a new Predictor with fewer free parameters.

prediction(parameters, *args, **kwargs)

Turn a set of parameters into a reco prediction.

check_bounds(parameters)

Check that all parameters are within bounds.

compose(other)

Return a new Predictor that is a composition with other.

new_predictor(parameters) = self(other(parameters))
fix_parameters(fix_values)

Return a new Predictor with fewer free parameters.

Parameters
fix_valuesiterable

List of the parameter values that the parameters should be fixed at. The list must be of the same length as the number of parameters of predictor. Any parameters that should remain unfixed should be specified with None or np.nan.

prediction(parameters, *args, **kwargs)

Turn a set of parameters into a reco prediction.

Returns
predictionndarray
weightsndarray