Skip to content

Commit 5f9ba95

Browse files
committed
numpy fixes
1 parent 72b0b9e commit 5f9ba95

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

src/hyperimpute/plugins/prediction/classifiers/plugin_random_forest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def __init__(
4949
criterion: int = 0,
5050
max_features: int = 0,
5151
min_samples_split: int = 2,
52-
bootstrap: bool = True,
5352
min_samples_leaf: int = 1,
5453
max_depth: Optional[int] = 3,
5554
random_state: int = 0,
@@ -66,7 +65,6 @@ def __init__(
6665
max_features=RandomForestPlugin.features[max_features],
6766
min_samples_split=min_samples_split,
6867
max_depth=max_depth,
69-
bootstrap=bootstrap,
7068
min_samples_leaf=min_samples_leaf,
7169
random_state=random_state,
7270
n_jobs=max(1, int(multiprocessing.cpu_count() / 2)),

src/hyperimpute/plugins/prediction/regression/plugin_random_forest_regressor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def __init__(
4949
criterion: int = 0,
5050
max_features: int = 0,
5151
min_samples_split: int = 2,
52-
bootstrap: bool = True,
5352
min_samples_leaf: int = 1,
5453
max_depth: Optional[int] = 3,
5554
hyperparam_search_iterations: Optional[int] = None,
@@ -67,7 +66,6 @@ def __init__(
6766
max_features=RandomForestRegressionPlugin.features[max_features],
6867
min_samples_split=min_samples_split,
6968
max_depth=max_depth,
70-
bootstrap=bootstrap,
7169
min_samples_leaf=min_samples_leaf,
7270
random_state=random_state,
7371
n_jobs=max(1, int(multiprocessing.cpu_count() / 2)),

src/hyperimpute/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.1.11"
1+
__version__ = "0.1.12"
22
MAJOR_VERSION = "0.1"

tests/integrations/test_sklearn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def _eval_imputer_pipeline(test_imputer: str) -> None:
2929
n_missing_samples = int(np.floor(n_samples * missing_rate))
3030
missing_samples = np.hstack(
3131
(
32-
np.zeros(n_samples - n_missing_samples, dtype=np.bool),
33-
np.ones(n_missing_samples, dtype=np.bool),
32+
np.zeros(n_samples - n_missing_samples, dtype=bool),
33+
np.ones(n_missing_samples, dtype=bool),
3434
)
3535
)
3636
rng.shuffle(missing_samples)

0 commit comments

Comments
 (0)