Conditions | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 1.125 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """Represents optimization strategy for group in PSO.""" |
||
17 | 1 | @staticmethod |
|
18 | def should_continue(best_particle): |
||
19 | """ |
||
20 | Strategic method. |
||
21 | |||
22 | Args: |
||
23 | best_particle (Particle): best particle in swarm |
||
24 | |||
25 | Raises: |
||
26 | NotImplementedError: if not implemented. |
||
27 | '""" |
||
28 | raise NotImplementedError |
||
29 |
Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.