Closed
Description
Running the following code:
delta = Prior(
"Laplace",
mu=Prior("Normal", mu=np.array([-10,-20, -30,-40]), sigma=np.array([0.001,0.001, 0.001, 0.001]), dims=("changepoint")),
b=Prior("HalfNormal", sigma=0.001),
dims=("changepoint"),
)
priors = dict(delta=delta)
trend = LinearTrend(
priors=priors,
n_changepoints=4,
)
prior = trend.sample_prior(random_seed=rng)
curve = trend.sample_curve(prior)
_, axes = trend.plot_curve(curve, sample_kwargs={"rng": rng})
ax = axes[0]
ax.set(
xlabel="Time",
ylabel="Trend",
title=f"Linear Trend with {trend.n_changepoints} Change Points",
)
I get the following plot

The 4 vertical lines are not aligned with the change points which are - I suppose - 0, 0.333, 0.667, 1.