ddl.base.ScoreMixin

class ddl.base.ScoreMixin[source]

Bases: object

Mixin for score that returns mean of score_samples.

Methods

score(self, X[, y]) Return the mean log likelihood (or log(det(Jacobian))).
__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

score(self, X, y=None)[source]

Return the mean log likelihood (or log(det(Jacobian))).

Parameters:
X : array-like, shape (n_samples, n_features)

New data, where n_samples is the number of samples and n_features is the number of features.

y : None, default=None

Not used but kept for compatibility.

Returns:
log_likelihood : float

Mean log likelihood data points in X.