*@brief compute loglikelihood and gradient using forward-backward algorithm */
| 699 | *@brief compute loglikelihood and gradient using forward-backward algorithm |
| 700 | */ |
| 701 | void 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 | |
| 707 | void compute_logli_gradient(LinCrfLBFGSTransitionState<MutableArrayHandle<double> >& state, |
| 708 | MappedColumnVector& sparse_r, |
no outgoing calls
no test coverage detected