Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherSamWilson committed Jul 26, 2024
1 parent d8374b2 commit 8967ff8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions miceforest/imputation_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,9 @@ def _get_oof_performance(
log_evaluation(period=0),
],
)
best_iteration = lgbcv["cvbooster"].best_iteration # type: ignore
best_iteration = lgbcv["cvbooster"].best_iteration # type: ignore
loss_metric_key = list(lgbcv)[0]
loss: float = np.min(lgbcv[loss_metric_key]) # type: ignore
loss: float = np.min(lgbcv[loss_metric_key]) # type: ignore

return loss, best_iteration

Expand Down Expand Up @@ -798,9 +798,11 @@ def _get_candidate_preds_mice(
candidate_preds = lgbmodel.predict(
candidate_features,
pred_contrib=True,
).astype(_PRE_LINK_DATATYPE) # type: ignore
).astype(
_PRE_LINK_DATATYPE
) # type: ignore
else:
candidate_preds = lgbmodel._Booster__inner_predict(0) # type: ignore
candidate_preds = lgbmodel._Booster__inner_predict(0) # type: ignore
if logistic and not (shap or fast):
candidate_preds = logodds(candidate_preds).astype(_PRE_LINK_DATATYPE)

Expand Down

0 comments on commit 8967ff8

Please sign in to comment.