medil.models.GaussianMCM.fit
- GaussianMCM.fit(dataset: numpy.typing.NDArray) GaussianMCM[source]
Fit a GaussianMCM to a dataset.
Estimates the biadjacency matrix via constraint-based structure learning (if not pre-specified), then estimates edge weights and error variances by least-squares optimization of the covariance.
- Parameters:
dataset (ndarray of shape (n_samples, n_features)) – Observed data matrix. Rows are observations, columns are variables.
- Returns:
self
- Return type: