def is_virginica_test(fi, t, reverse, example):
 test = (example[fi] > t)
 if reverse:
  test = (not test)
 return test

def is_virginica_test ( fi , t , reverse , example ) : test = ( example [ fi ] > t ) if reverse : test = ( not test ) return test
apply threshold model to a new example .