# トレーニングデータスキーマ参照を作成

このセクションでは、トレーニングデータスキーマ参照を作成して、機械学習ルーチンを開発する方法について説明します。

## 手順

1. 事前に作成したHDFS接続を右クリックして、[Retrieve Schema] (スキーマを取得)を選択します。
2. /user/puccini/machinelearning/decisiontrees/marketing/marketing\_campaign\_train.csvにある、事前ロードされたトレーニングデータファイルに移動します。

   ![](https://help.qlik.com/talend/ja-JP/components/7.3/Resources/images/developing_a_machine_learning_routine_with_talend_and_spark_06.png)
3. [Next] (次へ)をクリックし、スキーマに名前を付け、必要に応じてデータ型を調整します。

   この場合は、デフォルトは正確です。

   ![](https://help.qlik.com/talend/ja-JP/components/7.3/Resources/images/developing_a_machine_learning_routine_with_talend_and_spark_07.png)
4. [Finish] (終了)をクリックします。
5. パレットにtHDFSConfigurationコンポーネントを追加します。
6. [PropertyType] (プロパティタイプ)を[Repository] (リポジトリー)に設定します。
7. 作成したHDFS接続(MarketingCampaignData)を選択します。

   ![](https://help.qlik.com/talend/ja-JP/components/7.3/Resources/images/developing_a_machine_learning_routine_with_talend_and_spark_08.png)