Module Index : Topics : Keywords
 
 
structure_learning.scores.bd
index
/Users/165421/Documents/code/structure_learning/src/structure_learning/scores/bd.py

 
Modules
       
numpy
pandas

 
Classes
       
structure_learning.scores.score.Score(abc.ABC)
BDScore

 
class BDScore(structure_learning.scores.score.Score)
    BDScore(data: pandas.core.frame.DataFrame, alpha: float = 1.0)
 
BD Score
 
 
Method resolution order:
BDScore
structure_learning.scores.score.Score
abc.ABC
builtins.object

Methods defined here:
__init__(self, data: pandas.core.frame.DataFrame, alpha: float = 1.0)
Initialise BDScore instance.
 
Parameters:
    data (pandas.DataFrame): data
    graph (numpy.ndarray | networkx.DiGraph): graph
compute(self, graph: structure_learning.data_structures.graph.Graph)
Compute BD score.
 
Parameter:
    graph (Graph):      Graph object
Returns:
    (float): BD score

Data and other attributes defined here:
__abstractmethods__ = frozenset({'compute_node_with_edges'})

Methods inherited from structure_learning.scores.score.Score:
compute_node(self, graph: structure_learning.data_structures.graph.Graph, node: str)
Implements a score function (e.g. BGe, Marginal Likelihood, etc) for a specific node
compute_node_with_edges(self, node: str, parents: list = None, node_index_map: dict = None)
Implements a score function (e.g. BGe, Marginal Likelihood, etc) for a specific node and parents

Readonly properties inherited from structure_learning.scores.score.Score:
node_labels

Data descriptors inherited from structure_learning.scores.score.Score:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object
data

 
Data
        gamma = <scipy.stats._continuous_distns.gamma_gen object>