def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Maritalstatus, obj[8]: Children, obj[9]: Education, obj[10]: Occupation, obj[11]: Income, obj[12]: Bar, obj[13]: Coffeehouse, obj[14]: Restaurant20to50, obj[15]: Direction_same, obj[16]: Distance
	# {"feature": "Age", "instances": 23, "metric_value": 0.9986, "depth": 1}
	if obj[6]<=4:
		# {"feature": "Coupon", "instances": 19, "metric_value": 0.9495, "depth": 2}
		if obj[3]<=3:
			# {"feature": "Time", "instances": 14, "metric_value": 1.0, "depth": 3}
			if obj[2]<=3:
				# {"feature": "Maritalstatus", "instances": 12, "metric_value": 0.9799, "depth": 4}
				if obj[7]>0:
					# {"feature": "Occupation", "instances": 7, "metric_value": 0.5917, "depth": 5}
					if obj[10]<=14:
						return 'True'
					elif obj[10]>14:
						return 'False'
					else: return 'False'
				elif obj[7]<=0:
					# {"feature": "Coffeehouse", "instances": 5, "metric_value": 0.7219, "depth": 5}
					if obj[13]>0.0:
						return 'False'
					elif obj[13]<=0.0:
						return 'True'
					else: return 'True'
				else: return 'False'
			elif obj[2]>3:
				return 'False'
			else: return 'False'
		elif obj[3]>3:
			return 'False'
		else: return 'False'
	elif obj[6]>4:
		return 'True'
	else: return 'True'

def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Maritalstatus, obj[8]: Children, obj[9]: Education, obj[10]: Occupation, obj[11]: Income, obj[12]: Bar, obj[13]: Coffeehouse, obj[14]: Restaurant20to50, obj[15]: Direction_same, obj[16]: Distance
	# {"feature": "Age", "instances": 23, "metric_value": 0.9986, "depth": 1}
	if obj[6]<=4:
		# {"feature": "Coupon", "instances": 19, "metric_value": 0.9495, "depth": 2}
		if obj[3]<=3:
			# {"feature": "Time", "instances": 14, "metric_value": 1.0, "depth": 3}
			if obj[2]<=3:
				# {"feature": "Maritalstatus", "instances": 12, "metric_value": 0.9799, "depth": 4}
				if obj[7]>0:
					# {"feature": "Occupation", "instances": 7, "metric_value": 0.5917, "depth": 5}
					if obj[10]<=14:
						return 'True'
					elif obj[10]>14:
						return 'False'
					else: return 'False'
				elif obj[7]<=0:
					# {"feature": "Coffeehouse", "instances": 5, "metric_value": 0.7219, "depth": 5}
					if obj[13]>0.0:
						return 'False'
					elif obj[13]<=0.0:
						return 'True'
					else: return 'True'
				else: return 'False'
			elif obj[2]>3:
				return 'False'
			else: return 'False'
		elif obj[3]>3:
			return 'False'
		else: return 'False'
	elif obj[6]>4:
		return 'True'
	else: return 'True'

#obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Maritalstatus, obj[8]: Children, obj[9]: Education, obj[10]: Occupation, obj[11]: Income, obj[12]: Bar, obj[13]: Coffeehouse, obj[14]: Restaurant20to50, obj[15]: Direction_same, obj[16]: Distance # {"feature": "Age", "instances": 23, "metric_value": 0.9986, "depth": 1} # {"feature": "Coupon", "instances": 19, "metric_value": 0.9495, "depth": 2} # {"feature": "Time", "instances": 14, "metric_value": 1.0, "depth": 3} # {"feature": "Maritalstatus", "instances": 12, "metric_value": 0.9799, "depth": 4} # {"feature": "Occupation", "instances": 7, "metric_value": 0.5917, "depth": 5} # {"feature": "Coffeehouse", "instances": 5, "metric_value": 0.7219, "depth": 5}