[mlpack] 25/58: Added Reg SVD to CF executable.

Barak A. Pearlmutter barak+git at cs.nuim.ie
Tue Sep 9 13:19:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit e707a311102fdbd07dff43f7cf7904142dd10810
Author: siddharth.950 <siddharth.950 at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue Aug 19 15:45:36 2014 +0000

    Added Reg SVD to CF executable.
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17075 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/methods/cf/cf_main.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/methods/cf/cf_main.cpp b/src/mlpack/methods/cf/cf_main.cpp
index 7998c79..95c3416 100644
--- a/src/mlpack/methods/cf/cf_main.cpp
+++ b/src/mlpack/methods/cf/cf_main.cpp
@@ -8,11 +8,13 @@
 #include <mlpack/core.hpp>
 
 #include <mlpack/methods/amf/amf.hpp>
+#include <mlpack/methods/regularized_svd/regularized_svd.hpp>
 #include "cf.hpp"
 
 using namespace mlpack;
 using namespace mlpack::cf;
 using namespace mlpack::amf;
+using namespace mlpack::svd;
 using namespace std;
 
 // Document program.
@@ -116,7 +118,9 @@ int main(int argc, char** argv)
   else if(algo == "SVDIncompleteIncremental") 
     CR(SparseSVDIncompleteIncrementalFactorizer());
   else if(algo == "SVDCompleteIncremental")
-    CR(SparseSVDCompleteIncrementalFactorizer());                 
+    CR(SparseSVDCompleteIncrementalFactorizer());
+  else if(algo == "RegSVD")
+    CR(RegularizedSVD<>());
 
   const string outputFile = CLI::GetParam<string>("output_file");
   data::Save(outputFile, recommendations);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list