LingPy

lingpy.test.evaluate.EvalMSA.check_swaps

EvalMSA.check_swaps()

Check for possibly identical swapped sites.

Returns :

swap : { -2, -1, 0, 1, 2 }

Information regarding the identity of swap decisions is coded by integers, whereas

1 – indicates that swaps are detected in both gold standard and

testset, whereas a negative value indicates that the positions are not identical,

2 – indicates that swap decisions are not identical in gold

standard and testset, whereas a negative value indicates that there is a false positive in the testset, and

0 – indicates that there are no swaps in the gold standard and the

testset.