Skip to content

Commit d89d6b5

Browse files
author
Hendrik Muhs
committed
fix merge problem in CModelParams initialization
1 parent 98ab90b commit d89d6b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/model/CForecastModelPersist.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,13 @@ bool CForecastModelPersist::CRestore::restoreOneModel(core::CStateRestoreTravers
133133

134134
maths::SModelRestoreParams params{
135135
maths::CModelParams(modelParams.s_BucketLength, modelParams.s_LearnRate,
136-
modelParams.s_DecayRate, minimumSeasonalVarianceScale),
136+
modelParams.s_DecayRate, minimumSeasonalVarianceScale,
137+
modelParams.s_MinimumTimeToDetectChange,
138+
modelParams.s_MaximumTimeToTestForChange),
137139
maths::STimeSeriesDecompositionRestoreParams{
138140
modelParams.s_DecayRate, modelParams.s_BucketLength,
139-
modelParams.s_ComponentSize},
141+
modelParams.s_ComponentSize,
142+
modelParams.distributionRestoreParams(dataType)},
140143
modelParams.distributionRestoreParams(dataType)};
141144

142145
if (!traverser.traverseSubLevel(

0 commit comments

Comments
 (0)