An Empirical Study of Frequent Code Edit Patterns In Machine Learning Systems

Patterns That Have Been Found:

IDPattern SizeNumberFoundDetailsProjectsCommitsNodeTypes
3733locations[pythia]1[MethodInvocation, SimpleName]
4133locations[pyod, dirty_cat]2[MethodInvocation, SimpleName]
7033locations[mlxtend, pgmpy]2[MethodInvocation, SimpleName]
8533locations[arviz]2[MethodInvocation, SimpleName]
443locations[webdnn, neurodsp]2[Assignment, MethodInvocation, SimpleName]
2643locations[torchsample, pythia]2[Assignment, MethodInvocation, SimpleName]
3143locations[scikit-learn, librosa]2[Assignment, MethodInvocation, SimpleName]
9143locations[torchsample, FlowNetPytorch]2[Assignment, MethodInvocation, SimpleName]
1953locations[pymanopt, keras-preprocessing]3[Assignment, FieldAccess, MethodInvocation, SimpleName]
3053locations[keras-frcnn, librosa]2[MethodInvocation, NumberLiteral, SimpleName]
4554locations[GPy, librosa]2[Assignment, MethodInvocation, SimpleName]
7253locations[TensorFlowOnSpark, librosa]2[Assignment, MethodInvocation, SimpleName]
11853locations[plotnine, conceptnet5]2[MethodInvocation, ReturnStatement, SimpleName]
12253locations[keras-frcnn, librosa]2[MethodInvocation, NumberLiteral, SimpleName]
12553locations[librosa]2[InfixExpression, MethodInvocation, SimpleName]
12753locations[mir_eval, librosa]2[InfixExpression, MethodInvocation, SimpleName]
1563locations[nilmtk]1[InfixExpression, MethodInvocation, NumberLiteral, SimpleName, StringLiteral]
2864locations[librosa, DeepBach]2[Assignment, FieldAccess, InfixExpression, MethodInvocation, SimpleName]
8463locations[npfl114]1[FieldAccess, MethodInvocation, SimpleName]
11264locations[scikit-image, keras-preprocessing, neurodsp]3[Assignment, InfixExpression, MethodInvocation, SimpleName]
12863locations[mahotas]1[Assignment, FieldAccess, MethodInvocation, SimpleName]
573locations[DESlib]2[Assignment, FieldAccess, MethodInvocation, NumberLiteral, SimpleName]
673locations[librosa, recurrent-visual-attention]2[MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
773locations[Deep-Reinforcement-Learning-Hands-On]1[MethodInvocation, SimpleName]
873locations[tfdeploy]1[FieldAccess, MethodInvocation, ReturnStatement, SimpleName]
2273locations[mlxtend, librosa]3[FieldAccess, MethodInvocation, SimpleName]
2373locations[mlxtend, SUAVE]2[InfixExpression, MethodInvocation, SimpleName]
3273locations[dipy]2[Assignment, FieldAccess, MethodInvocation, NumberLiteral, SimpleName]
3873locations[scikit-learn, pyroomacoustics]2[Assignment, MethodInvocation, SimpleName]
3974locations[librosa]1[ArrayInitializer, Assignment, MethodInvocation, SimpleName]
5273locations[GPy, libact]2[Assignment, InfixExpression, MethodInvocation, SimpleName]
5773locations[MLBox, Lexos]2[ArrayAccess, Assignment, MethodInvocation, NumberLiteral, SimpleName]
8274locations[librosa]1[ArrayInitializer, Assignment, MethodInvocation, SimpleName]
11173locations[nussl, liegroups]2[ArrayInitializer, Assignment, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
11673locations[mlxtend]1[InfixExpression, MethodInvocation, SimpleName]
1283locations[models, DESlib]2[Assignment, MethodInvocation, NumberLiteral, SimpleName]
4683locations[scikit-video]1[Assignment, FieldAccess, MethodInvocation, SimpleName]
6284locations[pynndescent]1[ArrayAccess, FieldAccess, MethodInvocation, NumberLiteral, SimpleName]
7383locations[EmoPy]2[Assignment, MethodInvocation, NumberLiteral, SimpleName]
10483locations[fonduer, 3DUnetCNN]2[Assignment, InfixExpression, MethodInvocation, NumberLiteral, SimpleName, WhileStatement]
5095locations[scikit-learn]1[ArrayInitializer, FieldAccess, MethodInvocation, SimpleName]
6793locations[factor_analyzer]1[ArrayInitializer, Assignment, MethodInvocation, SimpleName, StringLiteral]
47104locations[neurodsp]1[InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
63103locations[librosa]3[Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
94103locations[SUAVE]1[Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
103104locations[SUAVE]2[Assignment, CatchClause, FieldAccess, MethodInvocation, NumberLiteral, SimpleName, TryStatement]
107104locations[fonduer, mlxtend]2[ArrayAccess, Assignment, IfStatement, InfixExpression, MethodInvocation, PrefixExpression, SimpleName]
105113locations[pandas]1[ArrayInitializer, Assignment, MethodInvocation, NumberLiteral, PyWithStatement, SimpleName]
114115locations[Mathics, deepvoice3_pytorch, pdftotree, mlflow]4[ArrayInitializer, StringLiteral]
123113locations[pyod, hmmlearn]3[ArrayAccess, Assignment, MethodInvocation, PyTupleExpression, ReturnStatement, SimpleName]
96123locations[keras-bert, libact]2[ArrayInitializer, Assignment, MethodInvocation, PyWithStatement, SimpleName, StringLiteral]
121124locations[Deep-Reinforcement-Learning-Hands-On]3[Assignment, FieldAccess, IfStatement, MethodInvocation, SimpleName]
54133locations[librosa]1[Assignment, InfixExpression, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName, StringLiteral]
60133locations[Reinforcement-learning-with-tensorflow]1[ArrayAccess, Assignment, FieldAccess, InfixExpression, MethodInvocation, SimpleName]
68134locations[lingpy, yarll, libact]3[ArrayInitializer, Assignment, MethodInvocation, PyWithStatement, SimpleName, StringLiteral]
78133locations[keras-bert, lingpy]2[ArrayInitializer, Assignment, MethodInvocation, PyWithStatement, SimpleName, StringLiteral]
98133locations[imbalanced-learn, ffn]2[ArrayInitializer, StringLiteral]
35144locations[scikit-image]1[ArrayAccess, ArrayInitializer, Assignment, FieldAccess, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName, StringLiteral]
13153locations[pgmpy]1[Assignment, FieldAccess, IfStatement, MethodInvocation, NumberLiteral, PrefixExpression, PyTupleExpression, SimpleName]
101153locations[GPy]1[Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
106153locations[pgmpy]1[Assignment, FieldAccess, IfStatement, MethodInvocation, PrefixExpression, SimpleName]
110153locations[DESlib]2[ArrayAccess, ArrayInitializer, Assignment, BooleanLiteral, InfixExpression, MethodInvocation, NumberLiteral, PrefixExpression, PyTupleExpression, SimpleName, StringLiteral]
27163locations[scikit-image]1[ArrayAccess, ArrayInitializer, Assignment, FieldAccess, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName, StringLiteral]
66164locations[pyRiemann]1[Assignment, FieldAccess, InfixExpression, MethodInvocation, SimpleName]
108163locations[fonduer, label-maker]2[ArrayAccess, Assignment, MethodInvocation, SimpleName, StringLiteral]
20173locations[pyRiemann]1[Assignment, FieldAccess, MethodInvocation, PyTupleExpression, ReturnStatement, SimpleName]
51173locations[pynndescent]3[Assignment, InfixExpression, MethodInvocation, NumberLiteral, ReturnStatement, SimpleName]
93173locations[pyRiemann]1[Assignment, FieldAccess, MethodInvocation, PyTupleExpression, ReturnStatement, SimpleName]
9193locations[face_recognition]1[ArrayAccess, Assignment, BooleanLiteral, FieldAccess, IfStatement, MethodInvocation, PyInExpression, SimpleName]
65193locations[Deep-Reinforcement-Learning-Hands-On]2[ArrayAccess, FieldAccess, MethodInvocation, NumberLiteral, SimpleName]
71206locations[ristretto]1[ArrayAccess, AssertStatement, Assignment, FieldAccess, InfixExpression, MethodInvocation, PyTupleExpression, SimpleName, StringLiteral]
100203locations[fonduer, label-maker]3[ArrayAccess, Assignment, MethodInvocation, SimpleName, StringLiteral]
24213locations[project-template, imbalanced-learn]2[FieldAccess, MethodInvocation, PyTupleExpression, SimpleName, StringLiteral]
75213locations[opt_einsum]1[Assignment, FieldAccess, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
92213locations[opt_einsum]1[Assignment, FieldAccess, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
48223locations[hyperopt-sklearn]1[FieldAccess, MethodInvocation, NumberLiteral, SimpleName, StringLiteral]
69223locations[hyperopt-sklearn]1[FieldAccess, MethodInvocation, NumberLiteral, SimpleName, StringLiteral]
87223locations[hyperopt-sklearn]1[FieldAccess, MethodInvocation, NumberLiteral, SimpleName, StringLiteral]
33233locations[pb_bss]2[ArrayAccess, Assignment, BooleanLiteral, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, PrefixExpression, PyTupleExpression, SimpleName, StringLiteral]
43233locations[SUAVE]1[Assignment, IfStatement, InfixExpression, MethodInvocation, SimpleName, StringLiteral]
11243locations[SUAVE]1[Assignment, IfStatement, InfixExpression, MethodInvocation, SimpleName, StringLiteral]
44243locations[scikit-cuda]1[ArrayAccess, Assignment, CatchClause, FieldAccess, MethodInvocation, SimpleName, StringLiteral, TryStatement]
124243locations[EmoPy]2[ArrayInitializer, Assignment, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
2263locations[Deep-Reinforcement-Learning-Hands-On]1[FieldAccess, MethodInvocation, SimpleName]
14263locations[EmoPy]2[Assignment, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
10303locations[librosa]1[ArrayAccess, Assignment, FieldAccess, IfStatement, InfixExpression, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
77303locations[gym]1[ArrayInitializer, Assignment, FieldAccess, MethodInvocation, NumberLiteral, PrefixExpression, PyTupleExpression, SimpleName, SuperConstructorInvocation]
16313locations[scikit-survival]1[ArrayInitializer, Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, PrefixExpression, SimpleName]
56323locations[scikit-image]1[Assignment, FieldAccess, IfStatement, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
61323locations[CostSensitiveClassification]3[ArrayAccess, Assignment, BooleanLiteral, FieldAccess, IfStatement, InfixExpression, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName]
81323locations[scikit-image]1[Assignment, FieldAccess, IfStatement, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
74343locations[SUAVE]2[ArrayAccess, Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
17353locations[scikit-optimize]1[ArrayAccess, Assignment, FieldAccess, IfStatement, InfixExpression, MethodInvocation, ReturnStatement, SimpleName]
34354locations[pyRiemann]4[ArrayAccess, Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
90354locations[pyRiemann]4[ArrayAccess, Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
79363locations[scikit-optimize]1[ArrayAccess, Assignment, FieldAccess, IfStatement, InfixExpression, MethodInvocation, ReturnStatement, SimpleName]
113373locations[nussl]2[ArrayAccess, Assignment, EnhancedForStatement, FieldAccess, IfStatement, InfixExpression, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName, StringLiteral]
1393locations[transferlearning]1[Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
25393locations[transferlearning]1[Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
36393locations[transferlearning]1[Assignment, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
29403locations[liegroups]1[ArrayAccess, ArrayInitializer, Assignment, FieldAccess, MethodInvocation, NumberLiteral, PyTupleExpression, SimpleName, StringLiteral, ThrowStatement]
76413locations[NiftyNet]1[ArrayAccess, ArrayInitializer, Assignment, BooleanLiteral, MethodInvocation, NumberLiteral, PrefixExpression, SimpleName, StringLiteral]
129433locations[dipy]2[ArrayInitializer, Assignment, MethodInvocation, NumberLiteral, PrefixExpression, PyTupleExpression, SimpleName, StringLiteral]
95483locations[dipy]2[ArrayInitializer, Assignment, FieldAccess, MethodInvocation, NumberLiteral, PrefixExpression, PyTupleExpression, SimpleName, StringLiteral]
99614locations[PyTorch-GAN]1[Assignment, BooleanLiteral, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
53704locations[PyTorch-GAN]1[Assignment, BooleanLiteral, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
58704locations[PyTorch-GAN]1[Assignment, BooleanLiteral, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]
59704locations[PyTorch-GAN]1[Assignment, BooleanLiteral, FieldAccess, InfixExpression, MethodInvocation, NumberLiteral, SimpleName]