# Decision tree classifier generated using classifier_gen.py
# Input vector has 2 elements.
def classify(input):
  if input[1] <= 0.22766199707984924:
    if input[0] <= 0.14285700023174286:
      if input[1] <= -0.1444310024380684:
        if input[0] <= -0.01863360032439232:
          if input[0] <= -0.06335414946079254:
            if input[0] <= -0.16770199686288834:
              return 2
            else:
              if input[0] <= -0.1279505044221878:
                return 2
              else:
                return 2
          else:
            return 2
        else:
          return 3
      else:
        if input[0] <= -0.09689449891448021:
          return 2
        else:
          if input[1] <= -0.0073440102860331535:
            if input[0] <= 0.018633349798619747:
              return 0
            else:
              return 0
          else:
            if input[1] <= 0.17135900259017944:
              if input[1] <= 0.024479600600898266:
                return 0
              else:
                return 0
            else:
              return 0
    else:
      if input[1] <= -0.028151899576187134:
        return 3
      else:
        return 3
  else:
    if input[0] <= 0.07950284983962774:
      return 1
    else:
      if input[1] <= 0.35006099939346313:
        return 4
      else:
        return 4


# tree data
children_left  = [ 1, 2, 3, 4, 5, 6,-1, 8,-1,-1,-1,-1,13,-1,15,16,-1,-1,19,20,-1,-1,-1,24,
 -1,-1,27,-1,29,-1,-1]
children_right = [26,23,12,11,10, 7,-1, 9,-1,-1,-1,-1,14,-1,18,17,-1,-1,22,21,-1,-1,-1,25,
 -1,-1,28,-1,30,-1,-1]
feature        = [ 1, 0, 1, 0, 0, 0,-2, 0,-2,-2,-2,-2, 0,-2, 1, 0,-2,-2, 1, 1,-2,-2,-2, 1,
 -2,-2, 0,-2, 1,-2,-2]
threshold      = [ 0.227662  , 0.142857  ,-0.144431  ,-0.0186336 ,-0.06335415,-0.167702  ,
 -2.        ,-0.1279505 ,-2.        ,-2.        ,-2.        ,-2.        ,
 -0.0968945 ,-2.        ,-0.00734401, 0.01863335,-2.        ,-2.        ,
  0.171359  , 0.0244796 ,-2.        ,-2.        ,-2.        ,-0.0281519 ,
 -2.        ,-2.        , 0.07950285,-2.        , 0.350061  ,-2.        ,
 -2.        ]
