[mlpack-git] master: Add list of formats we can load. (666e7fe)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Fri Jul 10 18:59:02 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/4a97187bbba7ce8a6191b714949dd818ef0f37d2...e5905e62c15d1bcff21e6359b11efcd7ab6d7ca0
>---------------------------------------------------------------
commit 666e7fe7f17c94089cb13d39ba1b6dca21883a1d
Author: ryan <ryan at ratml.org>
Date: Wed Apr 15 11:57:41 2015 -0400
Add list of formats we can load.
>---------------------------------------------------------------
666e7fe7f17c94089cb13d39ba1b6dca21883a1d
src/mlpack/core/data/format.hpp | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/src/mlpack/core/data/format.hpp b/src/mlpack/core/data/format.hpp
new file mode 100644
index 0000000..0eaccca
--- /dev/null
+++ b/src/mlpack/core/data/format.hpp
@@ -0,0 +1,26 @@
+/**
+ * @file formats.hpp
+ * @author Ryan Curtin
+ *
+ * Define the formats that can be used by mlpack's Load() and Save() mechanisms
+ * via boost::serialization.
+ */
+#ifndef __MLPACK_CORE_DATA_FORMATS_HPP
+#define __MLPACK_CORE_DATA_FORMATS_HPP
+
+namespace mlpack {
+namespace data {
+
+//! Define the formats we can read through boost::serialization.
+enum format
+{
+ autodetect,
+ text,
+ xml,
+ binary
+};
+
+} // namespace data
+} // namespace mlpack
+
+#endif
More information about the mlpack-git
mailing list