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.

../_images/viewdata.png
  1. Click the plus icon ico13 and select Segment.

../_images/addsegment.gif
  1. 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.

  1. 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.

  1. 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

  2. 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.

../_images/segment.png

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.

  1. 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.

../_images/Segmentpreview.png

Warning

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

  1. Click CREATE to create the segment.

../_images/Segmentpreview1.png

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.

../_images/segmentstab.png
  1. 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.

../_images/actionitemssegments.png

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.

../_images/newscenario1.gif
  1. Click the plus icon ico13. The Segments list page is displayed to add to the scenario.

../_images/newscenario.png

Note

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

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

  2. 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.

For more information to create a custom segment, see Creating a custom segment.

../_images/customsegment.png
  1. Click the Variables tab. You can only add variables if the global variables are configured in the Project settings.

  2. Click ADD VARIABLE.

  3. Select key from the drop-down list.

  4. 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.

../_images/addvariables.png

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.

For more information to configure global variables, see configuring global variables at a project level.

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

  2. 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.

../_images/scenariorun.png

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

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

../_images/runscenario.png

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.

../_images/scenariolistview.png

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

  1. 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.

../_images/actionsscenarios.png

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.