def node_to_string()

in src/ppxgboost/BoosterParser.py [0:0]


    def node_to_string(self, lvl):
        ans = ""
        for i in range(0, lvl):
            ans = ans + "\t"
        return ans + str(self.id) + ":leaf=" + str(self.value) + "\n"