Skip to main content

try_cross_entropy_rate_backend

Function try_cross_entropy_rate_backend 

Source
pub fn try_cross_entropy_rate_backend(
    test_data: &[u8],
    train_data: &[u8],
    backend: &CompiledRateBackend,
) -> InfotheoryResult<f64>
Expand description

Fallible cross-entropy H_{train}(test) — score test_data under a model trained on train_data.