Create a per feature list of combiners, ordered by table.
(table_to_config_dict, table_to_features_dict)
| 1409 | |
| 1410 | |
| 1411 | def _create_combiners(table_to_config_dict, table_to_features_dict): |
| 1412 | """Create a per feature list of combiners, ordered by table.""" |
| 1413 | combiners = [] |
| 1414 | for table in table_to_config_dict: |
| 1415 | combiner = table_to_config_dict[table].combiner or 'sum' |
| 1416 | combiners.extend([combiner] * len(table_to_features_dict[table])) |
| 1417 | return combiners |
| 1418 | |
| 1419 | |
| 1420 | def _create_table_to_features_and_num_features_dicts(feature_to_config_dict): |