Replace the nested lists of reruns and signals with list-column tibbles
Opened this issue · 0 comments
rgiordan commented
The nested list structure returned by GetInferenceSignals
and RerunForSignals
is unnecessarily complicated. Replace it with tibbles with a list-valued column, e.g.:
these_signals <- GetInferenceSignalsForParameter(model_grads$param_infls[[param_name]])
signals_df <- tibble()
for (qoi_name in names(this_signals)) {
signals_df <- bind_rows(
signals_df,
tibble(param=param_name, qoi_name=qoi_name) %>%
mutate(signal=list(this_signals[[qoi_name]])))
}