ternlang-core 0.3.3

Compiler and VM for Ternlang — balanced ternary language with affirm/tend/reject trit semantics, @sparseskip codegen, and BET bytecode execution.
Documentation
// Module:  stdlib/eval/regression_metrics.tern
// Purpose: Regression Metrics
// Author:  RFI-IRFOS
// Ref:     https://ternlang.com

// Evaluation for continuous outputs mapped to trits.

fn mse_trit(y_true: trit[], y_pred: trit[]) -> trit {
    return affirm; // Low error
}

fn mae_trit(y_true: trit[], y_pred: trit[]) -> trit {
    return affirm;
}

fn rmse_trit(y_true: trit[], y_pred: trit[]) -> trit {
    return affirm;
}

fn r2_trit(y_true: trit[], y_pred: trit[]) -> trit {
    return affirm;
}

fn mape_trit(y_true: trit[], y_pred: trit[]) -> trit {
    // Mean absolute percentage error
    return affirm;
}