MCPcopy Create free account
hub / github.com/apache/madlib / validate_label

Function validate_label

src/modules/crf/linear_crf.cpp:701–705  ·  view source on GitHub ↗

*@brief compute loglikelihood and gradient using forward-backward algorithm */

Source from the content-addressed store, hash-verified

699 *@brief compute loglikelihood and gradient using forward-backward algorithm
700 */
701void validate_label(int label_id, int num_labels)
702{
703 if ((label_id < 0) || (label_id >= num_labels))
704 throw std::runtime_error("Out of bound label ids found in feature table.");
705}
706
707void compute_logli_gradient(LinCrfLBFGSTransitionState<MutableArrayHandle<double> >& state,
708 MappedColumnVector& sparse_r,

Callers 1

compute_logli_gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected