--- title: "Create ML Pipeline" url: https://docs.catalyst.zoho.com/en/tutorials/churn-prediction/create-ml-pipeline/ description: "churn prediction, Create a powerful ML pipeline that can be used to predict the churn using the Catalyst QuickML service." last_updated: 2026-09-29T06:01:01Z service: All Services type: tutorial related_links: - name: "ML Algorithms in QuickML" url: /en/quickml/help/ml-algorithms/classification-algorithms - name: "Operations in QuickML" url: /en/quickml/help/operations-in-quickml/encoding --- # Create an ML pipeline To build the prediction model, we will use the pre-processed dataset in the **[ML Pipeline Builder](https://docs.catalyst.zoho.com/en/quickml/help/pipeline-builder-interface/walkthrough/)**. The initial step in building the ML Pipeline involves selecting the target column, the column that we’re trying to predict. **To create an ML pipeline** 1. Navigate to the *Pipelines* component and click **Create Pipeline** in the top-right corner of the page. ![churn-26.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-26.webp) 2. In the *Create Pipeline* pop-up window, choose the **Prediction pipeline**. ![churn-27.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-27.webp) 3. Enter the pipeline name as **Churn Prediction**, choose Churn_datatset1, and *churn_risk_score* as the target column. Then click **Create**. ![churn-28.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-28.webp) **Model creation** The next step is to create the model in the pipeline editor. First select the appropriate encoders to convert categorical or non-numeric data into a numerical format that machine learning algorithms can work with effectively. **Stage 1: Ordinal encoding** Here, we’re using ordinal encoding to encode *"membership_category", "preferred_offer_types", "medium_of_operation", "internet_option", "gender", "used_special_discount", "past_complaints", "complaint_status" and "feedback"*. It assigns integers to the categories based on their order, making it possible for machine-learning algorithms to capture the ordinal nature of the data. To use the Ordinal Encoder node, navigate to *ML tab > ML operations > Encoding component > Ordinal Encoder* to turn the selected category columns into numerical columns. ![churn-29.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-29.webp) **Stage 2: One-hot encoder** One-hot encoding is applied to categorical columns in a dataset, where each category represents a distinct class or group. This increases the dimensionality of the dataset because it creates a new binary column for each unique category. The number of binary columns is equal to the number of unique categories minus one, as you can infer the presence of the last category from the absence of all others. Here, we’re using the One-Hot Encoder node to encode *"region_category", "joined_through_referral" and"offer_application_preference"*. To use the One-Hot Encoder node, navigate to *ML tab > ML operations > Encoding Component > One-Hot Encoder* in QuickML to turn the selected category columns into numerical columns. ![churn-30.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-30.webp) **Stage 3: Feature selection** Feature selection is the process of selecting the most relevant and important features (variables or columns) from a dataset to use for model training and analysis. The main goal is to enhance the performance, efficiency, and interpretability of machine-learning models. This process is especially important when working with high-dimensional datasets because it helps reduce over-fitting, decrease computation time, and improve model clarity. In this case, we’re using the **Redundancy Elimination** feature selection technique to select the features. This method identifies and removes redundant features—those that provide duplicate or highly correlated information and do not significantly improve model performance. To apply this, navigate to *ML tab > ML operations > Feature Engineering component > Feature Selection > Redundancy Elimination*. ![churn-31.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-31.webp) **Stage 4: ML algorithm selection** The next step in ML pipeline building is selecting the appropriate algorithm for training the preprocessed data. Here, we'll use the XGBoost classification algorithm to train the data. XGBoost (Extreme Gradient Boosting) is a popular and powerful machine-learning algorithm commonly used for classification tasks. It's an ensemble learning method that combines the predictions of multiple decision trees to create a strong predictive model. XGBoost is known for its speed, scalability, and ability to handle complex datasets. We can quickly construct the **XGBoost Classification** method in QuickML's ML Pipeline Builder by dragging and dropping the XGBoost Classification node from *ML tab > ML operations > Algorithm > Classification > XGBoost Classification.* To make sure the model is optimized for our particular dataset, we may also adjust the tuning parameters; in our case, we can just stick with the default settings. When everything is configured, we may save the pipeline for further testing and deployment. ![churn-32.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-32.webp) Once we drag and drop the algorithm node, its end node will be automatically connected to the destination node. Click **Save** to save the pipeline. Execute the pipeline by clicking the **Execute** button at the top-right corner of the pipeline builder page. ![churn-33.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-33.webp) This will redirect you to the executed pipeline page with execution status. ![churn-34.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-34.webp) Click **Execution Stats** to view compute details about each stage of the model execution. ![churn-35.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-35.webp) The prediction model is created and can be examined under the Model section (click on **Churn Prediction model**) following the successful completion of the ML workflow. ![churn-36.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-36.webp) This offers valuable insights into the model's efficiency and performance when making predictions based on the data. ![churn-37.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/churn-prediction/churn-37.webp)