[mlpack-git] master, mlpack-1.0.x: First pass: add file headers, include guards, and then my vimrc auto-stripped all trailing spaces. (f8c663a)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:46:35 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit f8c663a52da2b5c37712be5f0e9fc2c99d1f70d6
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Apr 16 18:35:16 2014 +0000
First pass: add file headers, include guards, and then my vimrc auto-stripped
all trailing spaces.
>---------------------------------------------------------------
f8c663a52da2b5c37712be5f0e9fc2c99d1f70d6
.../methods/sparse_autoencoder/sparse_autoencoder.hpp | 11 +++++++++++
.../sparse_autoencoder/sparse_autoencoder_function.cpp | 6 ++++++
.../sparse_autoencoder/sparse_autoencoder_function.hpp | 12 ++++++++++++
.../methods/sparse_autoencoder/sparse_autoencoder_impl.hpp | 14 ++++++++++++++
4 files changed, 43 insertions(+)
diff --git a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp
index ef4742d..4617504 100644
--- a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp
+++ b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp
@@ -1,3 +1,12 @@
+/**
+ * @file sparse_autoencoder.hpp
+ * @author Siddharth Agrawal
+ *
+ * An implementation of sparse autoencoders.
+ */
+#ifndef __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_HPP
+#define __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_HPP
+
#include <mlpack/core.hpp>
#include <mlpack/core/optimizers/lbfgs/lbfgs.hpp>
@@ -180,3 +189,5 @@ class SparseAutoencoder
// Include implementation.
#include "sparse_autoencoder_impl.hpp"
+
+#endif
diff --git a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.cpp b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.cpp
index 4837910..1094d7e 100644
--- a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.cpp
+++ b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.cpp
@@ -1,3 +1,9 @@
+/**
+ * @file sparse_autoencoder_function.cpp
+ * @author Siddharth Agrawal
+ *
+ * Implementation of function to be optimized for sparse autoencoders.
+ */
#include "sparse_autoencoder_function.hpp"
using namespace mlpack;
diff --git a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp
index 540119e..55886a1 100644
--- a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp
+++ b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp
@@ -1,3 +1,13 @@
+/**
+ * @file sparse_autoencoder_function.hpp
+ * @author Siddharth Agrawal
+ *
+ * The function to be optimized for sparse autoencoders. Any mlpack optimizer
+ * can be used.
+ */
+#ifndef __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_FUNCTION_HPP
+#define __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_FUNCTION_HPP
+
#include <mlpack/core.hpp>
namespace mlpack {
@@ -139,3 +149,5 @@ class SparseAutoencoderFunction
}; // namespace nn
}; // namespace mlpack
+
+#endif
diff --git a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp
index 67e1bfe..6de0d97 100644
--- a/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp
+++ b/src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp
@@ -1,3 +1,15 @@
+/**
+ * @file sparse_autoencoder_impl.hpp
+ * @author Siddharth Agrawal
+ *
+ * Implementation of sparse autoencoders.
+ */
+#ifndef __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_IMPL_HPP
+#define __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_IMPL_HPP
+
+// In case it hasn't been included yet.
+#include "sparse_autoencoder.hpp"
+
namespace mlpack {
namespace nn {
@@ -60,3 +72,5 @@ void SparseAutoencoder<OptimizerType>::GetNewFeatures(arma::mat& data,
}; // namespace nn
}; // namespace mlpack
+
+#endif
More information about the mlpack-git
mailing list