Add callback test for lmnn
This commit is contained in:
@@ -357,7 +357,10 @@ BOOST_AUTO_TEST_CASE(LMNNSGDSimpleDatasetTest)
|
||||
LMNN<> lmnn(dataset, labels, 1);
|
||||
|
||||
arma::mat outputMatrix;
|
||||
lmnn.LearnDistance(outputMatrix);
|
||||
std::stringstream stream;
|
||||
|
||||
lmnn.LearnDistance(outputMatrix, ens::ProgressBar(70, stream));
|
||||
BOOST_REQUIRE_GT(stream.str().length(), 0);
|
||||
|
||||
// Ensure that the objective function is better now.
|
||||
LMNNFunction<> lmnnfn(dataset, labels, 1, 0.6, 1);
|
||||
|
||||
Reference in New Issue
Block a user