This file contains hidden or 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
#!/usr/bin/env python | |
# This is an MIT-licensed implementation of the sigf toolkit | |
# for randomization tests: https://nlpado.de/~sebastian/software/sigf.shtml | |
from random import getrandbits | |
import sys | |
def randomized_test(model1, model2, score, trials): | |
print('# score(model1) = %f' % score(model1), file=sys.stderr) |