Skip to content

Commit

Permalink
fix due to package upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
basaks committed Jul 17, 2023
1 parent a4da98e commit 6c73928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion uncoverml/geoio.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def write(self, x, subchunk_index):
yend = self.sub_ends[subindex] # this is Y
if node != 0:
data = np.zeros(shape=(self.shape[0], yend - ystart, self.shape[-1]), dtype=np.float32)
mask = np.ones(shape=(self.shape[0], yend - ystart, self.shape[-1]), dtype=np.bool)
mask = np.ones(shape=(self.shape[0], yend - ystart, self.shape[-1]), dtype=bool)
mpiops.comm.Recv(data, source=node, tag=1)
mpiops.comm.Recv(mask, source=node, tag=2)
data = np.ma.masked_array(data=data, mask=mask, dtype=np.float32, fill_value=self.nodata_value)
Expand Down
4 changes: 1 addition & 3 deletions uncoverml/optimise/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class TransformedForestRegressor(TransformPredictDistMixin,
def __init__(self,
target_transform='identity',
n_estimators=10,
criterion="mse",
criterion='squared_error',
max_depth=None,
min_samples_split=2,
min_samples_leaf=1,
Expand Down Expand Up @@ -565,7 +565,6 @@ def __init__(
reg_lambda: float = 0.,
random_state: Optional[Union[int, np.random.RandomState]] = None,
n_jobs: int = -1,
silent: Union[bool, str] = 'warn',
importance_type: str = 'split',
**kwargs
):
Expand Down Expand Up @@ -594,7 +593,6 @@ def __init__(
reg_lambda=reg_lambda,
random_state=random_state,
n_jobs=n_jobs,
silent=silent,
importance_type=importance_type,
**kwargs
)
Expand Down

0 comments on commit 6c73928

Please sign in to comment.