optpolicy_functions.OptimalPolicy.solve#

OptimalPolicy.solve(data_df, data_title='')#

Solve for optimal allocation rule.

Parameters
  • data_df (DataFrame) – Input data to train particular allocation algorithm.

  • data_title (String, optional) – This string is used as title in outputs. The default is ‘’.

Returns

  • allocation_df (DataFrame) – data_df with optimal allocation appended.

  • result_dic (Dictionary) – Contains additional information about trained allocation rule. Only complete when keyword _int_with_output is True.

  • outpath (String) – Location of directory in which output is saved.