You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'sample_weight' argument is not optional in multinomial functions #13020
The functions _multinomial_loss, _multinomial_loss_grad, _multinomial_grad_hess in sklearn.linear_model.logistic take an argument sample_weight which has the following documentation:
sample_weight : array-like, shape (n_samples,) optional
Array of weights that are assigned to individual samples.
However, unlike in the functions _logistic_loss_and_grad, _logistic_loss, _logistic_grad_hess, this argument is not optional as the documentation says, and passing None or an empty array to it will throw an error.
Activity
jnothman commentedon Jan 20, 2019
Please submit a PR fixing the documentation
david-cortes commentedon Jan 21, 2019
Done, but I'd rather have them be optional, so I made them optional instead of changing the documentation: #13024
jnothman commentedon Jan 21, 2019