def normalize(score, alpha=<NUM_LIT:15>):
norm_score = score / math.sqrt((score * score) + alpha)<EOL>if norm_score < -<NUM_LIT:1.0>:<EOL><INDENT>return -<NUM_LIT:1.0><EOL><DEDENT>elif norm_score > <NUM_LIT:1.0>:<EOL><INDENT>return <NUM_LIT:1.0><EOL><DEDENT>else:<EOL><INDENT>return norm_score<EOL><DEDENT>
Normalize the score to be between -1 and 1 using an alpha that
approximates the max expected value