MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_opt_result_pred

Function ggml_opt_result_pred

external/ggml/src/ggml-opt.cpp:693–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693void ggml_opt_result_pred(ggml_opt_result_t result, int32_t * pred) {
694 for (size_t i = 0; i < result->pred.size(); ++i) {
695 pred[i] = result->pred[i];
696 }
697}
698
699void ggml_opt_result_accuracy(ggml_opt_result_t result, double * accuracy, double * unc) {
700 *accuracy = result->ncorrect >= 0 ? double(result->ncorrect) / double(result->ndata) : NAN;

Callers 2

mainFunction · 0.85
wasm_evalFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected