Back to Scikit Learn

32212.Fix

doc/whats_new/upcoming_changes/many-modules/32212.fix.rst

1.8.0342 B
Original Source
  • Raise ValueError when sample_weight contains only zero values to prevent meaningless input data during fitting. This change applies to all estimators that support the parameter sample_weight. This change also affects metrics that validate sample weights. By :user:Lucy Liu <lucyleeow> and :user:John Hendricks <j-hendricks>.