File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414from extrap .entities .functions import ConstantFunction
1515from extrap .entities .hypotheses import Hypothesis , SingleParameterHypothesis , MAX_HYPOTHESIS , ConstantHypothesis
1616from extrap .entities .measurement import Measurement , Measure
17- from extrap .entities .parameter import Parameter
1817from extrap .modelers .abstract_modeler import AbstractModeler
1918from extrap .modelers .modeler_options import modeler_options
2019
@@ -33,10 +32,12 @@ class AbstractSingleParameterModeler(AbstractModeler, ABC):
3332 compare_with_RSS = modeler_options .add (False , bool ,
3433 'If enabled the models are compared using their residual sum of squares '
3534 '(RSS) instead of their symmetric mean absolute percentage error (SMAPE)' )
35+ minimum_term_contribution = modeler_options .add (0.0005 , float , # value for the minimum term contribution
36+ 'Minimum contribution of a term to be included in the model' )
3637
3738 def __init__ (self , use_measure : Union [bool , Measure ]):
3839 super ().__init__ (use_measure )
39- self .epsilon = 0.0005 # value for the minimum term contribution
40+ self .epsilon = 0.0005
4041
4142 def compare_hypotheses (self , old : Hypothesis , new : SingleParameterHypothesis , measurements : Sequence [Measurement ]):
4243 """
You can’t perform that action at this time.
0 commit comments