Skip to main content

transform_humanization_gate

Function transform_humanization_gate 

Source
pub fn transform_humanization_gate(
    df: DataFrame,
    threshold: f64,
) -> Result<DataFrame>
Expand description

Stage 2: ∂(¬σ⁻¹) — Humanization Gate

Filters rows where prob_generated exceeds threshold, retaining only text that reads as sufficiently human. threshold is clamped to [0.0, 1.0].

When a real antitransformer scorer is integrated, it will feed the prob_generated column that this gate consumes.