Inference toolbox