14 using namespace shogun;
18 m_segment_loss_matrix(1,1),
19 m_segment_loss(1,1,2),
22 m_num_segment_types(0)
33 SG_ERROR(
"segment_loss should be 2 x quadratic matrix: %i!=%i\n", 2*m, n) ;
66 int32_t last_pos = all_pos[len-1];
67 for (
int pos=len-1;pos>=0; pos--)
78 last_pos = all_pos[pos];