Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 9b42565

Browse files
cahlheimcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 767522004 Change-Id: I4eed19f4307c2b53024ed354d0d7a87d59571ebe
1 parent 5d3f2cd commit 9b42565

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

lightweight_mmm/core/core_utils_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_apply_exponent_safe_produces_same_exponent_results(self):
2929

3030
output = core_utils.apply_exponent_safe(data=data, exponent=exponent)
3131

32-
np.testing.assert_array_equal(x=output, y=data**exponent)
32+
np.testing.assert_array_equal(output, data**exponent)
3333

3434
def test_apply_exponent_safe_produces_correct_shape(self):
3535
data = jnp.ones((10, 5))

lightweight_mmm/core/time/trend_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ def test_core_dynamic_trend_produces_correct_value(self):
186186
variance_slope=variance_slope,
187187
)
188188

189-
np.testing.assert_array_equal(x=dynamic_trend_values,
190-
y=dynamic_trend_expected_value)
189+
np.testing.assert_array_equal(dynamic_trend_values,
190+
dynamic_trend_expected_value)
191191

192192
@parameterized.named_parameters([
193193
dict(

lightweight_mmm/core/transformations/lagging_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_adstock_zeros_stay_zeros(self):
215215

216216
generated_output = lagging._adstock(data=data, lag_weight=lag_weight)
217217

218-
np.testing.assert_array_equal(x=generated_output, y=data)
218+
np.testing.assert_array_equal(generated_output, data)
219219

220220
def test_carryover_zeros_stay_zeros(self):
221221
data = jnp.zeros((10, 5))
@@ -229,7 +229,7 @@ def test_carryover_zeros_stay_zeros(self):
229229
number_lags=7,
230230
)
231231

232-
np.testing.assert_array_equal(x=generated_output, y=data)
232+
np.testing.assert_array_equal(generated_output, data)
233233

234234

235235
if __name__ == "__main__":

lightweight_mmm/core/transformations/saturation_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_hill_zeros_stay_zeros(self):
188188
slope=slope,
189189
)
190190

191-
np.testing.assert_array_equal(x=generated_output, y=data)
191+
np.testing.assert_array_equal(generated_output, data)
192192

193193
def test_exponent_zeros_stay_zero(self):
194194
data = jnp.zeros((10, 5))
@@ -199,7 +199,7 @@ def test_exponent_zeros_stay_zero(self):
199199
exponent_values=exponent_values,
200200
)
201201

202-
np.testing.assert_array_equal(x=generated_output, y=data)
202+
np.testing.assert_array_equal(generated_output, data)
203203

204204

205205
if __name__ == "__main__":

lightweight_mmm/media_transforms_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_apply_exponent_safe_produces_correct_shape(self):
126126

127127
output = media_transforms.apply_exponent_safe(data=data, exponent=exponent)
128128

129-
np.testing.assert_array_equal(x=output, y=data**exponent)
129+
np.testing.assert_array_equal(output, data**exponent)
130130

131131
def test_apply_exponent_safe_produces_same_exponent_results(self):
132132
data = jnp.ones((10, 5))
@@ -156,7 +156,7 @@ def test_adstock_zeros_stay_zeros(self):
156156
generated_output = media_transforms.adstock(
157157
data=data, lag_weight=lag_weight)
158158

159-
np.testing.assert_array_equal(x=generated_output, y=data)
159+
np.testing.assert_array_equal(generated_output, data)
160160

161161
def test_hill_zeros_stay_zeros(self):
162162
data = jnp.zeros((10, 5))
@@ -168,7 +168,7 @@ def test_hill_zeros_stay_zeros(self):
168168
half_max_effective_concentration=half_max_effective_concentration,
169169
slope=slope)
170170

171-
np.testing.assert_array_equal(x=generated_output, y=data)
171+
np.testing.assert_array_equal(generated_output, data)
172172

173173
def test_carryover_zeros_stay_zeros(self):
174174
data = jnp.zeros((10, 5))
@@ -180,7 +180,7 @@ def test_carryover_zeros_stay_zeros(self):
180180
ad_effect_retention_rate=ad_effect_retention_rate,
181181
peak_effect_delay=peak_effect_delay)
182182

183-
np.testing.assert_array_equal(x=generated_output, y=data)
183+
np.testing.assert_array_equal(generated_output, data)
184184

185185

186186
@parameterized.parameters(range(1, 5))

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ immutabledict>=2.0.0
1818
jax>=0.3.18
1919
jaxlib>=0.3.18
2020
matplotlib==3.6.1
21-
numpy>=1.17.3, <=1.25.2
21+
numpy>=2.3
2222
numpyro>=0.9.2
2323
pandas>=1.1.5
2424
scipy

0 commit comments

Comments
 (0)