Feature builders
Bases: BaseEstimator, TransformerMixin
FeatureUnion-style composition of named transformers.
Each child is fit on the same (X, y) and outputs are concatenated column-wise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transformers
|
list[tuple[str, TransformerMixin]] | None
|
List of |
None
|
Bases: BaseEstimator, TransformerMixin
Estimate log-density log q(x | training data).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
DensityMethod
|
|
'mahalanobis'
|
k
|
int
|
Neighbors for |
5
|
bandwidth
|
float
|
Bandwidth for |
1.0
|
var_floor
|
float
|
Minimum variance per dimension for |
1e-06
|
eps
|
float
|
Stabilizer for |
1e-08
|
Bases: BaseEstimator, TransformerMixin
Estimate log predictive variance log V(x).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
VarianceMethod
|
|
'ensemble'
|
estimator
|
Any
|
Base model for |
None
|
n_estimators
|
int
|
Number of bootstrap replicas. |
10
|
random_state
|
int | None
|
Seed for bootstrap subsampling. |
None
|
eps
|
float
|
Added inside |
1e-08
|
Bases: BaseEstimator, TransformerMixin
k-th nearest-neighbor distance from x to the training manifold.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
k
|
int
|
Which neighbor distance to return (1 = nearest). Useful as a covariate-shift
proxy complementary to |
5
|
Bases: BaseEstimator, TransformerMixin
Binary indicator: 1 if x was in the training set, else 0.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atol
|
float
|
Tolerance for floating-point duplicate detection (exact match when both 0). |
0.0
|
rtol
|
float
|
Tolerance for floating-point duplicate detection (exact match when both 0). |
0.0
|
Bases: BaseEstimator, TransformerMixin
Local average of training residual magnitudes |y - f(x)|.
At fit(X, y) the base estimator is cloned and fit, and absolute residuals
are stored. At transform(X) (inference, no y), returns the mean residual
magnitude among k nearest training neighbors — a local error prior.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
estimator
|
Any
|
Base model |
required |
k
|
int
|
Neighbors for smoothing. |
5
|