def Potential(name, var, model=None):
 model = modelcontext(model)
 var.name = model.name_for(name)
 model.potentials.append(var)
 return var

def Potential ( name , var , model = None ) : model = modelcontext ( model ) var . name = model . name_for ( name ) model . potentials . append ( var ) return var
add an arbitrary factor potential to the model likelihood parameters name : str var : theano variables returns var : var .