SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
CSegmentLoss Class Reference

Detailed Description

class IntronList

Definition at line 26 of file SegmentLoss.h.

Inheritance diagram for CSegmentLoss:
Inheritance graph
[legend]

Public Member Functions

 CSegmentLoss ()
virtual ~CSegmentLoss ()
float32_t get_segment_loss (int32_t from_pos, int32_t to_pos, int32_t segment_id)
float32_t get_segment_loss_extend (int32_t from_pos, int32_t to_pos, int32_t segment_id)
void set_segment_loss (float64_t *segment_loss, int32_t m, int32_t n)
void set_segment_ids (CArray< int32_t > *segment_ids)
void set_segment_mask (CArray< float64_t > *segment_mask)
void set_num_segment_types (int32_t num_segment_types)
void compute_loss (int32_t *all_pos, int32_t len)
virtual const char * get_name () const
- Public Member Functions inherited from CSGObject
 CSGObject ()
 CSGObject (const CSGObject &orig)
virtual ~CSGObject ()
virtual bool is_generic (EPrimitiveType *generic) const
template<class T >
void set_generic ()
void unset_generic ()
virtual void print_serializable (const char *prefix="")
virtual bool save_serializable (CSerializableFile *file, const char *prefix="")
virtual bool load_serializable (CSerializableFile *file, const char *prefix="")
void set_global_io (SGIO *io)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_global_version ()
SGVector< char * > get_modelsel_names ()
char * get_modsel_param_descr (const char *param_name)
index_t get_modsel_param_index (const char *param_name)

Protected Attributes

CArray2< float32_tm_segment_loss_matrix
CArray3< float64_tm_segment_loss
CArray< int32_t > * m_segment_ids
CArray< float64_t > * m_segment_mask
int32_t m_num_segment_types

Additional Inherited Members

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters
- Protected Member Functions inherited from CSGObject
virtual void load_serializable_pre () throw (ShogunException)
virtual void load_serializable_post () throw (ShogunException)
virtual void save_serializable_pre () throw (ShogunException)
virtual void save_serializable_post () throw (ShogunException)

Constructor & Destructor Documentation

constructor

Definition at line 16 of file SegmentLoss.cpp.

~CSegmentLoss ( )
virtual

Definition at line 25 of file SegmentLoss.cpp.

Member Function Documentation

void compute_loss ( int32_t *  all_pos,
int32_t  len 
)

compute loss

Parameters
all_posall candidate positions
lennumber of positions

Definition at line 50 of file SegmentLoss.cpp.

virtual const char* get_name ( ) const
virtual
Returns
object name

Implements CSGObject.

Definition at line 93 of file SegmentLoss.h.

float32_t get_segment_loss ( int32_t  from_pos,
int32_t  to_pos,
int32_t  segment_id 
)

get segment loss for a given range

Parameters
from_posstart position
to_posend position
segment_idtype of the segment

Definition at line 115 of file SegmentLoss.h.

float32_t get_segment_loss_extend ( int32_t  from_pos,
int32_t  to_pos,
int32_t  segment_id 
)

get segment loss for a given range

Parameters
from_posstart position
to_posend position
segment_idtype of the segment

Definition at line 153 of file SegmentLoss.h.

void set_num_segment_types ( int32_t  num_segment_types)

set num segment types

Parameters
num_segment_typesnum segment types

Definition at line 78 of file SegmentLoss.h.

void set_segment_ids ( CArray< int32_t > *  segment_ids)

set best path segmend ids

Parameters
segment_idssegment ids

Definition at line 40 of file SegmentLoss.cpp.

void set_segment_loss ( float64_t segment_loss,
int32_t  m,
int32_t  n 
)

set best path segment loss

Parameters
segment_losssegment loss
mnumber of segment id1
nnumber of segment id2

Definition at line 29 of file SegmentLoss.cpp.

void set_segment_mask ( CArray< float64_t > *  segment_mask)

mask parts of the sequence such that there is no loss incured there; this is used if there is uncertainty in the label

Parameters
segment_maskmask

Definition at line 45 of file SegmentLoss.cpp.

Member Data Documentation

int32_t m_num_segment_types
protected

number of different segment types (former: max_a_id)

Definition at line 112 of file SegmentLoss.h.

CArray<int32_t>* m_segment_ids
protected

segment IDs

Definition at line 106 of file SegmentLoss.h.

CArray3<float64_t> m_segment_loss
protected

segment loss two square matrices: one for segment based loss and one for length contribution

Definition at line 103 of file SegmentLoss.h.

CArray2<float32_t> m_segment_loss_matrix
protected

segment loss matrix

Definition at line 97 of file SegmentLoss.h.

CArray<float64_t>* m_segment_mask
protected

segment mask

Definition at line 109 of file SegmentLoss.h.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation