[mlpack-git] master: Some brackets and stuff like that. (d8b5bec)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:58:27 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit d8b5bec0052d3ab89ac9e9004e433e7d1db698ca
Author: Ryan Curtin <ryan at ratml.org>
Date:   Sun Aug 17 19:52:49 2014 +0000

    Some brackets and stuff like that.


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

d8b5bec0052d3ab89ac9e9004e433e7d1db698ca
 src/mlpack/methods/kernel_pca/kernel_pca_main.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/kernel_pca/kernel_pca_main.cpp b/src/mlpack/methods/kernel_pca/kernel_pca_main.cpp
index 6bc1ccb..c0e963d 100644
--- a/src/mlpack/methods/kernel_pca/kernel_pca_main.cpp
+++ b/src/mlpack/methods/kernel_pca/kernel_pca_main.cpp
@@ -106,7 +106,8 @@ void RunKPCA(arma::mat& dataset,
              const string& sampling,
              KernelType& kernel)
 {
-  if (nystroem) {
+  if (nystroem)
+  {
     // Make sure the sampling scheme is valid.
     if (sampling == "kmeans")
     {
@@ -133,7 +134,8 @@ void RunKPCA(arma::mat& dataset,
         << "choices are 'kmeans', 'random' and 'ordered'" << endl;
     }
   }
-  else {
+  else
+  {
     KernelPCA<KernelType> kpca(kernel, centerTransformedData);
     kpca.Apply(dataset, newDim);
   }



More information about the mlpack-git mailing list