VineForestDensity.score_samples
- VineForestDensity.score_samples(X)
Log of the ensemble-averaged density at each sample.
Returns \(\log \hat f_{\text{ens}}(x)\) where the ensemble density is the simple average over surviving base estimators \(\hat f_{\text{ens}}(x) = M^{-1} \sum_{m=1}^M \hat f_m(x)\).
- Parameters:
- Xndarray, shape (n_samples, n_features), dtype float, or DataFrame
Test samples.
- Returns:
- ndarray, shape (n_samples,), dtype float
Log-density values.