intricate 0.7.0

A GPU accelerated library that creates/trains/runs machine learning prediction models in safe Rust code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
kernel void compute_accuracy_per_output(
    global float *outputs,
    global float *expected_outputs,

    global float *accuracies,

    int count
) {
    int index = get_global_id(0);

    if (index >= count) {
        return;
    }

    float expected_output = (float)expected_outputs[index];
    float output = (float)outputs[index];
    accuracies[index] = 1.0f - fabs(output - expected_output) / fmax(expected_output, output);
}