def choosement(context,generator,evaluator,singlement) items=generator(context) comparison_objects=[] associations={} for item in items: value=evaluator(item,context) comparison_objects.append(value) associations[value]=item chosen_comparison=singlement(comparison_objects) chosen_item=associations[chosen_comparison] return chosen_item
edit: allowed evaluation to know about context
This is not necessarily part of my definition of consequentialism, since it is a specific search pattern and there are other search patterns.
I am clarifying what I meant in
The new improved model is done with reinforcement learning (feedback integration) and not the consequentialism (choosement) part.
If there is consequentialism that is not based or use choosement in what you mean that would probably be pretty essential for clarification.
The possibility of alternatives to choosement is discussed here.
edit: allowed evaluation to know about context
This is not necessarily part of my definition of consequentialism, since it is a specific search pattern and there are other search patterns.
I am clarifying what I meant in
If there is consequentialism that is not based or use choosement in what you mean that would probably be pretty essential for clarification.
The possibility of alternatives to choosement is discussed here.