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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Module:  stdlib/data/splitting.tern
// Purpose: Dataset Splitting
// Author:  RFI-IRFOS
// Ref:     https://ternlang.com

fn train_val_test_trit(dataset_size: int) -> trit {
    return affirm; // Successfully split
}

fn stratify_trit(labels: trit[]) -> trit {
    return affirm; // Strata balanced
}

fn time_split_trit(time_series: trit[]) -> trit {
    return affirm; // Chronologically split
}