Skip to content

Commit 6613632

Browse files
fix mean_squared_error call, part 2
1 parent 27490e5 commit 6613632

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

climada/test/test_util_calibrate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ def setUp(self) -> None:
6767
]
6868
)
6969
self.input = Input(
70-
self.hazard,
71-
self.exposure,
72-
self.data,
73-
self.impact_func_creator,
74-
self.impact_to_dataframe,
75-
mean_squared_error,
70+
hazard=self.hazard,
71+
exposure=self.exposure,
72+
data=self.data,
73+
impact_func_creator=self.impact_func_creator,
74+
impact_to_dataframe=self.impact_to_dataframe,
75+
cost_func=lambda x, y, w: mean_squared_error(x, y, sample_weight=w),
7676
)
7777

7878
def test_single(self):

0 commit comments

Comments
 (0)