slight fixes to potts model inference example