MCPcopy
hub / github.com/dmlc/dgl / get_initializer

Method get_initializer

python/dgl/frame.py:623–636  ·  view source on GitHub ↗

Get the initializer for empty values for the given column. Parameters ---------- column : str The column Returns ------- callable The initializer

(self, column=None)

Source from the content-addressed store, hash-verified

621 self._default_initializer = zero_initializer
622
623 def get_initializer(self, column=None):
624 """Get the initializer for empty values for the given column.
625
626 Parameters
627 ----------
628 column : str
629 The column
630
631 Returns
632 -------
633 callable
634 The initializer
635 """
636 return self._initializers.get(column, self._default_initializer)
637
638 def set_initializer(self, initializer, column=None):
639 """Set the initializer for empty values, for a given column or all future

Callers 3

add_columnMethod · 0.95
add_rowsMethod · 0.95
_appendMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected