class Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::TrainResult

Response of the Train API call.

Attributes

errors[RW]

@return [Array<FormOperationError>] Errors returned during the training operation.

model_id[RW]

@return Identifier of the model.

training_documents[RW]

@return [Array<FormDocumentReport>] List of documents used to train the model and the train operation error reported by each.

Private Class Methods

mapper() click to toggle source

Mapper for TrainResult class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/1.0-preview/generated/azure_cognitiveservices_formrecognizer/models/train_result.rb, line 32
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TrainResult',
    type: {
      name: 'Composite',
      class_name: 'TrainResult',
      model_properties: {
        model_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'modelId',
          type: {
            name: 'String'
          }
        },
        training_documents: {
          client_side_validation: true,
          required: false,
          serialized_name: 'trainingDocuments',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FormDocumentReportElementType',
                type: {
                  name: 'Composite',
                  class_name: 'FormDocumentReport'
                }
            }
          }
        },
        errors: {
          client_side_validation: true,
          required: false,
          serialized_name: 'errors',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FormOperationErrorElementType',
                type: {
                  name: 'Composite',
                  class_name: 'FormOperationError'
                }
            }
          }
        }
      }
    }
  }
end