ddl.base
.create_implicit_density¶
-
ddl.base.
create_implicit_density
(fitted_destructor, copy=False)[source]¶ Create the implicit density associated with a fitted destructor.
Extracting the implicit density associated with an already-fitted destructor must be handled carefully to enable proper
sklearn
cloning andcheck_destructor
tests that require then_features_
attribute to be available. Thus we have implemented this method instead of explicitly exposing an implicit density class.Parameters: - fitted_destructor : estimator
A fitted destructor estimator from which to construct the implicit density.
- copy : bool
If
copy=True
, the new destructor will create a deep copy of the fitted destructor rather than just copying a reference to it.
Returns: - density : _ImplicitDensity