# tPredictを他の機械学習コンポーネントと共に使用

tPredictとtNaiveBayesModel、またはtKMeansModelがジョブかサブジョブにある場合は、特定の設定が必要です。

## このタスクについて

* この手順は、tPredictで[Model computed in the current job] (現在のジョブで計算されたモデル)設定を使用したい場合に適用されます。
* コンポーネントが正しく設定されないとジョブは失敗します。

## 手順

1. tPredictの基本設定で、[Model computed in the current job] (現在のジョブで計算されたモデル)を選択します。

   ![](https://help.qlik.com/talend/ja-JP/components/8.0/Resources/images/tpredict-model-exception_s.png)
2. tNaiveBayesModelかtKMeansModelの基本設定で、[Save the model on file system] (モデルをファイルシステムに保存)をオフにします。

   ![](https://help.qlik.com/talend/ja-JP/components/8.0/Resources/images/tpredict-model-exception-tkmeansmodel_s.png)

   [Model computed in the current job] (現在のジョブで計算されたモデル)が選択されると、モデルはジョブから計算されます。[Save the model on file system] (モデルをファイルシステムに保存)を選択する場合は、モデルが既に存在するので、そのモデルを使う必要があります。これらの設定を両方選択すると、競合が発生し、ジョブは失敗します。