> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ClassificationTrainer オブジェクトの Train メソッド

このメソッドは、[**TrainingState**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingdocument.md#trainingstate) プロパティが DTS\_ForTraining に設定されたドキュメントに属するバッチ内のページを使用して、分類器を学習させます。次に、このプロパティが DTS\_ForTesting に設定されたドキュメントのページで学習結果をテストし、現在使用中の分類器のテスト実行結果と比較します。テストの統計情報の全体は、[**TrainingResults**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/trainingresults.md) オブジェクトで返されます。

## 構文

```vb Visual Basic .NET theme={null}
Function Train() As TrainingResults
```

```cpp C++ theme={null}
HRESULT Train(
  ITrainingResults* Result
);
```

## パラメーター

**Result**

\[out, retval] 出力される [**TrainingResults**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/trainingresults.md) オブジェクトのインターフェースポインターを受け取る [**ITrainingResults**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/trainingresults.md)\*\*\*\*\* 変数へのポインター。学習結果には、新しい分類器とバッチで現在使用中の分類器それぞれのテスト統計に加え、新しい分類器の方が優れているかどうかの推奨が含まれます。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

[**ClassificationTrainer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainer.md)
