Returns the index of the current sample in sparse charset space, so in a 2-class problem between x and y, the returned indices will all be x or y, where x and y may be unichar_ids (no shape_table_) or shape_ids with a shape_table_.
| 148 | // x or y, where x and y may be unichar_ids (no shape_table_) or shape_ids |
| 149 | // with a shape_table_. |
| 150 | int SampleIterator::GetSparseClassID() const { |
| 151 | return shape_table_ != NULL ? shape_index_ : GetSample().class_id(); |
| 152 | } |
| 153 | |
| 154 | // Moves on to the next indexable sample. If the end is reached, leaves |
| 155 | // the state such that AtEnd() is true. |