decision package

Submodules

cnsproject.decision.decision module

Module for decision making.

TODO.

  1. Implement the dynamics of decision making. You are free to define your structure here.

  2. Make sure to implement winner-take-all mechanism.

class cnsproject.decision.decision.AbstractDecision

Bases: abc.ABC

Abstract class to define decision making strategy.

Make sure to implement the abstract methods in your child class.

abstract compute(**kwargs)None

Infer the decision to be made.

Returns

It should return the decision result.

Return type

None

abstract update(**kwargs)None

Update the variables after making the decision.

Returns

Return type

None

class cnsproject.decision.decision.WinnerTakeAllDecision

Bases: cnsproject.decision.decision.AbstractDecision

The k-Winner-Take-All decision mechanism.

You will have to define a constructor and specify the required attributes, including k, the number of winners.

compute(**kwargs)None

Infer the decision to be made.

Returns

It should return the decision result.

Return type

None

update(**kwargs)None

Update the variables after making the decision.

Returns

Return type

None

Module contents