def queryone(self, XTest_single,Tree):
        step=0
        value = 0
        # import pdb
        # pdb.set_trace()
        while step<=len(Tree)-1:
            if(Tree[step][FEATURE_NUMBER_step] ==1):
                if(XTest_single[1]<=Tree[step][SPLIT_VAL_step]):
                    step = Tree[step][LEFT_POINTER]
                    continue
                else:
                    step = Tree[step][RIGHT_POINTER]
                    continue
            elif(Tree[step][FEATURE_NUMBER_step]==-1):
                value = Tree[step][SPLIT_VAL_step]
                break
            elif(Tree[step][FEATURE_NUMBER_step] ==0):
                if(XTest_single[0]<=Tree[step][SPLIT_VAL_step]):
                    step = Tree[step][LEFT_POINTER]
                    continue
                else:
                    step = Tree[step][RIGHT_POINTER]
                    continue
            elif(Tree[step][FEATURE_NUMBER_step] ==2):
                if(XTest_single[2]<=Tree[step][SPLIT_VAL_step]):
                    step = Tree[step][LEFT_POINTER]
                    continue
                else:
                    step = Tree[step][RIGHT_POINTER]
                    continue
            elif(Tree[step][FEATURE_NUMBER_step] ==3):
                if(XTest_single[3]<=Tree[step][SPLIT_VAL_step]):
                    step = Tree[step][LEFT_POINTER]
                    continue
                else:
                    step = Tree[step][RIGHT_POINTER]
                    continue
            elif(Tree[step][FEATURE_NUMBER_step] ==4):
                if(XTest_single[4]<=Tree[step][SPLIT_VAL_step]):
                    step = Tree[step][LEFT_POINTER]
                    continue
                else:
                    step = Tree[step][RIGHT_POINTER]
                    continue
        return value
dataset/ETHPy150Open TheSriram/MLT4Trading/Project 3/Randomforestlearner.py/Randomforestlearner.queryone/original