We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82926ee commit 4ecb3abCopy full SHA for 4ecb3ab
variations.py
@@ -35,7 +35,7 @@ def linear_combination(w):
35
# assuming not transformed yet
36
u1, v1 = var1.transform()
37
u2, v2 = var2.transform()
38
- return w * u1 + (1-w) * u2, w * v1 + (1-w) * v2
+ return (1-w) * u1 + w * u2, (1-w) * v1 + w * v2
39
return linear_combination
40
41
@staticmethod
0 commit comments