mirror of https://github.com/davisking/dlib.git
Minor change to made code work in python 2.6
This commit is contained in:
parent
225e1c5ab0
commit
a6c9767e6b
|
@ -44,7 +44,7 @@ def main():
|
|||
# Note that the correct label is predicted for each sample.
|
||||
print weights
|
||||
for i in range(len(samples)):
|
||||
print "predicted label for sample[{}]: {}".format(i, predict_label(weights, samples[i]))
|
||||
print "predicted label for sample[{0}]: {1}".format(i, predict_label(weights, samples[i]))
|
||||
|
||||
def predict_label(weights, sample):
|
||||
"""Given the 9-dimensional weight vector which defines a 3 class classifier, predict the
|
||||
|
|
Loading…
Reference in New Issue