[mlpack] 30/44: Add license.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Feb 15 19:35:54 UTC 2016


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

bap pushed a commit to tag mlpack-1.0.11
in repository mlpack.

commit 338123d4d67ef2b44b604536aa7caf4334d4c1c3
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Dec 8 00:58:33 2014 +0000

    Add license.
---
 src/mlpack/methods/amf/init_rules/average_init.hpp | 25 +++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

diff --git a/src/mlpack/methods/amf/init_rules/average_init.hpp b/src/mlpack/methods/amf/init_rules/average_init.hpp
index cf01ce4..8f4d229 100644
--- a/src/mlpack/methods/amf/init_rules/average_init.hpp
+++ b/src/mlpack/methods/amf/init_rules/average_init.hpp
@@ -3,6 +3,21 @@
  * @author Sumedh Ghaisas
  *
  * Intialization rule for Alternating Matrix Factorization.
+ *
+ * This file is part of MLPACK 1.0.11.
+ *
+ * MLPACK is free software: you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation, either version 3 of the License, or (at your option) any
+ * later version.
+ *
+ * MLPACK is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
+ * details (LICENSE.txt).
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * MLPACK.  If not, see <http://www.gnu.org/licenses/>.
  */
 #ifndef __MLPACK_METHODS_AMF_AVERAGE_INIT_HPP
 #define __MLPACK_METHODS_AMF_AVERAGE_INIT_HPP
@@ -13,12 +28,12 @@ namespace mlpack {
 namespace amf {
 
 /**
- * This initialization rule initializes matrix W and H to root of average of V 
+ * This initialization rule initializes matrix W and H to root of average of V
  * with uniform noise. Uniform noise is generated by Armadillo's 'randu' function.
  * To have a better effect lower bound of the matrix is subtracted from average
- * before dividing it by the factorization rank. This computed value is added 
+ * before dividing it by the factorization rank. This computed value is added
  * with the random noise.
- */ 
+ */
 class AverageInitialization
 {
  public:
@@ -33,7 +48,7 @@ class AverageInitialization
   {
     size_t n = V.n_rows;
     size_t m = V.n_cols;
-  
+
     double V_avg = 0;
     size_t count = 0;
     double min = DBL_MAX;
@@ -51,7 +66,7 @@ class AverageInitialization
     // Intialize to random values.
     W.randu(n, r);
     H.randu(r, m);
-    
+
     W = W + V_avg;
     H = H + V_avg;
   }

-- 
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