gfn.gym.helpers.bayesian_structure.factories ============================================ .. py:module:: gfn.gym.helpers.bayesian_structure.factories Functions --------- .. autoapisummary:: gfn.gym.helpers.bayesian_structure.factories.get_data gfn.gym.helpers.bayesian_structure.factories.get_prior gfn.gym.helpers.bayesian_structure.factories.get_scorer Module Contents --------------- .. py:function:: get_data(name, num_nodes, num_edges, num_samples, node_names = None, rng = None) Generate Bayesian linear Gaussian data. :param name: Data generation method type. :type name: str :param num_nodes: Number of variables in the graph. :type num_nodes: int :param num_edges: Number of edges to sample in the graph. :type num_edges: int :param num_samples: Number of samples to generate. :type num_samples: int :param node_names: Optional list of node names. :type node_names: Optional[List[str]] :param rng: Optional random generator instance. :type rng: Optional[np.random.Generator] :returns: (graph, data, score) where 'score' indicates the scoring method used. :rtype: tuple .. py:function:: get_prior(name) .. py:function:: get_scorer(graph_name, prior_name, num_nodes, num_edges, num_samples, node_names = None, rng = None)