MCPcopy Index your code
hub / github.com/dmlc/dgl / create

Method create

python/dgl/frame.py:473–478  ·  view source on GitHub ↗

Create a new column using the given data.

(data)

Source from the content-addressed store, hash-verified

471
472 @staticmethod
473 def create(data):
474 """Create a new column using the given data."""
475 if isinstance(data, Column):
476 return data.clone()
477 else:
478 return Column(data)
479
480 def __repr__(self):
481 return repr(self.data)

Callers 3

__init__Method · 0.45
update_columnMethod · 0.45
trainFunction · 0.45

Calls 2

ColumnClass · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected