StructureEstimator#

class pgmpy.estimators.StructureEstimator(data=None, independencies=None, **kwargs)[source]#

Bases: BaseEstimator

Base class for structure estimators in pgmpy.

Parameters:
data: pandas DataFrame object

dataframe object where each column represents one variable. (If some values in the data are missing the data cells should be set to numpy.nan. Note that pandas converts each column containing numpy.nan`s to dtype `float.)

state_names: dict (optional)

A dict indicating, for each variable, the discrete set of states (or values) that the variable can take. If unspecified, the observed values in the data set are taken to be the only possible states.

estimate()[source]#