Commit 42e3974d by Steven Bird

add missing backslashes to multiline expression

parent 8c691a6c
......@@ -163,9 +163,9 @@ def presence(label):
def fractional_presence(label):
return lambda x, y:\
abs((float(1.0 / len(x)) - float(1.0 / len(y)))) * (label in x and label in y)
or 0.0 * (label not in x and label not in y)
or abs(float(1.0 / len(x))) * (label in x and label not in y)
abs((float(1.0 / len(x)) - float(1.0 / len(y)))) * (label in x and label in y) \
or 0.0 * (label not in x and label not in y) \
or abs(float(1.0 / len(x))) * (label in x and label not in y) \
or (float(1.0 / len(y))) * (label not in x and label in y)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment