你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get Iterations - Get Iterations

获取项目的迭代。

GET {Endpoint}/customvision/v3.3/training/projects/{projectId}/iterations

URI 参数

Name In Required Type Description
Endpoint
path True
  • string

支持的认知服务终结点。

projectId
path True
  • string
uuid

项目 ID。

请求头

Name Required Type Description
Training-Key True
  • string

响应

Name Type Description
200 OK

OK

Media Types: "application/json", "application/xml", "text/xml"

Other Status Codes

错误响应

Media Types: "application/json", "application/xml", "text/xml"

安全性

Training-Key

Type: apiKey
In: header

示例

Successful GetIterations request

Sample Request

GET https://westus.api.cognitive.microsoft.com/customvision/v3.3/training/projects/64b822c5-8082-4b36-a426-27225f4aa18c/iterations

Sample Response

[
  {
    "id": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
    "name": "Iteration 1",
    "status": "Completed",
    "created": "2017-12-18T22:40:29Z",
    "lastModified": "2017-12-18T22:40:41Z",
    "trainedAt": "2017-12-18T22:40:41Z",
    "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
    "exportable": false,
    "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31",
    "exportableTo": [
      "ONNX",
      "DockerFile",
      "TensorFlow",
      "CoreML"
    ],
    "trainingType": "Regular",
    "reservedBudgetInHours": 0,
    "publishName": ""
  },
  {
    "id": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
    "name": "Iteration 2",
    "status": "Completed",
    "created": "2017-12-18T22:40:36Z",
    "lastModified": "2017-12-19T15:47:02Z",
    "trainedAt": "2017-12-19T15:47:02Z",
    "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
    "exportable": false,
    "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31",
    "exportableTo": [
      "ONNX",
      "DockerFile",
      "TensorFlow",
      "CoreML"
    ],
    "trainingType": "Regular",
    "reservedBudgetInHours": 5,
    "publishName": "model1"
  },
  {
    "id": "3adaf7b2-18fc-4376-9da4-b5ea160a7cf5",
    "name": "Iteration 3",
    "status": "New",
    "created": "2017-12-19T15:46:59Z",
    "lastModified": "2017-12-19T15:46:59Z",
    "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
    "exportable": false,
    "domainId": null,
    "exportableTo": [
      "ONNX",
      "DockerFile",
      "TensorFlow",
      "CoreML"
    ],
    "trainingType": "Regular",
    "reservedBudgetInHours": 0,
    "publishName": ""
  }
]

定义

Classifier

获取项目的分类类型。

CustomVisionError
CustomVisionErrorCodes

错误代码。

Iteration

要通过 JSON 发送的迭代模型。

TrainingType

获取迭代的训练类型。

Classifier

获取项目的分类类型。

Name Type Description
Multiclass
  • string
Multilabel
  • string

CustomVisionError

Name Type Description
code

错误代码。

message
  • string

说明服务报告的错误的消息。

CustomVisionErrorCodes

错误代码。

Name Type Description
BadRequest
  • string
BadRequestCannotMigrateProjectWithName
  • string
BadRequestClassificationTrainingValidationFailed
  • string
BadRequestCustomerManagedKeyRevoked
  • string
BadRequestDetectionTrainingNotAllowNegativeTag
  • string
BadRequestDetectionTrainingValidationFailed
  • string
BadRequestDomainNotSupportedForAdvancedTraining
  • string
BadRequestExceedIterationPerProjectLimit
  • string
BadRequestExceedProjectLimit
  • string
BadRequestExceedTagPerImageLimit
  • string
BadRequestExceedTagPerProjectLimit
  • string
BadRequestExceededBatchSize
  • string
BadRequestExceededQuota
  • string
BadRequestExportAlreadyInProgress
  • string
BadRequestExportPlatformNotSupportedForAdvancedTraining
  • string
BadRequestExportValidationFailed
  • string
BadRequestExportWhileTraining
  • string
BadRequestImageBatch
  • string
BadRequestImageDimensions
  • string
BadRequestImageExceededCount
  • string
BadRequestImageFormat
  • string
BadRequestImageMetadataKey
  • string
BadRequestImageMetadataValue
  • string
BadRequestImageRegions
  • string
BadRequestImageSizeBytes
  • string
BadRequestImageStream
  • string
BadRequestImageTags
  • string
BadRequestImageUrl
  • string
BadRequestInvalid
  • string
BadRequestInvalidArtifactUri
  • string
BadRequestInvalidEmailAddress
  • string
BadRequestInvalidIds
  • string
BadRequestInvalidImportToken
  • string
BadRequestInvalidPublishName
  • string
BadRequestInvalidPublishTarget
  • string
BadRequestIterationDescription
  • string
BadRequestIterationIsNotTrained
  • string
BadRequestIterationIsPublished
  • string
BadRequestIterationName
  • string
BadRequestIterationNameNotUnique
  • string
BadRequestIterationNotPublished
  • string
BadRequestIterationValidationFailed
  • string
BadRequestMultiClassClassificationTrainingValidationFailed
  • string
BadRequestMultiLabelClassificationTrainingValidationFailed
  • string
BadRequestMultipleGeneralProductTag
  • string
BadRequestMultipleNegativeTag
  • string
BadRequestNegativeAndRegularTagOnSameImage
  • string
BadRequestNotLimitedTrial
  • string
BadRequestNotSupported
  • string
BadRequestOperationNotSupported
  • string
BadRequestPredictionIdsExceededCount
  • string
BadRequestPredictionIdsMissing
  • string
BadRequestPredictionInvalidApplicationName
  • string
BadRequestPredictionInvalidQueryParameters
  • string
BadRequestPredictionResultsExceededCount
  • string
BadRequestPredictionTagsExceededCount
  • string
BadRequestProjectDescription
  • string
BadRequestProjectDuplicated
  • string
BadRequestProjectImagePreprocessingSettings
  • string
BadRequestProjectName
  • string
BadRequestProjectNameNotUnique
  • string
BadRequestProjectUnknownClassification
  • string
BadRequestProjectUnknownDomain
  • string
BadRequestProjectUnsupportedDomainTypeChange
  • string
BadRequestProjectUnsupportedExportPlatform
  • string
BadRequestRequiredParamIsNull
  • string
BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining
  • string
BadRequestSubscriptionApi
  • string
BadRequestTagDescription
  • string
BadRequestTagName
  • string
BadRequestTagNameNotUnique
  • string
BadRequestTagType
  • string
BadRequestTrainingAlreadyInProgress
  • string
BadRequestTrainingNotNeeded
  • string
BadRequestTrainingNotNeededButTrainingPipelineUpdated
  • string
BadRequestTrainingValidationFailed
  • string
BadRequestUnpublishFailed
  • string
BadRequestUnsupportedDomain
  • string
BadRequestWorkspaceCannotBeModified
  • string
BadRequestWorkspaceNotDeletable
  • string
Conflict
  • string
ConflictInvalid
  • string
ErrorExporterInvalidClassifier
  • string
ErrorExporterInvalidFeaturizer
  • string
ErrorExporterInvalidPlatform
  • string
ErrorFeaturizationAugmentationError
  • string
ErrorFeaturizationAugmentationUnavailable
  • string
ErrorFeaturizationInvalidFeaturizer
  • string
ErrorFeaturizationQueueTimeout
  • string
ErrorFeaturizationServiceUnavailable
  • string
ErrorFeaturizationUnrecognizedJob
  • string
ErrorInvalid
  • string
ErrorIterationCopyFailed
  • string
ErrorPrediction
  • string
ErrorPredictionModelNotCached
  • string
ErrorPredictionModelNotFound
  • string
ErrorPredictionServiceUnavailable
  • string
ErrorPredictionStorage
  • string
ErrorPreparePerformanceMigrationFailed
  • string
ErrorProjectExportRequestFailed
  • string
ErrorProjectImportRequestFailed
  • string
ErrorProjectInvalidDomain
  • string
ErrorProjectInvalidPipelineConfiguration
  • string
ErrorProjectInvalidWorkspace
  • string
ErrorProjectTrainingRequestFailed
  • string
ErrorRegionProposal
  • string
ErrorUnknown
  • string
ErrorUnknownBaseModel
  • string
Forbidden
  • string
ForbiddenDRModeEnabled
  • string
ForbiddenInvalid
  • string
ForbiddenUser
  • string
ForbiddenUserDisabled
  • string
ForbiddenUserDoesNotExist
  • string
ForbiddenUserInsufficientCapability
  • string
ForbiddenUserResource
  • string
ForbiddenUserSignupAllowanceExceeded
  • string
ForbiddenUserSignupDisabled
  • string
NoError
  • string
NotFound
  • string
NotFoundApimSubscription
  • string
NotFoundDomain
  • string
NotFoundImage
  • string
NotFoundInvalid
  • string
NotFoundIteration
  • string
NotFoundIterationPerformance
  • string
NotFoundProject
  • string
NotFoundProjectDefaultIteration
  • string
NotFoundTag
  • string
UnsupportedMediaType
  • string

Iteration

要通过 JSON 发送的迭代模型。

Name Type Description
classificationType

获取项目的分类类型。

created
  • string

获取完成此迭代的时间。

domainId
  • string

获取或设置已训练迭代的域的 GUID。

exportable
  • boolean

是否可以将迭代导出到另一种格式进行下载。

exportableTo
  • string[]

此迭代可以导出到的一组平台。

id
  • string

获取迭代的 ID。

lastModified
  • string

获取上次修改此迭代的时间。

name
  • string

获取或设置迭代的名称。

originalPublishResourceId
  • string

此迭代最初发布到的资源提供程序 ID。

projectId
  • string

获取迭代的项目 ID。

publishName
  • string

已发布模型的名称。

reservedBudgetInHours
  • integer

获取迭代的保留高级训练预算。

status
  • string

获取当前迭代状态。

trainedAt
  • string

获取上次修改此迭代的时间。

trainingTimeInMinutes
  • integer

获取迭代的训练时间。

trainingType

获取迭代的训练类型。

TrainingType

获取迭代的训练类型。

Name Type Description
Advanced
  • string
Regular
  • string