Skip to content
Snippets Groups Projects
Commit 70ab9dcd authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Sort in right order for boosting

parent f4ccbe4d
Branches
Tags
No related merge requests found
......@@ -667,7 +667,7 @@ class BaseBoost(object):
def getInterpretBase(classifier, directory, classifier_name, weights,
break_cause=" the dual constrail was not violated"):
interpretString = "\t "+classifier_name+" permformed classification with weights : \n"
weights_sort = np.argsort(weights)
weights_sort = np.argsort(-weights)
interpretString += np.array2string(weights[weights_sort], precision=4, separator=',', suppress_small=True)
interpretString += "\n \t It used {} iterations to converge, and selected {} couple(s) of opposed voters".format(
len(weights_sort), classifier.nb_opposed_voters)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment