Data Structure

After a data source is created, you can access the data source details page to manage data quality. Data quality management extracts data features from data sources to generate data in JSON format in RES. You can then check whether the data is valid through quality inspection jobs.

Data Structure Overview

The main purpose of the data structure job is to read offline data uploaded by users, parse the data format of user features and item features, collect statistics on all behaviors, and save the data format generated after parsing.

Prerequisites

You have created a data source by following the instructions provided in Creating an Offline Data Source.

Procedure

  1. Log in to the RES management console. Choose Data Sources from the left navigation bar. The Data Sources page is displayed. Click the name of the target data source. The data source details page is displayed.
  2. In the Operation Procedure area, click Identify under Data Structure. On the Identification page that is displayed, confirm the feature information. If no modifications are needed, click Yes.
  3. When the identification is completed, click Manual Confirmation.
  4. On the Extract Feature tab page, confirm the identified data and click OK.

    This page contains information such as user features, item features, positive behavior types, and negative behavior types. For details, see Table 1.

    Figure 1 Confirming the features to be extracted
    Table 1 Parameters.

    Parameter

    Description

    User Feature

    The extracted user features and feature types are displayed in the list. You can click to add user features based on service requirements. Click next to a feature to delete it.

    Item Feature

    The extracted item features and feature types are displayed in the list. The features will be applied to the selected fields. You can click to add item features based on service requirements. Click next to a feature to delete it.

    Select Interest feature or Keyword extraction from the drop-down list beside Applied to .

    • Interest feature is used to collect statistics on users' interest tags and generate a feature named interested_original feature name.
    • Keyword extraction is only performed when the keyword is a content or title and generates a feature named keyword_original feature name.

    Positive Behavior Type

    The extracted positive behaviors are displayed in the drop-down list. You can click to add a positive behavior based on the service requirements. Click to delete unnecessary positive behaviors.

    Select Interest feature or Item popularity from the drop-down list beside Applied to .

    • Interest attribute is used to collect statistics on the historical records of user behavior and generate a feature named history_original feature name.
    • Item popularity value is used to collect statistics on item popularity to generate a feature named statistics_hotValue.

    Negative Behavior Type

    The extracted negative behaviors are displayed in the drop-down list. You can click to add a negative behavior type based on the service requirements. Click to delete unnecessary negative behaviors.

    Select Interest feature or Item popularity from the drop-down list beside Applied to.