Utilities
Math Utilities
Graph Utilities
- bamt.utils.GraphUtils.nodes_types(data: DataFrame) Dict[str, str][source]
- Function to define the type of the node
disc - discrete node cont - continuous
- Args:
data: input dataset
- Returns:
dict: output dictionary where ‘key’ - node name and ‘value’ - node type
- bamt.utils.GraphUtils.nodes_signs(nodes_types: dict, data: DataFrame) Dict[str, str][source]
- Function to define sign of the node
neg - if node has negative values pos - if node has only positive values
- Parameters:
data (pd.DataFrame) – input dataset
nodes_types (dict) – dict with nodes_types
- Returns:
output dictionary where ‘key’ - node name and ‘value’ - sign of data
- Return type:
dict