建立零售銷售結構描述和資料集

此教學課程提供您所有其他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
    指令碼可能需要幾分鐘才能完成。

後續步驟

成功完成啟動程式指令碼後,可以在Experience Platform上檢視零售銷售輸入和輸出結構描述及資料集。 檢視預覽結構描述資料教學課程
以取得詳細資訊。

您也已成功使用提供的啟動程式指令碼,將零售業樣本資料擷取到Experience Platform。

若要繼續使用內嵌的資料:

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