get_evt_subarray_model_output#

protopipe.mva.get_evt_subarray_model_output(data, weight_name=None, keep_cols=['reco_energy'], model_output_name='score_img', model_output_name_evt='score')[source]#

Returns DataStore with keepcols + score/target columns of model at the level-subarray-event.

Parameters
data: `~pandas.DataFrame`

Data frame

weight_name: `str`

Variable name in data frame to weight events with

keep_cols: `list`, optional

List of variables to keep in resulting data frame

model_output_name: `str`, optional

Name of model output (image level)

model_output_name_evt: `str`, optional

Name of averaged model output (event level)

Returns
——-
data: `~pandas.DataFrame`

Data frame