update documentation and style issues
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user