gam 0.2.3

Generalized penalized likelihood engine
1
2
3
4
5
6
7
8
9
10
11
12
use crate::terms::analytic_penalties::NestedPrefixPenalty;

use super::PenaltyManifest;

impl PenaltyManifest for NestedPrefixPenalty {
    const KIND_TAG: &'static str = "nested_prefix";
    const PYTHON_WRAPPER: &'static str = "NestedPrefixPenalty";
    /// The penalty is purely diagonal in the latent target (per-coordinate
    /// L¹ surrogate with per-axis cumulative shell weight), so it slots into
    /// the row-block-diagonal Newton path.
    const ROW_BLOCK_DIAGONAL: bool = true;
}