| Main Category |
Pattern Group |
Occurrences |
Example |
Details |
| Transform to Context managers |
Open, read, write, traverse data |
467 |
 |
Click me |
| Disable or Enable gradient calculation |
92 |
 |
Click me |
| Swap ML training devices |
21 |
 |
Click me |
| Use name and variable scopes in DL networks |
106 |
 |
Click me |
| Execute dependencies of Tensorflow graphs |
57 |
 |
Click me |
| Temporarily change configurations of ML libraries |
57 |
 |
Click me |
| Move to context managers in pytest |
335 |
 |
Click me |
| Open temporary directory |
100 |
 |
Click me |
| Dissolve for loops, into domain specific abstractions |
Use optimized operations in NumPy |
179 |
 |
Click me |
| Transform to functions in list or dict |
24 |
 |
Click me |
| Use Python Built-in Functions |
15 |
 |
Click me |
| Use str().join() |
14 |
 |
Click me |
| Use Python set operations (union, intersection) |
7 |
 |
Click me |
| Use optimized operations in PyTorch |
15 |
|
Click me |
| Use optimized operations in TensorFlow |
19 |
 |
Click me |
| Update API invocation |
Migration to APIs in ML libraries |
11 |
 |
Click me |
| Matrix operations |
82 |
 |
Click me |
| Swap Data Visualization |
28 |
|
Click me |
| Composite ML APIs |
30 |
 |
Click me |
| Update Container |
8 |
 |
Click me |
| Change Type of Matrixes |
31 |
 |
Click me |
| Use advanced Language feature |
Simplify conditional statement |
24 |
 |
Click me |
| Migrate from Dict, Set, List constructors to literals |
42 |
 |
Click me |
| Move to List, Dict, and Set Comprehensions |
349 |
 |
Click me |