-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[DOC] ensure all attributes are documented for Perceptron #14312 #15507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Can you change your PR title to
|
coef_ : array, shape = [1, n_features] if n_classes == 2 else [n_classes,\ | ||
n_features] | ||
Weights assigned to the features. | ||
|
||
intercept_ : array, shape = [1] if n_classes == 2 else [n_classes] | ||
Constants in decision function. | ||
|
||
loss_function_ : concrete LossFunction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should probably say loss_function_ : callable
coef_ : array, shape = [1, n_features] if n_classes == 2 else [n_classes,\ | ||
n_features] | ||
Weights assigned to the features. | ||
|
||
intercept_ : array, shape = [1] if n_classes == 2 else [n_classes] | ||
Constants in decision function. | ||
|
||
loss_function_ : concrete LossFunction | ||
The function that determines the loss, or difference between the \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention that it is the perceptron loss (defined here https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/linear_model/_stochastic_gradient.py#L428)
Sorry @pwalchessen but this has been fixed in #15521. I'm closing this one. Thanks for your work! |
This adds the loss function attribute to Perceptron and alphabetizes all of the attributes.
Original problem:
as discussed in #13385 we need to ensure all attributes are documented.