mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-30 23:36:23 +02:00
printing for older numpy versions
This commit is contained in:
parent
0a82427e29
commit
cde8722e1b
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ class Param(OptimizationHandlable, ObservableArray):
|
|||
@property
|
||||
def _description_str(self):
|
||||
if self.size <= 1:
|
||||
return [str(numpy.take(self, 0))]
|
||||
return [str(self.view(numpy.ndarray)[0])]
|
||||
else: return [str(self.shape)]
|
||||
def parameter_names(self, add_self=False, adjust_for_printing=False):
|
||||
if adjust_for_printing:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue