tumourkit.utils.preprocessing.add_node
- tumourkit.utils.preprocessing.add_node(graph: Dict[str, float], feats: Dict[str, ndarray]) None
Given a dictionary with vectorial features, converts them into one column per dimension and add them into the global dictionary.
- Parameters:
graph (Dict[str, float]) – Dictionary with graph node data.
feats (Dict[str, np.ndarray]) – Dictionary with vectorial features of a graph node.
- Returns:
None. The graph dictionary is modified in place.