mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
Convert print to function for Python 3 compatibility. This breaks compatibility for versions of Python < 2.6
This commit is contained in:
parent
2a43324428
commit
4512964f09
2 changed files with 11 additions and 10 deletions
|
|
@ -30,7 +30,7 @@ class OneVsAllSparseClassification(object):
|
|||
|
||||
self.results = {}
|
||||
for yj in labels:
|
||||
print 'Class %s vs all' %yj
|
||||
print('Class %s vs all' %yj)
|
||||
Ynew = Y.copy()
|
||||
Ynew[Y.flatten()!=yj] = 0
|
||||
Ynew[Y.flatten()==yj] = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue