mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 19:42:39 +02:00
logic edits for copy
This commit is contained in:
parent
441a9f524d
commit
a98334e009
5 changed files with 144 additions and 138 deletions
|
|
@ -247,7 +247,8 @@ class Param(OptimizationHandlable, ObservableArray, Gradcheckable):
|
|||
#===========================================================================
|
||||
@property
|
||||
def _description_str(self):
|
||||
if self.size <= 1: return ["%f" % self]
|
||||
if self.size <= 1:
|
||||
return [str(numpy.take(self, 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