RapidCanvas Docs
  • Welcome
  • GETTING STARTED
    • Quick start guide
    • Introduction to RapidCanvas
    • RapidCanvas Concepts
    • Accessing the platform
  • BASIC
    • Projects
      • Projects Overview
        • Creating a project
        • Reviewing the Projects listing page
        • Duplicating a Project
        • Modifying the project settings
        • Deleting Project(s)
        • Configuring global variables at the project level
        • Working on a project
        • Generating the about content for the project
        • Generating AI snippets for each node on the Canvas
        • Marking & Unmarking a Project as Favorite
      • Canvas overview
        • Shortcut options on canvas
        • Queuing the Recipes
        • Bulk Deletion of Canvas Nodes
        • AI Guide
      • Recipes
        • AI-assisted recipe
        • Rapid model recipe
        • Template recipe
        • Code Recipe
        • RAG Recipes
      • Scheduler overview
        • Creating a scheduler
        • Running the scheduler manually
        • Managing schedulers in a project
        • Viewing the schedulers in a project
        • Viewing the run history of a specific scheduler
        • Publishing the updated data pipeline to selected jobs from canvas
        • Fetching the latest data pipeline to a specific scheduler
        • Comparing the canvas of the scheduler with current canvas of the project
      • Predictions
        • Manual Prediction
        • Prediction Scheduler
      • Segments and Scenarios
      • DataApps
        • Model DataApp
        • Project Canvas Datasets
        • Custom Uploaded Datasets
        • SQL Sources
        • Documents and PDFs
        • Prediction Service
        • Scheduler
        • Import DataApp
    • Connectors
      • Importing dataset(s) from the local system
      • Importing Text Files from the Local System
      • Connectors overview
      • Connect to external connectors
        • Importing data from Google Cloud Storage (GCS)
        • Importing data from Amazon S3
        • Importing data from Azure Blob
        • Importing data from Mongo DB
        • Importing data from Snowflake
        • Importing data from MySQL
        • Importing data from Amazon Redshift
        • Importing data from Fivetran connectors
    • Workspaces
      • User roles and permissions
    • Artifacts & Models
      • Adding Artifacts at the Project Level
      • Adding Models at the Project Level
      • Creating an artifact at the workspace level
      • Managing artifacts at the workspace level
      • Managing Models at the Workspace Level
      • Prediction services
    • Environments Overview
      • Creating an environment
      • Editing the environment details
      • Deleting an environment
      • Monitoring the resource utilization in an environment
  • ADVANCED
    • Starter Guide
      • Quick Start
    • Setup and Installation
      • Installing and setting up the SDK
    • Helper Functions
    • Notebook Guide
      • Introduction
      • Create a template
      • Code Snippets
      • DataApps
      • Prediction Service
      • How to
        • How to Authenticate
        • Create a new project
        • Create a Custom Environment
        • Add a dataset
        • Add a recipe to the dataset
        • Manage cloud connection
        • Code recipes
        • Display a template on the UI
        • Create Global Variables
        • Scheduler
        • Create new scenarios
        • Create Template
        • Use a template in a flow notebook
      • Reference Implementations
        • DataApps
        • Artifacts
        • Connectors
        • Feature Store
        • ML model
        • ML Pipeline
        • Multiple Files
      • Sample Projects
        • Model build and predict
    • Rapid Rag
  • Additional Reading
    • Release Notes
      • May 14, 2025
      • April 21, 2025
      • April 01, 2025
      • Mar 18, 2025
      • Feb 27, 2025
      • Jan 27, 2025
      • Dec 26, 2024
      • Nov 26, 2024
      • Oct 24, 2024
      • Sep 11, 2024
        • Aug 08, 2024
      • Aug 29, 2024
      • July 18, 2024
      • July 03, 2024
      • June 19, 2024
      • May 30, 2024
      • May 15, 2024
      • April 17, 2024
      • Mar 28, 2024
      • Mar 20, 2024
      • Feb 28, 2024
      • Feb 19, 2024
      • Jan 30, 2024
      • Jan 16, 2024
      • Dec 12, 2023
      • Nov 07, 2023
      • Oct 25, 2023
      • Oct 01, 2024
    • Glossary
Powered by GitBook
On this page
  • Segments
  • Creating a custom segment
  • Managing segments
  • Scenarios
  • Creating a scenario
  • Running a scenario with the segmented data
  • Managing scenarios
  1. BASIC
  2. Projects

Segments and Scenarios

PreviousPrediction SchedulerNextDataApps

Last updated 1 month ago

Segments

Segmentation allows you to create models on different segments of the input dataset by splitting this dataset into groups. The data is segmented based on the EDA analysis. After gaining insights from the charts generated doing EDA analysis, users can learn what data segment model will help the business.

The first step in the segmentation process is to create a data segment with conditions and then associate this segment with a scenario inside a project. Subsequently, configure the global variables values for this scenario to save the models created for this data segment into this variable. After the scenario is created for the segmented data, you can run this scenario to execute the entire canvas flow for this segment to create a custom model. This model is further used to train the training dataset and generate metrics.

Creating a custom segment

Use this procedure to create a segment from the input dataset. Segment creation is must to create a scenario.

  1. Select the project within which you want to create scenarios.

  2. Select the input dataset block from the flow. The pull-out window appears.

  3. Click View. The dataset page is displayed.

  4. Click the plus icon and select Segment.

  5. Specify this information in the New Segment section, on the Segments tab:

Segment Name: The name of the segment.

Description: The description for the segment.

Row Limit: The number of rows you want to segment from the input dataset.

  1. Add rules for the segment in the Condition Builder section.

  2. Use AND and OR logical operators to add multiple rules using the ADD GROUP option.

    • AND - This executes the condition only if all the set rules are satisfied.

    • OR - The executes the condition if one of the rules is satisfied.

    Important: You must select the left value, operator and right value to configure the condition for a rule.

  3. Select the column, which is the left value from the field drop-down list. This list populates all the column names in the input dataset.

  4. Select a conditional operator from the list. Possible values:

    • Greater Than

    • Less Than

    • Equal To

    • Not Equal To

    • Greater Or Equal

    • Lesser Or Equal

    • Is Null

    • Is Not Null

  5. Provide the right value in the Value field based on the selected field on the left side. The results that match the condition will be displayed.

    You can also perform these actions:

    • delete a condition, using the delete icon corresponding to the condition you want to delete.

    • add a new rule, using the ADD RULE option.

  6. Click TEST to see the segment preview.

    For instance, age (column name or left value) greater than (operator) 30 (right value), then the dataset will return with the list of passengers above 30 years.

    Warning: The platform considers the names in the dataset starting with @ as a global variable. To avoid this, @ must be added.

  7. Click CREATE to create the segment.

Managing segments

Use this procedure to manage segments in a project.

  1. Select the dataset block that you have uploaded onto the canvas. This opens the pull-out window.

  2. Click View to view the records in the dataset. The records are displayed in the tabular format.

  3. Click the Segments tab to view the list of segments created in this project.

  4. Review this information on the Segments tab:

Name: The name of the segment.

Description: The description given for the segment.

Created: The date and time at which the segment was created.

Rows: The number of rows which are to be segmented from the dataset.

You can perform these actions clicking the ellipses icon corresponding to a specific segment:

  • edit the segment details, using the EDIT option corresponding to the segment you want to modify. This takes you to the New Segment page.

  • delete a segment, using the DELETE option corresponding to the segment you want to delete.

Scenarios

Scenario is created in a project to run the data pipeline on the segmented datasets.

Creating a scenario

Use this procedure to create a scenario and add segment to run the flow with this segment.

To create a scenario:

  1. Select the project to which you want to add a scenario.

  2. Click the Scenarios tab from the project navigation menu on the left.

  3. Click the plus icon |ico13|. The Segments list page is displayed to add to the scenario.

    Note: You can click on the scenario name and type the custom name you want to provide.

  4. Search for the segment that you want to add to the scenario in the search bar.

  5. Select the Full dataset segment or Custom Segments. You can see all the custom created segments under custom segments.

    If there are multiple custom segments, you can select the check box corresponding to the segment you want to add to the scenario.

  6. Click the Variables tab. You can only add variables if the global variables are configured in the Project settings.

  7. Click ADD VARIABLE.

  8. Select key from the drop-down list.

  9. Specify the value. For instance, you configure the key as model, then the model created for this segment is stored in this value.

    If there are multiple global variables configured for the project, you can add those using the +ADD VARIABLE option.

    You can see the key values in the drop-down list only if these are configured in the Project settings of the project in which you are creating the scenario.

  10. Click Save to save the global variables to the scenario.

  11. Click SAVE to save the configured segment to this scenario.

Running a scenario with the segmented data

Use this procedure to run the scenario flow with the segmented data.

To run a scenario flow with the segmented data:

  1. Select the project in which you have created the scenarios. You are redirected to the Canvas page.

  2. Click the caret icon and click on DEFAULT to see the scenarios created for this project. You can select the scenario for which you want to execute the data pipeline.

    This switches to the flow page of scenario that should be executed.

  3. Click the run icon to run the scenario. Until you run the flow, all the components or blocks on the pipeline will remain in the unbuilt state.

    You can use the SCENARIO SETTINGS option to modify the segment details and associated variables.

Managing scenarios

Use this procedure to manage scenarios created in a project.

  1. Select the project to which you want to add a scenario.

  2. Click the Scenarios tab from the project navigation menu on the left.

    You only see a default scenario if there are no scenarios created in a project.

  3. Review this information:

Scenario Name: The name of the scenario.

Segments: The segment associated with this scenario.

Created: The date and time at which the scenario was created.

Status: The status of the scenario created. Possible values include

  • Created

  • Error

  • Pending

  • Success

You can perform these actions clicking the ellipses icon corresponding to a specific scenario:

  • edit the segment details in a scenario, using the EDIT option. This takes you to the segments list page.

  • run the scenario, using the RUN option. This takes to the canvas page to run the flow for the segmented data in this scenario.

  • view the canvas page of this scenario in full-screen, using the DISPLAY ON CANVAS icon.

  • delete the scenario, using the DELETE option.

On the scenarios list page, you can also perform these actions:

  • Search for a specific scenario by specifying the scenario name in the search bar.

  • Create a new scenario, using the + Scenario button on this page.

For more information to create a custom segment, see .

For more information to configure global variables, see .

configuring global variables at a project level
Creating a custom segment
View Data
Add Segment
Segment
Segment Preview
Segment Preview 1
Segments Tab
Action Items Segments
New Scenario 1
New Scenario
Custom Segment
Add Variables
Scenario Run
Run Scenario
Scenario List View
Actions Scenarios