pyhs3.compiled.compile_nll

pyhs3.compiled.compile_nll(log_prob, free, baked, initial, bounds, *, gradient=True, backend='c', fuse=False, mode=None, cache=None, batched=False, parameters_of_interest=(), data=None)[source]

Compile -sum(log_prob) as a function of one vector of free scalars.

This is the implementation behind pyhs3.Model.compile_nll(); see that method for the user-facing description.

Parameters:
Returns:

The compiled likelihood.

Return type:

CompiledNLL