Home
last modified time | relevance | path

Searched refs:num_examples (Results 1 – 2 of 2) sorted by relevance

/frameworks/ml/bordeaux/learning/multiclass_pa/native/
Dmulticlass_pa.cpp64 int MulticlassPA::PickAnExample(int num_examples) { in PickAnExample() argument
65 return static_cast<int>(RandFloat() * num_examples); in PickAnExample()
173 int num_examples = data.size(); in Train() local
176 int index = PickAnExample(num_examples); in Train()
186 int num_examples = data.size(); in SparseTrain() local
189 int index = PickAnExample(num_examples); in SparseTrain()
225 int num_examples = data.size(); in Test() local
227 for (int t = 0; t < num_examples; ++t) { in Test()
233 return total_error / num_examples; in Test()
238 int num_examples = data.size(); in SparseTest() local
[all …]
Dmulticlass_pa.h45 int PickAnExample(int num_examples);