Skip to content

Commit 5275a62

Browse files
author
Katharine Hurst
committed
Removed unnecessary argument from apply
1 parent 6898e37 commit 5275a62

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

improver/calibration/load_and_apply_quantile_regression_random_forest.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def process(
2828
file_paths: pathlib.Path,
2929
feature_config: dict,
3030
target_cube_name: str,
31-
n_estimators: int = 100,
3231
transformation: str = None,
3332
pre_transform_addition: float = None,
3433
):
@@ -66,8 +65,6 @@ def process(
6665
A string containing the cube name of the forecast to be
6766
calibrated. This will be used to separate it from the rest of the
6867
dynamic predictors, if present.
69-
n_estimators (int):
70-
Number of trees in the forest.
7168
transformation (str):
7269
Transformation to be applied to the data before fitting.
7370
pre_transform_addition (float):
@@ -155,7 +152,6 @@ def process(
155152
result = ApplyQuantileRegressionRandomForests(
156153
feature_config=feature_config,
157154
quantiles=percentiles,
158-
n_estimators=n_estimators,
159155
transformation=transformation,
160156
pre_transform_addition=pre_transform_addition,
161157
)(forecast_cube, template_forecast_cube, qrf_model, cube_inputs)

improver/calibration/quantile_regression_random_forest.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ def __init__(
222222
self,
223223
feature_config,
224224
quantiles,
225-
n_estimators,
226225
transformation,
227226
pre_transform_addition,
228227
):
@@ -246,8 +245,6 @@ def __init__(
246245
}
247246
quantiles (float):
248247
Quantiles used for prediction (values ranging from 0 to 1)
249-
n_estimators (int):
250-
Number of trees in the forest.
251248
transformation (str):
252249
Transformation to be applied to the data before fitting.
253250
pre_transform_addition (float):
@@ -256,7 +253,6 @@ def __init__(
256253

257254
self.feature_config = feature_config
258255
self.quantiles = quantiles
259-
self.n_estimators = n_estimators
260256
self.transformation = transformation
261257
if self.transformation not in ["log", "log10", "sqrt", "cbrt", None]:
262258
msg = (

improver/cli/apply_quantile_regression_random_forest.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def process(
1414
*file_paths: cli.inputpath,
1515
feature_config: cli.inputjson,
1616
target_cube_name: str,
17-
n_estimators: int = 100,
1817
transformation: str = None,
1918
pre_transform_addition: float = 0,
2019
):
@@ -52,8 +51,6 @@ def process(
5251
A string containing the cube name of the forecast to be
5352
calibrated. This will be used to separate it from the rest of the
5453
feature cubes, if present.
55-
n_estimators (int):
56-
Number of trees in the forest.
5754
transformation (str):
5855
Transformation to be applied to the data before fitting.
5956
pre_transform_addition (float):
@@ -71,7 +68,6 @@ def process(
7168
file_paths,
7269
feature_config=feature_config,
7370
target_cube_name=target_cube_name,
74-
n_estimators=n_estimators,
7571
transformation=transformation,
7672
pre_transform_addition=pre_transform_addition,
7773
)

0 commit comments

Comments
 (0)