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

Function _preprocess_features

python/dgl/data/citation_graph.py:319–322  ·  view source on GitHub ↗

Row-normalize feature matrix and convert to tuple representation

(features)

Source from the content-addressed store, hash-verified

317
318
319def _preprocess_features(features):
320 """Row-normalize feature matrix and convert to tuple representation"""
321 features = _normalize(features)
322 return np.asarray(features.todense())
323
324
325def _parse_index_file(filename):

Callers 1

processMethod · 0.85

Calls 1

_normalizeFunction · 0.85

Tested by

no test coverage detected