def clone(self):
    'Makes a copy of this factor.'
    return LDFactor(self.model, self.var_idx, self.p.clone())
Makes a copy of this factor.
def clone(self):
    
    return LDFactor(self.model, self.var_idx, self.p.clone())