-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Check re-evaluation of centers, line 1131, when restarting with N_center less than previously specified (last line below):
# Recalculate centers
center_rows <- (n_draw + 1):(n_draw + N_centers)
iter_parm_draws[center_rows, (all_parm_names)] <- as.data.table(center_next)
Observed error in line 113: Supplied 6 items to be assigned to 3 items of column 'ar.mean'.
Occurred when restarting from a run with N_centers=10 with N_centers (accidentally) set to 3.
In general, the actual number of centers can be less than N_centers (e.g., at the beginning when there are fewer than N_centers points). This error may be specific to re-evaluation of centers when continuing with N_centers less than previously specified, or it may occur because N_centers is less than observed at the previous step, which would generally not occur.
Suggested interim fix: do not allow N_center to be less than previously specified.
Longer-term fix, if this is causing an error: we would need some type of special case when continuing from a prior run but reducing the number of centers.