Hi! I have some issues understaning the first two parameters of lower, upper and initial_x (I understand that the other parameters are selected according to the data )

begin

lower_ = [0., 0., 10., 1.]

upper_ = [1., 1.,30., 3]

initial_x_ = [0.5, 0.5, 15., 2.]

res1 = optimize(HLT_loss_, lower_, upper_, initial_x_)

end

I need it to estimate parameters to obtain a trend of a time series, I am following the code found here. Thank tou for your help!

What exactly do you have issues with?

Your function `HLT_loss_`

takes four parameters, and you are giving the optimization function a vector of initial guesses for each parameter, as well as upper an lower bounds. The first parameter is bound between zero and one, with an initial guess of 0.5, smae for the second, while the third parameter is bound between 10 and 30 with an initial guess of 15, and the fourth is between 1 and 3 with a guess of 2.

I did not know how to interpret the parameters in order to use the code with my data, thanks!

1 Like