[mlpack-svn] r16757 - mlpack/trunk/src/mlpack/core/optimizers/sa

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Jul 3 12:58:44 EDT 2014


Author: rcurtin
Date: Thu Jul  3 12:58:43 2014
New Revision: 16757

Log:
Set default CoolingSchedule.


Modified:
   mlpack/trunk/src/mlpack/core/optimizers/sa/sa.hpp

Modified: mlpack/trunk/src/mlpack/core/optimizers/sa/sa.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/optimizers/sa/sa.hpp	(original)
+++ mlpack/trunk/src/mlpack/core/optimizers/sa/sa.hpp	Thu Jul  3 12:58:43 2014
@@ -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 @@
  * @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:



More information about the mlpack-svn mailing list