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

Method gradient

dependency/densecrf3d/src/pairwise.cpp:193–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 compatibility_->setParameters( v );
192}
193VectorXf PairwisePotential::gradient( const MatrixXf & b, const MatrixXf & Q ) const {
194 MatrixXf filtered_Q = 0*Q;
195 // You could reuse the filtered_b from applyTranspose
196 kernel_->apply( filtered_Q, Q );
197 return compatibility_->gradient(b,filtered_Q);
198}
199VectorXf PairwisePotential::kernelParameters() const {
200 return kernel_->parameters();
201}

Callers 2

kernelGradientMethod · 0.45
kernelGradientMethod · 0.45

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected