update documentation and style issues

This commit is contained in:
jeffinsam
2019-11-03 12:24:01 +05:30
parent ea401b7dd3
commit a34a615af9
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -77,7 +77,9 @@ class LMNN
* LearnDistance() is called with an outputMatrix with correct dimensions,
* then that matrix will be used as the starting point for optimization.
*
* @tparam CallbackTypes Types of Callback functions.
* @param outputMatrix Covariance matrix of Mahalanobis distance.
* @param callbacks Callback Functions.
*/
template<typename... CallbackTypes>
void LearnDistance(arma::mat& outputMatrix, CallbackTypes&&... callbacks);
+2
View File
@@ -73,7 +73,9 @@ class NCA
* dataset.n_rows), that matrix will be used as the starting point for
* optimization.
*
* @tparam CallbackTypes Types of Callback functions.
* @param output_matrix Covariance matrix of Mahalanobis distance.
* @param callbacks Callback Functions.
*/
template<typename... CallbackTypes>
void LearnDistance(arma::mat& outputMatrix, CallbackTypes&&... callbacks);
+1 -1
View File
@@ -272,7 +272,7 @@ BOOST_AUTO_TEST_CASE(NCASGDSimpleDataset)
nca.Optimizer().Shuffle() = true;
arma::mat outputMatrix;
std::stringstream stream;
nca.LearnDistance(outputMatrix, ens::ProgressBar(70, stream));
BOOST_REQUIRE_GT(stream.str().length(), 0);