Machine learning functions - Amazon Redshift
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026. We will start enforcing it in phases. For more information on the details of Python end of life and migration options, see the blog post that was published on June 30, 2025.

Machine learning functions

By using Amazon Redshift machine learning (ML), you can train ML models using SQL statements and invoke them in SQL queries for prediction. Amazon Redshift model explainability includes feature-importance values to help you understand how each attribute in your training data contributes to the predicted result.

Following, you can find descriptions for the machine learning functions for SQL that Amazon Redshift supports.