Created
August 2, 2018 15:32
-
-
Save kangeugine/7078a58cdcc3839f71d58fb5a8db43b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def constraint_unique(x): | |
n1 = x.size | |
n2 = np.unique(to_int(x)).size | |
return n1 - n2 | |
# if constraint_unique(x) == 0, test passed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment