...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.2/customvision/training/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.2/customvision/training

     1  package training
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  // Classifier enumerates the values for classifier.
    10  type Classifier string
    11  
    12  const (
    13  	// Multiclass ...
    14  	Multiclass Classifier = "Multiclass"
    15  	// Multilabel ...
    16  	Multilabel Classifier = "Multilabel"
    17  )
    18  
    19  // PossibleClassifierValues returns an array of possible values for the Classifier const type.
    20  func PossibleClassifierValues() []Classifier {
    21  	return []Classifier{Multiclass, Multilabel}
    22  }
    23  
    24  // DomainType enumerates the values for domain type.
    25  type DomainType string
    26  
    27  const (
    28  	// Classification ...
    29  	Classification DomainType = "Classification"
    30  	// ObjectDetection ...
    31  	ObjectDetection DomainType = "ObjectDetection"
    32  )
    33  
    34  // PossibleDomainTypeValues returns an array of possible values for the DomainType const type.
    35  func PossibleDomainTypeValues() []DomainType {
    36  	return []DomainType{Classification, ObjectDetection}
    37  }
    38  
    39  // ExportFlavorModel enumerates the values for export flavor model.
    40  type ExportFlavorModel string
    41  
    42  const (
    43  	// Linux ...
    44  	Linux ExportFlavorModel = "Linux"
    45  	// ONNX10 ...
    46  	ONNX10 ExportFlavorModel = "ONNX10"
    47  	// ONNX12 ...
    48  	ONNX12 ExportFlavorModel = "ONNX12"
    49  	// Windows ...
    50  	Windows ExportFlavorModel = "Windows"
    51  )
    52  
    53  // PossibleExportFlavorModelValues returns an array of possible values for the ExportFlavorModel const type.
    54  func PossibleExportFlavorModelValues() []ExportFlavorModel {
    55  	return []ExportFlavorModel{Linux, ONNX10, ONNX12, Windows}
    56  }
    57  
    58  // ExportPlatformModel enumerates the values for export platform model.
    59  type ExportPlatformModel string
    60  
    61  const (
    62  	// CoreML ...
    63  	CoreML ExportPlatformModel = "CoreML"
    64  	// DockerFile ...
    65  	DockerFile ExportPlatformModel = "DockerFile"
    66  	// ONNX ...
    67  	ONNX ExportPlatformModel = "ONNX"
    68  	// TensorFlow ...
    69  	TensorFlow ExportPlatformModel = "TensorFlow"
    70  )
    71  
    72  // PossibleExportPlatformModelValues returns an array of possible values for the ExportPlatformModel const type.
    73  func PossibleExportPlatformModelValues() []ExportPlatformModel {
    74  	return []ExportPlatformModel{CoreML, DockerFile, ONNX, TensorFlow}
    75  }
    76  
    77  // ExportStatusModel enumerates the values for export status model.
    78  type ExportStatusModel string
    79  
    80  const (
    81  	// Done ...
    82  	Done ExportStatusModel = "Done"
    83  	// Exporting ...
    84  	Exporting ExportStatusModel = "Exporting"
    85  	// Failed ...
    86  	Failed ExportStatusModel = "Failed"
    87  )
    88  
    89  // PossibleExportStatusModelValues returns an array of possible values for the ExportStatusModel const type.
    90  func PossibleExportStatusModelValues() []ExportStatusModel {
    91  	return []ExportStatusModel{Done, Exporting, Failed}
    92  }
    93  
    94  // ImageCreateStatus enumerates the values for image create status.
    95  type ImageCreateStatus string
    96  
    97  const (
    98  	// ErrorImageFormat ...
    99  	ErrorImageFormat ImageCreateStatus = "ErrorImageFormat"
   100  	// ErrorImageSize ...
   101  	ErrorImageSize ImageCreateStatus = "ErrorImageSize"
   102  	// ErrorLimitExceed ...
   103  	ErrorLimitExceed ImageCreateStatus = "ErrorLimitExceed"
   104  	// ErrorNegativeAndRegularTagOnSameImage ...
   105  	ErrorNegativeAndRegularTagOnSameImage ImageCreateStatus = "ErrorNegativeAndRegularTagOnSameImage"
   106  	// ErrorRegionLimitExceed ...
   107  	ErrorRegionLimitExceed ImageCreateStatus = "ErrorRegionLimitExceed"
   108  	// ErrorSource ...
   109  	ErrorSource ImageCreateStatus = "ErrorSource"
   110  	// ErrorStorage ...
   111  	ErrorStorage ImageCreateStatus = "ErrorStorage"
   112  	// ErrorTagLimitExceed ...
   113  	ErrorTagLimitExceed ImageCreateStatus = "ErrorTagLimitExceed"
   114  	// ErrorUnknown ...
   115  	ErrorUnknown ImageCreateStatus = "ErrorUnknown"
   116  	// OK ...
   117  	OK ImageCreateStatus = "OK"
   118  	// OKDuplicate ...
   119  	OKDuplicate ImageCreateStatus = "OKDuplicate"
   120  )
   121  
   122  // PossibleImageCreateStatusValues returns an array of possible values for the ImageCreateStatus const type.
   123  func PossibleImageCreateStatusValues() []ImageCreateStatus {
   124  	return []ImageCreateStatus{ErrorImageFormat, ErrorImageSize, ErrorLimitExceed, ErrorNegativeAndRegularTagOnSameImage, ErrorRegionLimitExceed, ErrorSource, ErrorStorage, ErrorTagLimitExceed, ErrorUnknown, OK, OKDuplicate}
   125  }
   126  
   127  // OrderBy enumerates the values for order by.
   128  type OrderBy string
   129  
   130  const (
   131  	// Newest ...
   132  	Newest OrderBy = "Newest"
   133  	// Oldest ...
   134  	Oldest OrderBy = "Oldest"
   135  	// Suggested ...
   136  	Suggested OrderBy = "Suggested"
   137  )
   138  
   139  // PossibleOrderByValues returns an array of possible values for the OrderBy const type.
   140  func PossibleOrderByValues() []OrderBy {
   141  	return []OrderBy{Newest, Oldest, Suggested}
   142  }
   143  
   144  // TagType enumerates the values for tag type.
   145  type TagType string
   146  
   147  const (
   148  	// Negative ...
   149  	Negative TagType = "Negative"
   150  	// Regular ...
   151  	Regular TagType = "Regular"
   152  )
   153  
   154  // PossibleTagTypeValues returns an array of possible values for the TagType const type.
   155  func PossibleTagTypeValues() []TagType {
   156  	return []TagType{Negative, Regular}
   157  }
   158  

View as plain text