Skip to content

Commit

Permalink
Add CLabels::get_subset_stack()
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Kuchenbecker committed Mar 23, 2017
1 parent 5b126ce commit c58ae3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shogun/labels/Labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ void CLabels::remove_all_subsets()
m_subset_stack->remove_all_subsets();
}

CSubsetStack* CLabels::get_subset_stack()
{
SG_REF(m_subset_stack);
return m_subset_stack;
}

float64_t CLabels::get_value(int32_t idx)
{
ASSERT(m_current_values.vector && idx < get_num_labels())
Expand Down
5 changes: 5 additions & 0 deletions src/shogun/labels/Labels.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ class CLabels : public CSGObject
* Calls subset_changed_post() afterwards */
virtual void remove_all_subsets();

/**
* @return subset stack
*/
virtual CSubsetStack* get_subset_stack();

/** set the confidence value for a particular label
*
* @param value value to set
Expand Down

0 comments on commit c58ae3a

Please sign in to comment.