Pack multidimensional predictions into a vector (and unpack again)

pack_predictions(pred_matrix)

unpack_predictions(x)

Arguments

pred_matrix

a matrix of prediciton values

x

a packed prediction list