We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee9c3fa + 9b1e3bd commit 0f55ba2Copy full SHA for 0f55ba2
src/cellflow/model/_cellflow.py
@@ -237,7 +237,7 @@ def prepare_validation_data(
237
split_val = len(val_data.control_to_perturbation) > 1
238
predict_kwargs = predict_kwargs or {}
239
# Check if predict_kwargs is alreday provided from an earlier call
240
- if "predict_kwargs" in self._validation_data:
+ if "predict_kwargs" in self._validation_data and len(predict_kwargs):
241
predict_kwargs = self._validation_data["predict_kwargs"].update(predict_kwargs)
242
# Set batched prediction to False if split_val is True
243
if split_val:
0 commit comments