建立零售銷售結構描述和資料集
此教學課程提供您所有其他Adobe Experience Platform Data Science Workspace教學課程所需的先決條件和資產。 完成後,Experience Platform上的零售銷售結構描述和資料集將可供您和組織成員使用。
快速入門
開始進行本教學課程前,您必須具備下列必要條件:
- 
                  
存取Adobe Experience Platform。 如果您沒有Experience Platform中組織的存取權,請在繼續之前與您的系統管理員交談。
 - 
                  
授權進行Experience Platform API呼叫。 完成驗證及存取Adobe Experience Platform API教學課程以取得下列值,以便成功完成本教學課程:
- 授權: 
{ACCESS_TOKEN} - x-api-key: 
{API_KEY} - x-gw-ims-org-id: 
{ORG_ID} - 使用者端密碼: 
{CLIENT_SECRET} - 使用者端憑證: 
{PRIVATE_KEY} 
 - 授權: 
 - 
                  
零售銷售方式的範例資料和來源檔案。 從Data Science WorkspaceAdobe公用Git存放庫下載此教學課程和其他教學課程所需的資產。
 - 
                  
Python >= 2.7和下列Python個套件:
 - 
                  
實際瞭解本教學課程中所使用的下列概念:
 
建立零售銷售結構描述和資料集
使用提供的啟動程式指令碼,會自動建立零售銷售結構描述和資料集。 請依序遵循下列步驟:
設定檔案
- 
                  
在Experience Platform教學課程資源套件中,導覽至目錄
bootstrap,並使用適當的文字編輯器開啟config.yaml。 - 
                  
在
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} - 
                  
編輯
Platform區段下找到的值,範例如下所示:code language-yaml Platform: platform_gateway: https://platform.adobe.io ims_token: {ACCESS_TOKEN} ingest_data: "True" build_recipe_artifacts: "False" kernel_type: Pythonplatform_gateway: API呼叫的基本路徑。 請勿修改此值。ims_token:您的{ACCESS_TOKEN}會前往這裡。ingest_data:在本教學課程中,請將此值設定為"True"以建立零售銷售結構描述和資料集。"False"的值只會建立結構描述。build_recipe_artifacts:在本教學課程中,請將此值設為"False"以防止指令碼產生配方成品。kernel_type:配方成品的執行型別。 如果Python設為build_recipe_artifacts,則此值保持為"False",否則請指定正確的執行型別。
 - 
                  
在
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 
執行啟動程式指令碼
- 
                  
開啟您的終端機應用程式,並導覽至Experience Platform教學課程資源目錄。
 - 
                  
將
bootstrap目錄設定為目前的工作路徑,並輸入下列命令執行bootstrap.pyPython指令碼:code language-bash python bootstrap.pynote note NOTE 指令碼可能需要幾分鐘才能完成。  
後續步驟
成功完成啟動程式指令碼後,可以在Experience Platform上檢視零售銷售輸入和輸出結構描述及資料集。 檢視預覽結構描述資料教學課程
以取得詳細資訊。
您也已成功使用提供的啟動程式指令碼,將零售業樣本資料擷取到Experience Platform。
若要繼續使用內嵌的資料:
- 使用 Jupyter Notebooks 分析您的資料
                  
- 在資料科學Workspace中使用Jupyter Notebooks來存取、探索、視覺化和瞭解您的資料。
 
 - 將來源檔案封裝到配方中
                  
- 按照本教學課程瞭解如何將您自己的模型封裝在可匯入的「配方」檔案中,並帶入Data Science Workspace。