[mlpack] 119/324: Set default CoolingSchedule.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit f6511eac4a51023c3a226cb729ef9f0274502af1
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Thu Jul 3 16:58:43 2014 +0000
Set default CoolingSchedule.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16757 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/core/optimizers/sa/sa.hpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/optimizers/sa/sa.hpp b/src/mlpack/core/optimizers/sa/sa.hpp
index e21167d..deae5fe 100644
--- a/src/mlpack/core/optimizers/sa/sa.hpp
+++ b/src/mlpack/core/optimizers/sa/sa.hpp
@@ -7,6 +7,10 @@
#ifndef __MLPACK_CORE_OPTIMIZERS_SA_SA_HPP
#define __MLPACK_CORE_OPTIMIZERS_SA_SA_HPP
+#include <mlpack/prereqs.hpp>
+
+#include "exponential_schedule.hpp"
+
namespace mlpack {
namespace optimization {
@@ -49,7 +53,10 @@ namespace optimization {
* @tparam FunctionType objective function type to be minimized.
* @tparam CoolingScheduleType type for cooling schedule
*/
-template<typename FunctionType, typename CoolingScheduleType>
+template<
+ typename FunctionType,
+ typename CoolingScheduleType = ExponentialSchedule
+>
class SA
{
public:
--
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