Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static interface to dynamic program #857

Closed
wants to merge 3 commits into from

Conversation

behrj
Copy link

@behrj behrj commented Feb 6, 2013

Fixed several memory issues and removed redundant containers for segment loss

root and others added 3 commits February 6, 2013 17:20
…SVM stuff and remove duplicated infrastructure for segment loss
Conflicts:
	src/shogun/structure/DynProg.cpp
	src/shogun/structure/SegmentLoss.h
	src/shogun/ui/SGInterface.cpp
m_segment_ids.resize_array(m_observation_matrix.get_dim2()) ;
m_segment_mask.resize_array(m_observation_matrix.get_dim2()) ;
m_segment_ids.set_const(0) ;
m_segment_mask.set_const(0) ;
}

void CDynProg::best_path_set_segment_loss(SGMatrix<float64_t> segment_loss)
void CDynProg::best_path_set_segment_ids_mask(int32_t* segment_ids, float64_t* segment_mask, int32_t m)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please use two SGVectors instead of the ptrs here?

@sonney2k
Copy link
Member

sonney2k commented Feb 7, 2013

Hi Jonas,
please do the minor changes and send another PR - btw who is root (your first commit...)?

@sonney2k
Copy link
Member

closing until further info is provided.

@sonney2k sonney2k closed this Feb 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants