src.conflict_resolution module¶
-
src.conflict_resolution.same_for_subsets(option_dict, subsets, option_fn, tiebreaker_fn=None)[source]¶
-
src.conflict_resolution.all_same_if_possible(option_dict, subsets, option_fn, tiebreaker_fn=None)[source]¶
-
src.conflict_resolution.minimum_cover(option_dict, option_fn, tiebreaker_fn=None)[source]¶ Determine experiment component(s) from heuristics.
- Pick all data from the same component if possible, and from as few
components if not. See https://en.wikipedia.org/wiki/Set_cover_problem and http://www.martinbroadhurst.com/greedy-set-cover-in-python.html.
- If multiple components satisfy (1) equally well, use a tie-breaking
heuristic (
_component_tiebreaker()).
- Parameters
datasets (iterable of
DataSet) – Collection of all variables being requested in this DataManager.
Returns:
listofstr: name(s) of model components to use.- Raises: AssertionError if problem is unsatisfiable. This indicates some
error in the input data.