Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
DerivativeSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include <boost/none.hpp>
4#include <boost/optional.hpp>
5
9
10namespace storm {
11namespace settings {
12namespace modules {
13
18 public:
23
28
32 double getLearningRate() const;
33
37 uint_fast64_t getMiniBatchSize() const;
38
42 double getAverageDecay() const;
43
47 double getSquaredAverageDecay() const;
48
52 bool isPrintJsonSet() const;
53
57 boost::optional<derivative::GradientDescentConstraintMethod> getConstraintMethod() const;
58
62 std::string getConstraintMethodAsString() const;
63
67 double getTerminationEpsilon() const;
68
72 boost::optional<derivative::GradientDescentMethod> getGradientDescentMethod() const;
73
77 std::string getGradientDescentMethodAsString() const;
78
83
84 const static std::string moduleName;
85
86 private:
87 const static std::string extremumSearch;
88 const static std::string feasibleInstantiationSearch;
89 const static std::string derivativeAtInstantiation;
90 const static std::string learningRate;
91 const static std::string miniBatchSize;
92 const static std::string adamParams;
93 const static std::string averageDecay;
94 const static std::string squaredAverageDecay;
95 const static std::string printJson;
96 const static std::string terminationEpsilon;
97 const static std::string gradientDescentMethod;
98 const static std::string omitInconsequentialParams;
99 const static std::string constraintMethod;
100 boost::optional<derivative::GradientDescentMethod> methodFromString(const std::string &str) const;
101 boost::optional<derivative::GradientDescentConstraintMethod> constraintMethodFromString(const std::string &str) const;
102};
103
104} // namespace modules
105} // namespace settings
106} // namespace storm
double getSquaredAverageDecay() const
Retrieves the decay of the squared decaying step average of the ADAM algorithm.
std::string getGradientDescentMethodAsString() const
Retrieves the gradient descent method as a string.
uint_fast64_t getMiniBatchSize() const
Retrieves the mini batch size of the gradient descent.
boost::optional< derivative::GradientDescentMethod > getGradientDescentMethod() const
Retrieves the gradient descent method.
DerivativeSettings()
Creates a new set of monotonicity checking settings.
double getAverageDecay() const
Retrieves the decay of the decaying step average of the ADAM algorithm.
bool areInconsequentialParametersOmitted() const
Are inconsequential parameters omitted?
boost::optional< derivative::GradientDescentConstraintMethod > getConstraintMethod() const
Retrieves the gradient descent method constraint method.
bool isFeasibleInstantiationSearchSet() const
Retrieves whether a feasible instance should be found by Gradient Descent.
double getTerminationEpsilon() const
Retrieves the termination epsilon.
double getLearningRate() const
Retrieves the learning rate for the gradient descent.
bool isPrintJsonSet() const
Retrieves whether the GradientDescentInstantiationSearcher should print the run as json after finishi...
std::string getConstraintMethodAsString() const
Retrieves the gradient descent method constraint method as a string.
ModuleSettings(std::string const &moduleName)
Constructs a new settings object.