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 7ed5825 + 4172a64 commit 74dbde9Copy full SHA for 74dbde9
fastcan/narx.py
@@ -351,6 +351,11 @@ def _validate_feat_delay_ids(
351
"The element x of feat_ids should "
352
f"satisfy -1 <= x <= {n_features + n_outputs - 1}."
353
)
354
+ # Check if any row of feat_ids only contains -1
355
+ if np.all(feat_ids_ == -1, axis=1).any():
356
+ raise ValueError(
357
+ "`feat_ids` should not contain rows that only have -1."
358
+ )
359
# Validate delay_ids
360
delay_ids_ = check_array(
361
delay_ids,
0 commit comments