ddl.utils
.get_support_or_default¶
-
ddl.utils.
get_support_or_default
(density, warn=False)[source]¶ Get the support of the density or return DEFAULT_SUPPORT.
Default support is [-infty, infty].
Parameters: - density : estimator
Density estimator.
- warn : bool, default=False
Whether to warn if there the estimator does not implement
get_support
.
Returns: - support : array-like, shape (2,) or (2, n_features)
The support of the density as returned by
get_support
or just return the default support.