We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14a7f8 commit b9876f5Copy full SHA for b9876f5
balance/utils/model_matrix.py
@@ -308,9 +308,10 @@ def _prepare_input_model_matrix(
308
unique. Defaults to True.
309
310
Raises:
311
- ValueError: If requested ``variables`` are not present in both inputs,
312
- if variables contain ``[`` or ``]``, or if ``add_na=False`` drops
313
- all rows from sample/target.
+ ValueError: If requested ``variables`` are not present in the
+ provided input frame(s) (and in both sample and target when target
+ is supplied), if variables contain ``[`` or ``]``, or if
314
+ ``add_na=False`` drops all rows from sample/target.
315
316
Returns:
317
Dict[str, Any]: returns a dictionary containing two keys: 'all_data' and 'sample_n'.
0 commit comments