创建零售架构和数据集

本教程提供了所有其他Adobe Experience Platform Data Science Workspace教程所需的先决条件和资源。 完成后,零售架构和数据集将在Experience Platform上为您和您的组织成员提供。

快速入门

在开始本教程之前,您必须满足以下先决条件:

创建零售架构和数据集

使用提供的引导脚本自动创建零售架构和数据集。 请按顺序执行以下步骤:

配置文件

  1. 在Experience Platform教程资源包中,导航到目录bootstrap,然后使用适当的文本编辑器打开config.yaml

  2. Enterprise部分下,输入以下值:

    code language-yaml
    Enterprise:
        api_key: {API_KEY}
        org_id: {ORG_ID}
        tech_acct: {technical_account_id}
        client_secret: {CLIENT_SECRET}
        priv_key_filename: {PRIVATE_KEY}
    
  3. 编辑在Platform部分下找到的值,如下所示:

    code language-yaml
    Platform:
        platform_gateway: https://platform.adobe.io
        ims_token: {ACCESS_TOKEN}
        ingest_data: "True"
        build_recipe_artifacts: "False"
        kernel_type: Python
    
    • platform_gateway: API调用的基本路径。 请勿修改此值。
    • ims_token:您的{ACCESS_TOKEN}转到此处。
    • ingest_data:在本教程中,请将此值设置为"True"以创建零售架构和数据集。 值为"False"将仅创建架构。
    • build_recipe_artifacts:在本教程中,请将此值设置为"False"以防止脚本生成方法构件。
    • kernel_type:方法工件的执行类型。 如果build_recipe_artifacts设置为"False",则将此值保留为Python,否则请指定正确的执行类型。
  4. Titles部分下,为零售样本数据适当提供以下信息,并在进行编辑后保存并关闭文件。 示例如下所示:

    code language-yaml
    Titles:
        input_class_title: retail_sales_input_class
        input_mixin_title: retail_sales_input_mixin
        input_mixin_definition_title: retail_sales_input_mixin_definition
        input_schema_title: retail_sales_input_schema
        input_dataset_title: retail_sales_input_dataset
        file_replace_tenant_id: DSWRetailSalesForXDM0.9.9.9.json
        file_with_tenant_id: DSWRetailSales_with_tenant_id.json
        is_output_schema_different: "True"
        output_mixin_title: retail_sales_output_mixin
        output_mixin_definition_title: retail_sales_output_mixin_definition
        output_schema_title: retail_sales_output_title
        output_dataset_title: retail_sales_output_dataset
    

运行引导脚本

  1. 打开您的终端应用程序并导航到Experience Platform教程资源目录。

  2. bootstrap目录设置为当前工作路径,并通过输入以下命令运行bootstrap.py Python脚本:

    code language-bash
    python bootstrap.py
    
    note note
    NOTE
    脚本可能需要几分钟才能完成。

后续步骤

成功完成bootstrap脚本后,可以在Experience Platform上查看Retail Sales输入输出架构和数据集。 请参阅预览架构数据教程
以了解更多信息。

您还已成功使用提供的引导脚本将零售业样本数据摄取到Experience Platform。

要继续使用摄取的数据,请执行以下操作:

recommendation-more-help
cc79fe26-64da-411e-a6b9-5b650f53e4e9