mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 03:52:39 +02:00
pydot graphing half done
This commit is contained in:
parent
82e3252012
commit
16e2fbd6cb
2 changed files with 29 additions and 0 deletions
|
|
@ -60,6 +60,15 @@ class Param(Constrainable, ObservableArray, Gradcheckable):
|
|||
def __init__(self, name, input_array, default_constraint=None, *a, **kw):
|
||||
super(Param, self).__init__(name=name, default_constraint=default_constraint, *a, **kw)
|
||||
|
||||
def build_pydot(self,G):
|
||||
import pydot
|
||||
node = pydot.Node(id(self), shape='record', label=self.name)
|
||||
G.add_node(node)
|
||||
for o in self._observer_callables_.keys():
|
||||
print o, self.hirarchy_name()
|
||||
|
||||
return node
|
||||
|
||||
def __array_finalize__(self, obj):
|
||||
# see InfoArray.__array_finalize__ for comments
|
||||
if obj is None: return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue