calliope.select.localsearch
¶
Module Contents¶
Classes¶
Create a playlist using local search algorithm. |
Functions¶
|
- class calliope.select.localsearch.PlaylistGenerationProblem(collection, constraints, initial_length=0)¶
Bases:
simpleai.search.SearchProblem
Create a playlist using local search algorithm.
- create_input_partitions()¶
Divide the dataset into one ‘good’ and some ‘bad’ partitions.
This is done per constraint as the constraints will contradict each other somewhat.
- return_item_to_input_partitions(item)¶
Return an item to the partitioned set of input data.
- generate_random_state()¶
- make_append_actions_for_partition(state, partition, count=None)¶
- make_remove_actions(state, count=None)¶
- post_iteration_hook(state)¶
- actions(state)¶
- result(state, action)¶
- value(state)¶
- calliope.select.localsearch.solve(problem, iterations_limit=1000)¶