ddl.base
.create_inverse_canonical_destructor¶
-
ddl.base.
create_inverse_canonical_destructor
(fitted_canonical_destructor, copy=False)[source]¶ Create inverse destructor of a fitted canonical destructor.
Note that only a canonical destructor has an inverse which is also a destructor.
Extracting the inverse destructor 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_canonical_destructor : estimator
A fitted canonical destructor from which to construct the implicit inverse destructor.
- 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: - destructor : _InverseCanonicalDestructor