Searched refs:num_examples (Results 1 – 2 of 2) sorted by relevance
64 int MulticlassPA::PickAnExample(int num_examples) { in PickAnExample() argument65 return static_cast<int>(RandFloat() * num_examples); in PickAnExample()173 int num_examples = data.size(); in Train() local176 int index = PickAnExample(num_examples); in Train()186 int num_examples = data.size(); in SparseTrain() local189 int index = PickAnExample(num_examples); in SparseTrain()225 int num_examples = data.size(); in Test() local227 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 …]
45 int PickAnExample(int num_examples);