pyspark.mllib package — PySpark 3.0.1 documentation
pyspark.mllib.classification module class pyspark.mllib.classification. LogisticRegressionModel ( weights, intercept, numFeatures, numClasses ) p Classification model trained using Multinomial/Binary Logistic Regression. Parameters weights – Weights computed for every feature. 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.