optpolicy_main.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:

  • results_all_dict (Dictionary.) – Contains the results. This dictionary has the following structure: ‘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’Path

    Location of directory in which output is saved.

  • data_df (Pandas DataFrame.) – Input data that is used to train the assignment algorithm.