if sample[k] == -1 and self.vartype == dimod.BINARY:
                        sample[k] = 0