HyperEdgeSet.from_dict¶
- classmethod HyperEdgeSet.from_dict(*, port_dict=None, feature_dict=None)[source]¶
Build a HyperEdgeSet from raw dicts of ports and features.
Both inputs may be None, in which case the corresponding properties are set to None and only non_fictitious of length zero is created.
- Parameters:
port_dict (dict[str, Any] | None) – Dictionary of ports, each key corresponds to a port name and to the values are the corresponding addresses for each object stored into an array.
feature_dict (dict[str, Any] | None) – Dictionary of features, each key corresponds to a feature name and to the values are the corresponding features for each object stored into an array.
- Returns:
A properly structured HyperEdgeSet instance.
- Raises:
ValueError – If ports or features contain NaNs or if shapes mismatch.
- Return type: