spmviz.predict.match_context#

spmviz.predict.match_context(ps, observed, min_children=1)[source]#

Longest suffix of observed that is a pattern of ps with at least min_children extensions.

Returns the pattern index or -1.