pgmpy.example_models.list_models#
- pgmpy.example_models.list_models(**filter_tags) list[str][source]#
Lists all available example models.
The models can be filtered based on their tags by providing keyword arguments. The available tags are: - name: str - n_nodes: No. of nodes in the model. - n_edges: No. of edges in the model. - is_parameterized: Whether it is just the network structure or also has parameters (CPDs) defined. - is_discrete: Whether the model has only discrete variables / parameterization. - is_continuous: Whether the model has only continuous variables / parameterization. - is_hybrid: Whether the model has both discrete and continuous variables / parameterization.
- Returns:
- list
List of names of all available example models.
Examples
>>> from pgmpy.example_models import list_models >>> list_models() ['bnlearn/alarm', 'bnlearn/arth150', ..... ] >>> list_models(is_discrete=True) ['bnlearn/alarm', 'bnlearn/asia', 'bnlearn/cancer', ..... ] >>> list_models(is_parameterized=False) ['dagitty/acid_1996', ...., ]