Generalized linear regression is a linear regression that follows any distribution other than normal distribution. PySpark provides a GeneralizedLinearRegression model that includes Gaussian, Poisson, logistic regression methods to predict regression problems.

In
this tutorial, we'll briefly learn how to fit and predict regression
data by using PySpark GeneralizedLinearRegression in Python. The
tutorial
covers:

- Preparing the data
- Prediction and accuracy check
- Visualizing the results
- Source code listing