32 #ifndef SHARK_OBJECTIVEFUNCTIONS_NOISYERRORFUNCTION_H 33 #define SHARK_OBJECTIVEFUNCTIONS_NOISYERRORFUNCTION_H 39 #include "Impl/FunctionWrapperBase.h" 41 #include <boost/scoped_ptr.hpp> 47 class NoisyErrorFunctionWrapperBase:
public FunctionWrapperBase{
49 std::size_t m_batchSize;
73 template<
class InputType,
class LabelType,
class OutputType>
85 {
return "NoisyErrorFunction"; }
91 return mp_wrapper -> proposeStartingPoint();
94 return mp_wrapper -> numberOfVariables();
98 mp_wrapper->setRng(this->mep_rng);
103 m_regularizer = regularizer;
104 m_regularizationStrength = factor;
107 double eval(RealVector
const& input)
const;
112 boost::scoped_ptr<detail::NoisyErrorFunctionWrapperBase> mp_wrapper;
115 double m_regularizationStrength;
120 #include "Impl/NoisyErrorFunction.inl"