Combined Job

Creating a Combined Job

A combined job allows you to perform offline computing tasks and obtain the candidate set IDs using the selected strategies and rules. The obtained candidate set IDs are used in online flows to generate satisfactory recommendation results. For details, see Figure 1.

Figure 1 Combined job

To create a combined job, perform the following steps:

Setting Basic Information

In the Enter Basic Information area, enter the values for Name and Description.

  1. Log in to the RES management console. In the navigation tree on the left, choose Offline Jobs > Combined Jobs. The Combined Jobs page is displayed.
  2. On the displayed page, click Create to open Create Combined Job page.
  3. Set Name, Scenario, and Description. Parameters marked with * are mandatory.
    • Name: Name of the combined job to be created, which must start with Standard- and consists of only letters, digits, hyphens (-), and underscores (_). The name must contain no more than 64 characters.
    • Scenario: You can select a scenario created on the Global Configurations page.
  4. After entering all parameter values in the Enter Basic Information tab, click Next.

Selecting a Resource

When using RES, you need to select a compute engine, storage platform, and data source. The compute engine calculates data, and the storage platform stores the processed data. The selected resources are those bound in Resources.

  1. Enter the Select Resources tab.
  2. Enter the values for relevant parameters by referring to Table 1.
    Table 1 Parameters

    Module

    Parameter

    Description

    Compute Engine

    Service Name

    Name of the selected service that functions as the compute engine. The compute engine can perform offline and nearline computing tasks. The default value is DLI.

    Cluster Name

    Name of the selected cluster. Currently, only the DLI clusters bound in Resources are available.

    Configuration File Path

    OBS path for storing the JSON configuration files that are automatically generated when creating jobs. The compute engine uses these files to perform offline computing tasks.

    Name

    Name of the required resource. For details about the resource specifications required by normal running of the DLI jobs, click View.

    The options can be the default value or those added in Global Configurations.

    Storage Platform

    Service Name

    Name of the selected service that functions as the storage platform and stores the online data and recommendation candidate sets. Currently, only CloudTable is available.

    Cluster Name

    Name of the selected cluster. The CloudTable clusters bound in Resources are supported.

    Table Name

    Name of a stored table.

    Data Source

    Standard

    1. Options are the following tables already stored in OBS buckets:
      • User Attribute Table
      • Item Attribute List
      • User Operation Behavior Table

      For details about the data formats of tables above, see Offline Data Sources.

      For details about how to upload a file to OBS, see Getting Started.

    2. In the Source Data Address column, click to select an OBS path where raw data resides.
    3. In the Data Format column, the options are csv, parquet, json, and orc.
      When csv is set to Data Format, set the following parameters:
      • Table Header. The options are Yes or No.
      • Delimiter. The options are Comma (,), Vertical bar (|), and Tab character (\t). You can also customize a delimiter.
      • Quotation Character. The options are Single quotation mark (') and Double quotation mark("). You can also customize a quotation character.
      • Escape Character. The option is Backslash (\). You can also customize an escape character.
    4. In the Operation column, click Clear to delete the data source of the corresponding table.

    General

    General data is generated by the Initial User Profile-Item Profile-Standard Wide Table Generation operator in Featuring Engineering. General source data address is the same as the Result Save Path of the Initial User Profile-Item Profile-Standard Wide Table Generation operator.

    NOTE:

    Invoke operators in Feature Engineering before using the general data.

    1. General Data: Also called JSON data, which comes from files containing user features, item features, and user behaviors extracted from User Attribute Table, Item Attribute List, and User Operation Behavior Table.
    2. Time Range: A period for collecting behavior data. You can specify the start and/or end time, or leave it blank.
  3. After entering all parameter values in the Select Resources tab, click Next.

Adding a Retrieval Strategy

You can select an appropriate retrieval strategy tailored to your business requirements. The retrieval strategy configures the offline computing logic and starts an offline computing task to generate recommendation candidate sets.

For more details, click the following links:

To set a retrieval strategy, perform the following steps:

  1. On the Create Combined Job page, enter the Add Retrieval Strategies tab, click Add Retrieval Strategy, and select a strategy from the drop-down list box based on business requirements. See Figure 2.
    Figure 2 Add Retrieval Strategies tab
  2. (Optional) Locate the row where the target retrieval strategy resides and click View to view input and output data.
  3. (Optional) On the displayed page, you can click Set Parameters to reset the parameters of the target strategy.
  4. You can move your cursor to the question mark next to the strategy name to view the help information. After the strategy is configured, click Next.

Adding a Filter Rule

You can use filter rules to configure the filter mode to filter out inappropriate candidates from candidate sets. UUIDs of candidate sets generated by filter rules are used for the final generation of recommendation results.

To add a filter rule, perform the following steps:

  1. On the Create Combined Job page, enter the Add Filter Rules tab after configuring the retrieval strategy.
  2. Set relevant parameters. For details, see Filter Rule.
  3. After completing all configurations in the Add Filter Rule tab, click Next.

Adding a Ranking Strategy

You can use the ranking strategy to perform secondary ranking on candidate sets generated by the retrieval strategy. To use the ranking strategy normally, submit the Ranking Training Sample Preprocessing job in Feature Engineering. The ranking strategy can be used only after this job is created.

For more details, click the following links:

  1. On the Create Combined Job page, enter the Add a Ranking Strategy tab. For details, see Figure 3. You can select an appropriate strategy from the drop-down list box of Add Ranking Strategy. For details, see Ranking Strategy.
    Figure 3 Add Ranking Strategies tab
  2. (Optional) Select a strategy you want to delete and click Delete to delete this strategy.
  3. You can move your cursor to the question mark next to the strategy name to view the help information. After the strategy is configured, click Next.

Previewing the Configurations

In the Preview the Configurations tab, you can view the name of the created combined job, information of the selected resources, details of the retrieval strategy, filter rule, and ranking strategy. If there is no need for modification, click OK.

Generally, it may take several minutes or tens of minutes to run the job. The duration depends on the amount of your selected data and resources. You can switch to the combined job list to view the basic information about combined jobs.

In the combined job list, the status of the newly created offline job is Computing. When it changes to Successful, the job execution is complete. The generated candidate set ID will be used by the online service to generate a recommendation list. If the status of an offline job changes to Failed, click the job name. On the job details page that is displayed, view the job logs and troubleshoot the faults.