The "transform" function in pyspark.ml.regression.LinearRegression is used to apply the trained linear regression model to a dataset in order to generate predictions for each row. It takes a DataFrame as input and returns a new DataFrame with an additional column containing the predicted values. This function is useful for making predictions on new data using a trained linear regression model.
Python LinearRegression.transform - 15 examples found. These are the top rated real world Python examples of pyspark.ml.regression.LinearRegression.transform extracted from open source projects. You can rate examples to help us improve the quality of examples.