[mlpack-git] master: Add default template parameters for Train() overloads. (0206156)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Mon Dec 21 15:25:51 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/be72510a765362f86782a8892f0e979aaa4a9f62...51205e0ad285b2cf421546d8876fc63e994f2d73

>---------------------------------------------------------------

commit 0206156c46215b5bcaaf7bf21091a6f5d4a7f2b1
Author: ryan <ryan at ratml.org>
Date:   Mon Dec 21 15:10:01 2015 -0500

    Add default template parameters for Train() overloads.


>---------------------------------------------------------------

0206156c46215b5bcaaf7bf21091a6f5d4a7f2b1
 src/mlpack/methods/cf/cf.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/cf/cf.hpp b/src/mlpack/methods/cf/cf.hpp
index 6b9e85e..4a137d9 100644
--- a/src/mlpack/methods/cf/cf.hpp
+++ b/src/mlpack/methods/cf/cf.hpp
@@ -138,7 +138,7 @@ class CF
    * @param data Input dataset; coordinate list or dense matrix.
    * @param factorizer Instantiated factorizer.
    */
-  template<typename FactorizerType>
+  template<typename FactorizerType = amf::NMFALSFactorizer>
   void Train(const arma::mat& data,
              FactorizerType factorizer = FactorizerType());
 
@@ -150,7 +150,7 @@ class CF
    * @param data Sparse matrix data.
    * @param factorizer Instantiated factorizer.
    */
-  template<typename FactorizerType>
+  template<typename FactorizerType = amf::NMFALSFactorizer>
   void Train(const arma::sp_mat& data,
              FactorizerType factorizer = FactorizerType(),
              const typename boost::disable_if_c<



More information about the mlpack-git mailing list