ash_model.measures.hyperedge_aggregate_node_profile

ash_model.measures.hyperedge_aggregate_node_profile(h, hyperedge_id, tid, attr_name=None, categorical_aggr='mode', numerical_aggr='mean')[source]

Returns an aggregated profile of the nodes in a hyperedge. The categorical_aggr parameter specifies the aggregation method for categorical attributes. The numerical_aggr parameter specifies the aggregation method for numerical attributes.

Parameters:
  • h (ASH) – The ASH object

  • hyperedge_id (str) – The hyperedge id

  • tid (int) – The temporal id

  • attr_name (str | None) – The attribute name to aggregate. If None, all attributes are aggregated

  • categorical_aggr (str) – The aggregation method for categorical attributes. Options: “mode”, “first”, “last”

  • numerical_aggr (str) – The aggregation method for numerical attributes. Options: “mean”, “median”, “first”, “last”

Returns:

The aggregated profile of the hyperedge nodes

Return type:

NProfile