Calling xtune will sometimes succeed, at other times result in an error:
fit <- xtune(X = X_train, Y = y_train, Z = priors, family = "linear")
> Error in approx(lambda, seq(lambda), sfrac) : requires at least two non-NA values for interpolation
Start estimating alpha:
Error in optim(alpha.old, likelihood.alpha.theta.xtune, likelihood.alpha.theta.gradient.xtune, :
non-finite value supplied by optim
Calling
xtune
will sometimes succeed, at other times result in an error:R version 4.2.2 xtune version: 2.0.0