[mlpack-git] master, mlpack-1.0.x: Set default CoolingSchedule. (65e001d)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:51:05 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 65e001d453ef8a46cdb248e80c28d4b7a06ce296
Author: Ryan Curtin <ryan at ratml.org>
Date: Thu Jul 3 16:58:43 2014 +0000
Set default CoolingSchedule.
>---------------------------------------------------------------
65e001d453ef8a46cdb248e80c28d4b7a06ce296
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:
More information about the mlpack-git
mailing list