MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / kernelGradient

Method kernelGradient

dependency/densecrf3d/src/pairwise.cpp:83–87  ·  view source on GitHub ↗

Compute d/df a^T*K*b

Source from the content-addressed store, hash-verified

81 }
82 // Compute d/df a^T*K*b
83 MatrixXf kernelGradient( const MatrixXf & a, const MatrixXf & b ) const {
84 MatrixXf g = 0*f_;
85 lattice_.gradient( g.data(), a.data(), b.data(), a.rows() );
86 return g;
87 }
88 MatrixXf featureGradient( const MatrixXf & a, const MatrixXf & b ) const {
89 if (ntype_ == NO_NORMALIZATION )
90 return kernelGradient( a, b );

Callers

nothing calls this directly

Calls 3

gradientMethod · 0.45
dataMethod · 0.45
rowsMethod · 0.45

Tested by

no test coverage detected