[mlpack] 05/06: spelling error patch

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sun Aug 17 08:21:49 UTC 2014


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

bap pushed a commit to branch master
in repository mlpack.

commit ace3b98ae077c9535ecff25d2ea085a17ed493fb
Author: Barak A. Pearlmutter <barak+git at cs.nuim.ie>
Date:   Sun Aug 17 09:07:13 2014 +0200

    spelling error patch
---
 debian/patches/series         |   1 +
 debian/patches/spelling.patch | 116 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 117 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 4b2b1fa..5cec5c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 build-Doxygen.patch
+spelling.patch
diff --git a/debian/patches/spelling.patch b/debian/patches/spelling.patch
new file mode 100644
index 0000000..dd52410
--- /dev/null
+++ b/debian/patches/spelling.patch
@@ -0,0 +1,116 @@
+From: "Barak A. Pearlmutter" <barak+git at cs.nuim.ie>
+Date: Sun, 17 Aug 2014 09:03:13 +0200
+Subject: spelling
+
+---
+ src/mlpack/core/kernels/example_kernel.hpp                            | 2 +-
+ src/mlpack/core/tree/cosine_tree/cosine_tree.cpp                      | 2 +-
+ src/mlpack/methods/amf/init_rules/random_acol_init.hpp                | 2 +-
+ src/mlpack/methods/amf/init_rules/random_init.hpp                     | 4 ++--
+ src/mlpack/methods/lsh/lsh_search.hpp                                 | 4 ++--
+ src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp | 2 +-
+ src/mlpack/tests/cosine_tree_test.cpp                                 | 2 +-
+ 7 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/src/mlpack/core/kernels/example_kernel.hpp b/src/mlpack/core/kernels/example_kernel.hpp
+index 96e1a96..750f5ed 100644
+--- a/src/mlpack/core/kernels/example_kernel.hpp
++++ b/src/mlpack/core/kernels/example_kernel.hpp
+@@ -119,7 +119,7 @@ class ExampleKernel
+   /**
+    * Returns a string for the kernel object; in this case, with only the memory
+    * address for the kernel. If your kernel has any members, your ToString()
+-   * method should include those as neccessary as well.
++   * method should include those as necessary as well.
+    **/
+   std::string ToString() const
+   {
+diff --git a/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp b/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp
+index 8324504..b0f9f97 100644
+--- a/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp
++++ b/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp
+@@ -331,7 +331,7 @@ void CosineTree::ColumnSamplesLS(std::vector<size_t>& sampledIndices,
+     cDistribution(i+1) = cDistribution(i) + l2NormsSquared(i) / frobNormSquared;
+   }
+   
+-  // Intialize sizes of the 'sampledIndices' and 'probabilities' vectors.
++  // Initialize sizes of the 'sampledIndices' and 'probabilities' vectors.
+   sampledIndices.resize(numSamples);
+   probabilities.zeros(numSamples);
+   
+diff --git a/src/mlpack/methods/amf/init_rules/random_acol_init.hpp b/src/mlpack/methods/amf/init_rules/random_acol_init.hpp
+index db2780b..089f1ea 100644
+--- a/src/mlpack/methods/amf/init_rules/random_acol_init.hpp
++++ b/src/mlpack/methods/amf/init_rules/random_acol_init.hpp
+@@ -2,7 +2,7 @@
+  * @file random_acol_init.hpp
+  * @author Mohan Rajendran
+  *
+- * Intialization rule for Non-Negative Matrix Factorization. This simple
++ * Initialization rule for Non-Negative Matrix Factorization. This simple
+  * initialization is performed by the random Acol initialization introduced in
+  * the paper 'Algorithms, Initializations and Convergence' by Langville et al.
+  * This method sets each of the columns of W by averaging p randomly chosen
+diff --git a/src/mlpack/methods/amf/init_rules/random_init.hpp b/src/mlpack/methods/amf/init_rules/random_init.hpp
+index 91b47c5..6b2744c 100644
+--- a/src/mlpack/methods/amf/init_rules/random_init.hpp
++++ b/src/mlpack/methods/amf/init_rules/random_init.hpp
+@@ -2,7 +2,7 @@
+  * @file random_init.hpp
+  * @author Mohan Rajendran
+  *
+- * Intialization rule for Non-Negative Matrix Factorization (NMF). This simple
++ * Initialization rule for Non-Negative Matrix Factorization (NMF). This simple
+  * initialization is performed by assigning a random matrix to W and H.
+  *
+  * This file is part of MLPACK 1.0.9.
+@@ -44,7 +44,7 @@ class RandomInitialization
+     size_t n = V.n_rows;
+     size_t m = V.n_cols;
+ 
+-    // Intialize to random values.
++    // Initialize to random values.
+     W.randu(n, r);
+     H.randu(r, m);
+   }
+diff --git a/src/mlpack/methods/lsh/lsh_search.hpp b/src/mlpack/methods/lsh/lsh_search.hpp
+index db0ec6a..874907d 100644
+--- a/src/mlpack/methods/lsh/lsh_search.hpp
++++ b/src/mlpack/methods/lsh/lsh_search.hpp
+@@ -152,8 +152,8 @@ class LSHSearch
+    * standard hash.
+    *
+    * This function does not have any parameters and relies on parameters which
+-   * are private members of this class, intialized during the class
+-   * intialization.
++   * are private members of this class, initialized during the class
++   * initialization.
+    */
+   void BuildHash();
+ 
+diff --git a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp
+index c6f1cb9..e909dc3 100644
+--- a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp
++++ b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp
+@@ -157,7 +157,7 @@ class SparseAutoencoderFunction
+  private:
+   //! The matrix of data points.
+   const arma::mat& data;
+-  //! Intial parameter vector.
++  //! Initial parameter vector.
+   arma::mat initialPoint;
+   //! Size of the visible layer.
+   size_t visibleSize;
+diff --git a/src/mlpack/tests/cosine_tree_test.cpp b/src/mlpack/tests/cosine_tree_test.cpp
+index 52ed159..2baac4d 100644
+--- a/src/mlpack/tests/cosine_tree_test.cpp
++++ b/src/mlpack/tests/cosine_tree_test.cpp
+@@ -63,7 +63,7 @@ BOOST_AUTO_TEST_CASE(CosineTreeNoSplit)
+  */
+ BOOST_AUTO_TEST_CASE(CosineNodeCosineSplit)
+ {
+-  // Intialize constants required for the test.
++  // Initialize constants required for the test.
+   const size_t numRows = 500;
+   const size_t numCols = 1000;
+   

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