Fix old cascade format function to work with Python3.

This commit is contained in:
iabdalkader 2020-06-02 20:42:47 +02:00
parent 197e087543
commit a0bb1726e3

View File

@ -223,7 +223,7 @@ def cascade_binary_old(path, n_stages, name):
n_stages = max_stages
# read stages
stages = [len(t.childNodes)/2 for t in trees][0:n_stages]
stages = [len(t.childNodes)//2 for t in trees][0:n_stages]
stage_threshold = xmldoc.getElementsByTagName('stage_threshold')[0:n_stages]
# total number of features