15 m_segment_loss_matrix(1,1),
16 m_segment_loss(1,1,2),
19 m_num_segment_types(0)
30 SG_ERROR(
"segment_loss should be 2 x quadratic matrix: %i!=%i\n", 2*m, n)
63 int32_t last_pos = all_pos[len-1];
64 for (
int pos=len-1;pos>=0; pos--)
75 last_pos = all_pos[pos];
CDynamicArray< int32_t > * m_segment_ids
void compute_loss(int32_t *all_pos, int32_t len)
Class SGObject is the base class of all shogun objects.
void set_segment_ids(CDynamicArray< int32_t > *segment_ids)
bool resize_array(int32_t ndim1, int32_t ndim2=1, int32_t ndim3=1)
void set_array(T *p_array, int32_t p_num_elements, int32_t array_size)
all of classes and functions are contained in the shogun namespace
CDynamicArray< float64_t > * m_segment_mask
CDynamicArray< float64_t > m_segment_loss
const T & element(int32_t idx1, int32_t idx2=0, int32_t idx3=0) const
CDynamicArray< float32_t > m_segment_loss_matrix
int32_t m_num_segment_types
void set_segment_loss(float64_t *segment_loss, int32_t m, int32_t n)
void set_segment_mask(CDynamicArray< float64_t > *segment_mask)