S3 method for update that re-fits an ALS fit
with modified arguments. Two routes:
if
...contains only the warm-start refit knobs (Y_new,X_new,Z_new,max_iter,tol,verbose), it delegates toame_als_refitfor a fast warm-started refit;otherwise (e.g. changing
R,family,lambda,bootstrap) it re-evaluates the originalobject$callwith the overrides, matching theupdate.amesemantics on the MCMC side.
The split exists because ame_als_refit() is a genuinely
warm-started single-fit refit (faster, narrower argument set),
while changing R / family requires a cold-start
refit through ame_als.
Arguments
- object
A fitted
ame_als/lame_alsobject.- ...
Named arguments. See
ame_als_refitfor the warm-start argument list andame_alsfor the cold-start argument list.- evaluate
Logical: if
TRUE(default), evaluate the updated call and return the new fit; ifFALSE, return the unevaluated call (cold-start path only).
Value
A new fitted ame_als object, or (when
evaluate = FALSE on the cold-start path) the modified
call.