openasce.discovery.search_discovery package¶
Submodules¶
openasce.discovery.search_discovery.search_discovery module¶
- class openasce.discovery.search_discovery.search_discovery.CausalSearchDiscovery[source]¶
Bases:
DiscoveryExecute the causal inference by search method
Attributes:
Constructor
Arguments:
Returns:
- fit(*, X: Union[ndarray, Callable], **kwargs) None[source]¶
Feed the sample data
- Parameters
X (num of samples, features or callable returning np.ndarray) – samples
Returns:
- get_result() Tuple[CausalGraph, float][source]¶
Get the causal graph sample data
- Parameters
X (num of samples, features or callable returning np.ndarray) – samples
Returns:
openasce.discovery.search_discovery.search_strategy module¶
- class openasce.discovery.search_discovery.search_strategy.Strategy(node_names: List[str], **kwargs)[source]¶
Bases:
objectGeneral class to implement different structure learning methods
- Attributes
edge_gain (float): the minimal gain of adding edge. target_name (str): the name of the node that will be label.
Contructor
- Parameters
node_names – the name of nodes
- __init__(node_names: List[str], **kwargs)[source]¶
Contructor
- Parameters
node_names – the name of nodes