mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-04 01:02:39 +02:00
[plotting] gradient plot added
This commit is contained in:
parent
2263df0394
commit
e4e4311121
1 changed files with 6 additions and 2 deletions
|
|
@ -135,8 +135,12 @@ def scatter_label_generator(labels, X, input_1, input_2=None, marker=None):
|
|||
elif type(ul) is np.int64:
|
||||
this_label = 'class %i' % ul
|
||||
else:
|
||||
this_label = unicode(ul)
|
||||
|
||||
try:
|
||||
this_label = unicode(ul)
|
||||
except NameError:
|
||||
#python3
|
||||
this_label = ul
|
||||
|
||||
if marker is not None:
|
||||
m = marker.next()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue