viirya commented on a change in pull request #30413:
URL: https://github.com/apache/spark/pull/30413#discussion_r529108779
##########
File path: python/pyspark/mllib/classification.py
##########
@@ -88,20 +88,26 @@ class LogisticRegressionModel(LinearClassificationModel):
Classification model trained using Multinomial/Binary Logistic
Regression.
- :param weights:
- Weights computed for every feature.
- :param intercept:
- Intercept computed for this model. (Only used in Binary Logistic
- Regression. In Multinomial Logistic Regression, the intercepts will
- not bea single value, so the intercepts will be part of the
- weights.)
- :param numFeatures:
- The dimension of the features.
- :param numClasses:
- The number of possible outcomes for k classes classification problem
- in Multinomial Logistic Regression. By default, it is binary
- logistic regression so numClasses will be set to 2.
+ .. versionadded:: 0.9.0
+ Parameters
+ ----------
+ weights : :py:class:`pyspark.mllib.linalg.Vector`
+ Weights computed for every feature.
+ intercept : float
+ Intercept computed for this model. (Only used in Binary Logistic
+ Regression. In Multinomial Logistic Regression, the intercepts will
+ not bea single value, so the intercepts will be part of the
Review comment:
not bea -> not be a
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]