Skip to content

Commit ccf81ca

Browse files
committed
add description
1 parent e236312 commit ccf81ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

axelrod/strategies/momentum.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class Momentum(Player):
1414
responds to gradients in optimization.
1515
1616
Parameters:
17-
- alpha:
18-
- threshold:
19-
- momentum:
17+
- alpha: Momentum decay factor that determines the rate of trust reduction. A higher value leads to slower decay, and the opponent's Defect acts as a trigger. (Optimized by Genetic Algorithm)
18+
- threshold: The minimum momentum required to continue cooperation. If momentum falls below this value, the strategy switches to Defect as punishment. (Optimized by Genetic Algorithm)
19+
- momentum: Represents the inertia of trust, dynamically changing based on past cooperation.
2020
2121
Names:
2222
- Momentum: Original name by Dong Won Moon
@@ -35,8 +35,8 @@ class Momentum(Player):
3535

3636
def __init__(
3737
self,
38-
alpha=0.9914655399877477, # Optimized by Genetic Algorithm. You can try to adapt it to any Env.
39-
threshold=0.9676595613724907, # This one too
38+
alpha=0.9914655399877477,
39+
threshold=0.9676595613724907,
4040
) -> None:
4141
super().__init__()
4242
self.alpha = alpha

0 commit comments

Comments
 (0)