SHOGUN
v1.1.0
|
class IntronList
Definition at line 26 of file SegmentLoss.h.
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 |
![]() | |
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) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_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_t > | m_segment_loss_matrix |
CArray3< float64_t > | m_segment_loss |
CArray< int32_t > * | m_segment_ids |
CArray< float64_t > * | m_segment_mask |
int32_t | m_num_segment_types |
Additional Inherited Members | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
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) |
CSegmentLoss | ( | ) |
constructor
Definition at line 16 of file SegmentLoss.cpp.
|
virtual |
Definition at line 25 of file SegmentLoss.cpp.
void compute_loss | ( | int32_t * | all_pos, |
int32_t | len | ||
) |
compute loss
all_pos | all candidate positions |
len | number of positions |
Definition at line 50 of file SegmentLoss.cpp.
|
virtual |
float32_t get_segment_loss | ( | int32_t | from_pos, |
int32_t | to_pos, | ||
int32_t | segment_id | ||
) |
get segment loss for a given range
from_pos | start position |
to_pos | end position |
segment_id | type 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
from_pos | start position |
to_pos | end position |
segment_id | type 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
num_segment_types | num segment types |
Definition at line 78 of file SegmentLoss.h.
void set_segment_ids | ( | CArray< int32_t > * | segment_ids | ) |
set best path segmend ids
segment_ids | segment 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
segment_loss | segment loss |
m | number of segment id1 |
n | number of segment id2 |
Definition at line 29 of file SegmentLoss.cpp.
mask parts of the sequence such that there is no loss incured there; this is used if there is uncertainty in the label
segment_mask | mask |
Definition at line 45 of file SegmentLoss.cpp.
|
protected |
number of different segment types (former: max_a_id)
Definition at line 112 of file SegmentLoss.h.
|
protected |
segment IDs
Definition at line 106 of file SegmentLoss.h.
segment loss two square matrices: one for segment based loss and one for length contribution
Definition at line 103 of file SegmentLoss.h.
segment loss matrix
Definition at line 97 of file SegmentLoss.h.
segment mask
Definition at line 109 of file SegmentLoss.h.