/
constants.go
2612 lines (2261 loc) · 101 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armmachinelearning
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/machinelearning/armmachinelearning"
moduleVersion = "v3.2.0"
)
// AllocationState - Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing.
// There are no changes to the number of compute nodes in the compute in progress. A compute
// enters this state when it is created and when no operations are being performed on the compute to change the number of
// compute nodes. resizing - Indicates that the compute is resizing; that is,
// compute nodes are being added to or removed from the compute.
type AllocationState string
const (
AllocationStateResizing AllocationState = "Resizing"
AllocationStateSteady AllocationState = "Steady"
)
// PossibleAllocationStateValues returns the possible values for the AllocationState const type.
func PossibleAllocationStateValues() []AllocationState {
return []AllocationState{
AllocationStateResizing,
AllocationStateSteady,
}
}
// ApplicationSharingPolicy - Policy for sharing applications on this compute instance among users of parent workspace. If
// Personal, only the creator can access applications on this compute instance. When Shared, any workspace
// user can access applications on this instance depending on his/her assigned role.
type ApplicationSharingPolicy string
const (
ApplicationSharingPolicyPersonal ApplicationSharingPolicy = "Personal"
ApplicationSharingPolicyShared ApplicationSharingPolicy = "Shared"
)
// PossibleApplicationSharingPolicyValues returns the possible values for the ApplicationSharingPolicy const type.
func PossibleApplicationSharingPolicyValues() []ApplicationSharingPolicy {
return []ApplicationSharingPolicy{
ApplicationSharingPolicyPersonal,
ApplicationSharingPolicyShared,
}
}
// AutoRebuildSetting - AutoRebuild setting for the derived image
type AutoRebuildSetting string
const (
AutoRebuildSettingDisabled AutoRebuildSetting = "Disabled"
AutoRebuildSettingOnBaseImageUpdate AutoRebuildSetting = "OnBaseImageUpdate"
)
// PossibleAutoRebuildSettingValues returns the possible values for the AutoRebuildSetting const type.
func PossibleAutoRebuildSettingValues() []AutoRebuildSetting {
return []AutoRebuildSetting{
AutoRebuildSettingDisabled,
AutoRebuildSettingOnBaseImageUpdate,
}
}
// Autosave - Auto save settings.
type Autosave string
const (
AutosaveLocal Autosave = "Local"
AutosaveNone Autosave = "None"
AutosaveRemote Autosave = "Remote"
)
// PossibleAutosaveValues returns the possible values for the Autosave const type.
func PossibleAutosaveValues() []Autosave {
return []Autosave{
AutosaveLocal,
AutosaveNone,
AutosaveRemote,
}
}
// BatchLoggingLevel - Log verbosity for batch inferencing. Increasing verbosity order for logging is : Warning, Info and
// Debug. The default value is Info.
type BatchLoggingLevel string
const (
BatchLoggingLevelDebug BatchLoggingLevel = "Debug"
BatchLoggingLevelInfo BatchLoggingLevel = "Info"
BatchLoggingLevelWarning BatchLoggingLevel = "Warning"
)
// PossibleBatchLoggingLevelValues returns the possible values for the BatchLoggingLevel const type.
func PossibleBatchLoggingLevelValues() []BatchLoggingLevel {
return []BatchLoggingLevel{
BatchLoggingLevelDebug,
BatchLoggingLevelInfo,
BatchLoggingLevelWarning,
}
}
// BatchOutputAction - Enum to determine how batch inferencing will handle output
type BatchOutputAction string
const (
BatchOutputActionAppendRow BatchOutputAction = "AppendRow"
BatchOutputActionSummaryOnly BatchOutputAction = "SummaryOnly"
)
// PossibleBatchOutputActionValues returns the possible values for the BatchOutputAction const type.
func PossibleBatchOutputActionValues() []BatchOutputAction {
return []BatchOutputAction{
BatchOutputActionAppendRow,
BatchOutputActionSummaryOnly,
}
}
// BillingCurrency - Three lettered code specifying the currency of the VM price. Example: USD
type BillingCurrency string
const (
BillingCurrencyUSD BillingCurrency = "USD"
)
// PossibleBillingCurrencyValues returns the possible values for the BillingCurrency const type.
func PossibleBillingCurrencyValues() []BillingCurrency {
return []BillingCurrency{
BillingCurrencyUSD,
}
}
// BlockedTransformers - Enum for all classification models supported by AutoML.
type BlockedTransformers string
const (
// BlockedTransformersCatTargetEncoder - Target encoding for categorical data.
BlockedTransformersCatTargetEncoder BlockedTransformers = "CatTargetEncoder"
// BlockedTransformersCountVectorizer - Count Vectorizer converts a collection of text documents to a matrix of token counts.
BlockedTransformersCountVectorizer BlockedTransformers = "CountVectorizer"
// BlockedTransformersHashOneHotEncoder - Hashing One Hot Encoder can turn categorical variables into a limited number of
// new features. This is often used for high-cardinality categorical features.
BlockedTransformersHashOneHotEncoder BlockedTransformers = "HashOneHotEncoder"
// BlockedTransformersLabelEncoder - Label encoder converts labels/categorical variables in a numerical form.
BlockedTransformersLabelEncoder BlockedTransformers = "LabelEncoder"
// BlockedTransformersNaiveBayes - Naive Bayes is a classified that is used for classification of discrete features that are
// categorically distributed.
BlockedTransformersNaiveBayes BlockedTransformers = "NaiveBayes"
// BlockedTransformersOneHotEncoder - Ohe hot encoding creates a binary feature transformation.
BlockedTransformersOneHotEncoder BlockedTransformers = "OneHotEncoder"
// BlockedTransformersTextTargetEncoder - Target encoding for text data.
BlockedTransformersTextTargetEncoder BlockedTransformers = "TextTargetEncoder"
// BlockedTransformersTfIdf - Tf-Idf stands for, term-frequency times inverse document-frequency. This is a common term weighting
// scheme for identifying information from documents.
BlockedTransformersTfIdf BlockedTransformers = "TfIdf"
// BlockedTransformersWoETargetEncoder - Weight of Evidence encoding is a technique used to encode categorical variables.
// It uses the natural log of the P(1)/P(0) to create weights.
BlockedTransformersWoETargetEncoder BlockedTransformers = "WoETargetEncoder"
// BlockedTransformersWordEmbedding - Word embedding helps represents words or phrases as a vector, or a series of numbers.
BlockedTransformersWordEmbedding BlockedTransformers = "WordEmbedding"
)
// PossibleBlockedTransformersValues returns the possible values for the BlockedTransformers const type.
func PossibleBlockedTransformersValues() []BlockedTransformers {
return []BlockedTransformers{
BlockedTransformersCatTargetEncoder,
BlockedTransformersCountVectorizer,
BlockedTransformersHashOneHotEncoder,
BlockedTransformersLabelEncoder,
BlockedTransformersNaiveBayes,
BlockedTransformersOneHotEncoder,
BlockedTransformersTextTargetEncoder,
BlockedTransformersTfIdf,
BlockedTransformersWoETargetEncoder,
BlockedTransformersWordEmbedding,
}
}
// Caching - Caching type of Data Disk.
type Caching string
const (
CachingNone Caching = "None"
CachingReadOnly Caching = "ReadOnly"
CachingReadWrite Caching = "ReadWrite"
)
// PossibleCachingValues returns the possible values for the Caching const type.
func PossibleCachingValues() []Caching {
return []Caching{
CachingNone,
CachingReadOnly,
CachingReadWrite,
}
}
// ClassificationModels - Enum for all classification models supported by AutoML.
type ClassificationModels string
const (
// ClassificationModelsBernoulliNaiveBayes - Naive Bayes classifier for multivariate Bernoulli models.
ClassificationModelsBernoulliNaiveBayes ClassificationModels = "BernoulliNaiveBayes"
// ClassificationModelsDecisionTree - Decision Trees are a non-parametric supervised learning method used for both classification
// and regression tasks.
// The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from
// the data features.
ClassificationModelsDecisionTree ClassificationModels = "DecisionTree"
// ClassificationModelsExtremeRandomTrees - Extreme Trees is an ensemble machine learning algorithm that combines the predictions
// from many decision trees. It is related to the widely used random forest algorithm.
ClassificationModelsExtremeRandomTrees ClassificationModels = "ExtremeRandomTrees"
// ClassificationModelsGradientBoosting - The technique of transiting week learners into a strong learner is called Boosting.
// The gradient boosting algorithm process works on this theory of execution.
ClassificationModelsGradientBoosting ClassificationModels = "GradientBoosting"
// ClassificationModelsKNN - K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints
// which further means that the new data point will be assigned a value based on how closely it matches the points in the
// training set.
ClassificationModelsKNN ClassificationModels = "KNN"
// ClassificationModelsLightGBM - LightGBM is a gradient boosting framework that uses tree based learning algorithms.
ClassificationModelsLightGBM ClassificationModels = "LightGBM"
// ClassificationModelsLinearSVM - A support vector machine (SVM) is a supervised machine learning model that uses classification
// algorithms for two-group classification problems.
// After giving an SVM model sets of labeled training data for each category, they're able to categorize new text.
// Linear SVM performs best when input data is linear, i.e., data can be easily classified by drawing the straight line between
// classified values on a plotted graph.
ClassificationModelsLinearSVM ClassificationModels = "LinearSVM"
// ClassificationModelsLogisticRegression - Logistic regression is a fundamental classification technique.
// It belongs to the group of linear classifiers and is somewhat similar to polynomial and linear regression.
// Logistic regression is fast and relatively uncomplicated, and it's convenient for you to interpret the results.
// Although it's essentially a method for binary classification, it can also be applied to multiclass problems.
ClassificationModelsLogisticRegression ClassificationModels = "LogisticRegression"
// ClassificationModelsMultinomialNaiveBayes - The multinomial Naive Bayes classifier is suitable for classification with
// discrete features (e.g., word counts for text classification).
// The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as
// tf-idf may also work.
ClassificationModelsMultinomialNaiveBayes ClassificationModels = "MultinomialNaiveBayes"
// ClassificationModelsRandomForest - Random forest is a supervised learning algorithm.
// The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method.
// The general idea of the bagging method is that a combination of learning models increases the overall result.
ClassificationModelsRandomForest ClassificationModels = "RandomForest"
// ClassificationModelsSGD - SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning
// applications
// to find the model parameters that correspond to the best fit between predicted and actual outputs.
ClassificationModelsSGD ClassificationModels = "SGD"
// ClassificationModelsSVM - A support vector machine (SVM) is a supervised machine learning model that uses classification
// algorithms for two-group classification problems.
// After giving an SVM model sets of labeled training data for each category, they're able to categorize new text.
ClassificationModelsSVM ClassificationModels = "SVM"
// ClassificationModelsXGBoostClassifier - XGBoost: Extreme Gradient Boosting Algorithm. This algorithm is used for structured
// data where target column values can be divided into distinct class values.
ClassificationModelsXGBoostClassifier ClassificationModels = "XGBoostClassifier"
)
// PossibleClassificationModelsValues returns the possible values for the ClassificationModels const type.
func PossibleClassificationModelsValues() []ClassificationModels {
return []ClassificationModels{
ClassificationModelsBernoulliNaiveBayes,
ClassificationModelsDecisionTree,
ClassificationModelsExtremeRandomTrees,
ClassificationModelsGradientBoosting,
ClassificationModelsKNN,
ClassificationModelsLightGBM,
ClassificationModelsLinearSVM,
ClassificationModelsLogisticRegression,
ClassificationModelsMultinomialNaiveBayes,
ClassificationModelsRandomForest,
ClassificationModelsSGD,
ClassificationModelsSVM,
ClassificationModelsXGBoostClassifier,
}
}
// ClassificationMultilabelPrimaryMetrics - Primary metrics for classification multilabel tasks.
type ClassificationMultilabelPrimaryMetrics string
const (
// ClassificationMultilabelPrimaryMetricsAUCWeighted - AUC is the Area under the curve.
// This metric represents arithmetic mean of the score for each class,
// weighted by the number of true instances in each class.
ClassificationMultilabelPrimaryMetricsAUCWeighted ClassificationMultilabelPrimaryMetrics = "AUCWeighted"
// ClassificationMultilabelPrimaryMetricsAccuracy - Accuracy is the ratio of predictions that exactly match the true class
// labels.
ClassificationMultilabelPrimaryMetricsAccuracy ClassificationMultilabelPrimaryMetrics = "Accuracy"
// ClassificationMultilabelPrimaryMetricsAveragePrecisionScoreWeighted - The arithmetic mean of the average precision score
// for each class, weighted by
// the number of true instances in each class.
ClassificationMultilabelPrimaryMetricsAveragePrecisionScoreWeighted ClassificationMultilabelPrimaryMetrics = "AveragePrecisionScoreWeighted"
// ClassificationMultilabelPrimaryMetricsIOU - Intersection Over Union. Intersection of predictions divided by union of predictions.
ClassificationMultilabelPrimaryMetricsIOU ClassificationMultilabelPrimaryMetrics = "IOU"
// ClassificationMultilabelPrimaryMetricsNormMacroRecall - Normalized macro recall is recall macro-averaged and normalized,
// so that random
// performance has a score of 0, and perfect performance has a score of 1.
ClassificationMultilabelPrimaryMetricsNormMacroRecall ClassificationMultilabelPrimaryMetrics = "NormMacroRecall"
// ClassificationMultilabelPrimaryMetricsPrecisionScoreWeighted - The arithmetic mean of precision for each class, weighted
// by number of true instances in each class.
ClassificationMultilabelPrimaryMetricsPrecisionScoreWeighted ClassificationMultilabelPrimaryMetrics = "PrecisionScoreWeighted"
)
// PossibleClassificationMultilabelPrimaryMetricsValues returns the possible values for the ClassificationMultilabelPrimaryMetrics const type.
func PossibleClassificationMultilabelPrimaryMetricsValues() []ClassificationMultilabelPrimaryMetrics {
return []ClassificationMultilabelPrimaryMetrics{
ClassificationMultilabelPrimaryMetricsAUCWeighted,
ClassificationMultilabelPrimaryMetricsAccuracy,
ClassificationMultilabelPrimaryMetricsAveragePrecisionScoreWeighted,
ClassificationMultilabelPrimaryMetricsIOU,
ClassificationMultilabelPrimaryMetricsNormMacroRecall,
ClassificationMultilabelPrimaryMetricsPrecisionScoreWeighted,
}
}
// ClassificationPrimaryMetrics - Primary metrics for classification tasks.
type ClassificationPrimaryMetrics string
const (
// ClassificationPrimaryMetricsAUCWeighted - AUC is the Area under the curve.
// This metric represents arithmetic mean of the score for each class,
// weighted by the number of true instances in each class.
ClassificationPrimaryMetricsAUCWeighted ClassificationPrimaryMetrics = "AUCWeighted"
// ClassificationPrimaryMetricsAccuracy - Accuracy is the ratio of predictions that exactly match the true class labels.
ClassificationPrimaryMetricsAccuracy ClassificationPrimaryMetrics = "Accuracy"
// ClassificationPrimaryMetricsAveragePrecisionScoreWeighted - The arithmetic mean of the average precision score for each
// class, weighted by
// the number of true instances in each class.
ClassificationPrimaryMetricsAveragePrecisionScoreWeighted ClassificationPrimaryMetrics = "AveragePrecisionScoreWeighted"
// ClassificationPrimaryMetricsNormMacroRecall - Normalized macro recall is recall macro-averaged and normalized, so that
// random
// performance has a score of 0, and perfect performance has a score of 1.
ClassificationPrimaryMetricsNormMacroRecall ClassificationPrimaryMetrics = "NormMacroRecall"
// ClassificationPrimaryMetricsPrecisionScoreWeighted - The arithmetic mean of precision for each class, weighted by number
// of true instances in each class.
ClassificationPrimaryMetricsPrecisionScoreWeighted ClassificationPrimaryMetrics = "PrecisionScoreWeighted"
)
// PossibleClassificationPrimaryMetricsValues returns the possible values for the ClassificationPrimaryMetrics const type.
func PossibleClassificationPrimaryMetricsValues() []ClassificationPrimaryMetrics {
return []ClassificationPrimaryMetrics{
ClassificationPrimaryMetricsAUCWeighted,
ClassificationPrimaryMetricsAccuracy,
ClassificationPrimaryMetricsAveragePrecisionScoreWeighted,
ClassificationPrimaryMetricsNormMacroRecall,
ClassificationPrimaryMetricsPrecisionScoreWeighted,
}
}
// ClusterPurpose - Intended usage of the cluster
type ClusterPurpose string
const (
ClusterPurposeDenseProd ClusterPurpose = "DenseProd"
ClusterPurposeDevTest ClusterPurpose = "DevTest"
ClusterPurposeFastProd ClusterPurpose = "FastProd"
)
// PossibleClusterPurposeValues returns the possible values for the ClusterPurpose const type.
func PossibleClusterPurposeValues() []ClusterPurpose {
return []ClusterPurpose{
ClusterPurposeDenseProd,
ClusterPurposeDevTest,
ClusterPurposeFastProd,
}
}
// ComputeInstanceAuthorizationType - The Compute Instance Authorization type. Available values are personal (default).
type ComputeInstanceAuthorizationType string
const (
ComputeInstanceAuthorizationTypePersonal ComputeInstanceAuthorizationType = "personal"
)
// PossibleComputeInstanceAuthorizationTypeValues returns the possible values for the ComputeInstanceAuthorizationType const type.
func PossibleComputeInstanceAuthorizationTypeValues() []ComputeInstanceAuthorizationType {
return []ComputeInstanceAuthorizationType{
ComputeInstanceAuthorizationTypePersonal,
}
}
// ComputeInstanceState - Current state of an ComputeInstance.
type ComputeInstanceState string
const (
ComputeInstanceStateCreateFailed ComputeInstanceState = "CreateFailed"
ComputeInstanceStateCreating ComputeInstanceState = "Creating"
ComputeInstanceStateDeleting ComputeInstanceState = "Deleting"
ComputeInstanceStateJobRunning ComputeInstanceState = "JobRunning"
ComputeInstanceStateRestarting ComputeInstanceState = "Restarting"
ComputeInstanceStateRunning ComputeInstanceState = "Running"
ComputeInstanceStateSettingUp ComputeInstanceState = "SettingUp"
ComputeInstanceStateSetupFailed ComputeInstanceState = "SetupFailed"
ComputeInstanceStateStarting ComputeInstanceState = "Starting"
ComputeInstanceStateStopped ComputeInstanceState = "Stopped"
ComputeInstanceStateStopping ComputeInstanceState = "Stopping"
ComputeInstanceStateUnknown ComputeInstanceState = "Unknown"
ComputeInstanceStateUnusable ComputeInstanceState = "Unusable"
ComputeInstanceStateUserSettingUp ComputeInstanceState = "UserSettingUp"
ComputeInstanceStateUserSetupFailed ComputeInstanceState = "UserSetupFailed"
)
// PossibleComputeInstanceStateValues returns the possible values for the ComputeInstanceState const type.
func PossibleComputeInstanceStateValues() []ComputeInstanceState {
return []ComputeInstanceState{
ComputeInstanceStateCreateFailed,
ComputeInstanceStateCreating,
ComputeInstanceStateDeleting,
ComputeInstanceStateJobRunning,
ComputeInstanceStateRestarting,
ComputeInstanceStateRunning,
ComputeInstanceStateSettingUp,
ComputeInstanceStateSetupFailed,
ComputeInstanceStateStarting,
ComputeInstanceStateStopped,
ComputeInstanceStateStopping,
ComputeInstanceStateUnknown,
ComputeInstanceStateUnusable,
ComputeInstanceStateUserSettingUp,
ComputeInstanceStateUserSetupFailed,
}
}
// ComputePowerAction - The compute power action.
type ComputePowerAction string
const (
ComputePowerActionStart ComputePowerAction = "Start"
ComputePowerActionStop ComputePowerAction = "Stop"
)
// PossibleComputePowerActionValues returns the possible values for the ComputePowerAction const type.
func PossibleComputePowerActionValues() []ComputePowerAction {
return []ComputePowerAction{
ComputePowerActionStart,
ComputePowerActionStop,
}
}
// ComputeType - The type of compute
type ComputeType string
const (
ComputeTypeAKS ComputeType = "AKS"
ComputeTypeAmlCompute ComputeType = "AmlCompute"
ComputeTypeComputeInstance ComputeType = "ComputeInstance"
ComputeTypeDataFactory ComputeType = "DataFactory"
ComputeTypeDataLakeAnalytics ComputeType = "DataLakeAnalytics"
ComputeTypeDatabricks ComputeType = "Databricks"
ComputeTypeHDInsight ComputeType = "HDInsight"
ComputeTypeKubernetes ComputeType = "Kubernetes"
ComputeTypeSynapseSpark ComputeType = "SynapseSpark"
ComputeTypeVirtualMachine ComputeType = "VirtualMachine"
)
// PossibleComputeTypeValues returns the possible values for the ComputeType const type.
func PossibleComputeTypeValues() []ComputeType {
return []ComputeType{
ComputeTypeAKS,
ComputeTypeAmlCompute,
ComputeTypeComputeInstance,
ComputeTypeDataFactory,
ComputeTypeDataLakeAnalytics,
ComputeTypeDatabricks,
ComputeTypeHDInsight,
ComputeTypeKubernetes,
ComputeTypeSynapseSpark,
ComputeTypeVirtualMachine,
}
}
// ConnectionAuthType - Authentication type of the connection target
type ConnectionAuthType string
const (
ConnectionAuthTypeManagedIdentity ConnectionAuthType = "ManagedIdentity"
ConnectionAuthTypeNone ConnectionAuthType = "None"
ConnectionAuthTypePAT ConnectionAuthType = "PAT"
ConnectionAuthTypeSAS ConnectionAuthType = "SAS"
ConnectionAuthTypeUsernamePassword ConnectionAuthType = "UsernamePassword"
)
// PossibleConnectionAuthTypeValues returns the possible values for the ConnectionAuthType const type.
func PossibleConnectionAuthTypeValues() []ConnectionAuthType {
return []ConnectionAuthType{
ConnectionAuthTypeManagedIdentity,
ConnectionAuthTypeNone,
ConnectionAuthTypePAT,
ConnectionAuthTypeSAS,
ConnectionAuthTypeUsernamePassword,
}
}
// ConnectionCategory - Category of the connection
type ConnectionCategory string
const (
ConnectionCategoryContainerRegistry ConnectionCategory = "ContainerRegistry"
ConnectionCategoryGit ConnectionCategory = "Git"
ConnectionCategoryPythonFeed ConnectionCategory = "PythonFeed"
)
// PossibleConnectionCategoryValues returns the possible values for the ConnectionCategory const type.
func PossibleConnectionCategoryValues() []ConnectionCategory {
return []ConnectionCategory{
ConnectionCategoryContainerRegistry,
ConnectionCategoryGit,
ConnectionCategoryPythonFeed,
}
}
type ContainerType string
const (
ContainerTypeInferenceServer ContainerType = "InferenceServer"
ContainerTypeStorageInitializer ContainerType = "StorageInitializer"
)
// PossibleContainerTypeValues returns the possible values for the ContainerType const type.
func PossibleContainerTypeValues() []ContainerType {
return []ContainerType{
ContainerTypeInferenceServer,
ContainerTypeStorageInitializer,
}
}
// CreatedByType - The type of identity that created the resource.
type CreatedByType string
const (
CreatedByTypeApplication CreatedByType = "Application"
CreatedByTypeKey CreatedByType = "Key"
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{
CreatedByTypeApplication,
CreatedByTypeKey,
CreatedByTypeManagedIdentity,
CreatedByTypeUser,
}
}
// CredentialsType - Enum to determine the datastore credentials type.
type CredentialsType string
const (
CredentialsTypeAccountKey CredentialsType = "AccountKey"
CredentialsTypeCertificate CredentialsType = "Certificate"
CredentialsTypeNone CredentialsType = "None"
CredentialsTypeSas CredentialsType = "Sas"
CredentialsTypeServicePrincipal CredentialsType = "ServicePrincipal"
)
// PossibleCredentialsTypeValues returns the possible values for the CredentialsType const type.
func PossibleCredentialsTypeValues() []CredentialsType {
return []CredentialsType{
CredentialsTypeAccountKey,
CredentialsTypeCertificate,
CredentialsTypeNone,
CredentialsTypeSas,
CredentialsTypeServicePrincipal,
}
}
// DataType - Enum to determine the type of data.
type DataType string
const (
DataTypeMltable DataType = "mltable"
DataTypeURIFile DataType = "uri_file"
DataTypeURIFolder DataType = "uri_folder"
)
// PossibleDataTypeValues returns the possible values for the DataType const type.
func PossibleDataTypeValues() []DataType {
return []DataType{
DataTypeMltable,
DataTypeURIFile,
DataTypeURIFolder,
}
}
// DatastoreType - Enum to determine the datastore contents type.
type DatastoreType string
const (
DatastoreTypeAzureBlob DatastoreType = "AzureBlob"
DatastoreTypeAzureDataLakeGen1 DatastoreType = "AzureDataLakeGen1"
DatastoreTypeAzureDataLakeGen2 DatastoreType = "AzureDataLakeGen2"
DatastoreTypeAzureFile DatastoreType = "AzureFile"
)
// PossibleDatastoreTypeValues returns the possible values for the DatastoreType const type.
func PossibleDatastoreTypeValues() []DatastoreType {
return []DatastoreType{
DatastoreTypeAzureBlob,
DatastoreTypeAzureDataLakeGen1,
DatastoreTypeAzureDataLakeGen2,
DatastoreTypeAzureFile,
}
}
// DeploymentProvisioningState - Possible values for DeploymentProvisioningState.
type DeploymentProvisioningState string
const (
DeploymentProvisioningStateCanceled DeploymentProvisioningState = "Canceled"
DeploymentProvisioningStateCreating DeploymentProvisioningState = "Creating"
DeploymentProvisioningStateDeleting DeploymentProvisioningState = "Deleting"
DeploymentProvisioningStateFailed DeploymentProvisioningState = "Failed"
DeploymentProvisioningStateScaling DeploymentProvisioningState = "Scaling"
DeploymentProvisioningStateSucceeded DeploymentProvisioningState = "Succeeded"
DeploymentProvisioningStateUpdating DeploymentProvisioningState = "Updating"
)
// PossibleDeploymentProvisioningStateValues returns the possible values for the DeploymentProvisioningState const type.
func PossibleDeploymentProvisioningStateValues() []DeploymentProvisioningState {
return []DeploymentProvisioningState{
DeploymentProvisioningStateCanceled,
DeploymentProvisioningStateCreating,
DeploymentProvisioningStateDeleting,
DeploymentProvisioningStateFailed,
DeploymentProvisioningStateScaling,
DeploymentProvisioningStateSucceeded,
DeploymentProvisioningStateUpdating,
}
}
// DiagnoseResultLevel - Level of workspace setup error
type DiagnoseResultLevel string
const (
DiagnoseResultLevelError DiagnoseResultLevel = "Error"
DiagnoseResultLevelInformation DiagnoseResultLevel = "Information"
DiagnoseResultLevelWarning DiagnoseResultLevel = "Warning"
)
// PossibleDiagnoseResultLevelValues returns the possible values for the DiagnoseResultLevel const type.
func PossibleDiagnoseResultLevelValues() []DiagnoseResultLevel {
return []DiagnoseResultLevel{
DiagnoseResultLevelError,
DiagnoseResultLevelInformation,
DiagnoseResultLevelWarning,
}
}
// DistributionType - Enum to determine the job distribution type.
type DistributionType string
const (
DistributionTypeMpi DistributionType = "Mpi"
DistributionTypePyTorch DistributionType = "PyTorch"
DistributionTypeTensorFlow DistributionType = "TensorFlow"
)
// PossibleDistributionTypeValues returns the possible values for the DistributionType const type.
func PossibleDistributionTypeValues() []DistributionType {
return []DistributionType{
DistributionTypeMpi,
DistributionTypePyTorch,
DistributionTypeTensorFlow,
}
}
type EarlyTerminationPolicyType string
const (
EarlyTerminationPolicyTypeBandit EarlyTerminationPolicyType = "Bandit"
EarlyTerminationPolicyTypeMedianStopping EarlyTerminationPolicyType = "MedianStopping"
EarlyTerminationPolicyTypeTruncationSelection EarlyTerminationPolicyType = "TruncationSelection"
)
// PossibleEarlyTerminationPolicyTypeValues returns the possible values for the EarlyTerminationPolicyType const type.
func PossibleEarlyTerminationPolicyTypeValues() []EarlyTerminationPolicyType {
return []EarlyTerminationPolicyType{
EarlyTerminationPolicyTypeBandit,
EarlyTerminationPolicyTypeMedianStopping,
EarlyTerminationPolicyTypeTruncationSelection,
}
}
// EgressPublicNetworkAccessType - Enum to determine whether PublicNetworkAccess is Enabled or Disabled for egress of a deployment.
type EgressPublicNetworkAccessType string
const (
EgressPublicNetworkAccessTypeDisabled EgressPublicNetworkAccessType = "Disabled"
EgressPublicNetworkAccessTypeEnabled EgressPublicNetworkAccessType = "Enabled"
)
// PossibleEgressPublicNetworkAccessTypeValues returns the possible values for the EgressPublicNetworkAccessType const type.
func PossibleEgressPublicNetworkAccessTypeValues() []EgressPublicNetworkAccessType {
return []EgressPublicNetworkAccessType{
EgressPublicNetworkAccessTypeDisabled,
EgressPublicNetworkAccessTypeEnabled,
}
}
// EncryptionStatus - Indicates whether or not the encryption is enabled for the workspace.
type EncryptionStatus string
const (
EncryptionStatusDisabled EncryptionStatus = "Disabled"
EncryptionStatusEnabled EncryptionStatus = "Enabled"
)
// PossibleEncryptionStatusValues returns the possible values for the EncryptionStatus const type.
func PossibleEncryptionStatusValues() []EncryptionStatus {
return []EncryptionStatus{
EncryptionStatusDisabled,
EncryptionStatusEnabled,
}
}
// EndpointAuthMode - Enum to determine endpoint authentication mode.
type EndpointAuthMode string
const (
EndpointAuthModeAADToken EndpointAuthMode = "AADToken"
EndpointAuthModeAMLToken EndpointAuthMode = "AMLToken"
EndpointAuthModeKey EndpointAuthMode = "Key"
)
// PossibleEndpointAuthModeValues returns the possible values for the EndpointAuthMode const type.
func PossibleEndpointAuthModeValues() []EndpointAuthMode {
return []EndpointAuthMode{
EndpointAuthModeAADToken,
EndpointAuthModeAMLToken,
EndpointAuthModeKey,
}
}
// EndpointComputeType - Enum to determine endpoint compute type.
type EndpointComputeType string
const (
EndpointComputeTypeAzureMLCompute EndpointComputeType = "AzureMLCompute"
EndpointComputeTypeKubernetes EndpointComputeType = "Kubernetes"
EndpointComputeTypeManaged EndpointComputeType = "Managed"
)
// PossibleEndpointComputeTypeValues returns the possible values for the EndpointComputeType const type.
func PossibleEndpointComputeTypeValues() []EndpointComputeType {
return []EndpointComputeType{
EndpointComputeTypeAzureMLCompute,
EndpointComputeTypeKubernetes,
EndpointComputeTypeManaged,
}
}
// EndpointProvisioningState - State of endpoint provisioning.
type EndpointProvisioningState string
const (
EndpointProvisioningStateCanceled EndpointProvisioningState = "Canceled"
EndpointProvisioningStateCreating EndpointProvisioningState = "Creating"
EndpointProvisioningStateDeleting EndpointProvisioningState = "Deleting"
EndpointProvisioningStateFailed EndpointProvisioningState = "Failed"
EndpointProvisioningStateSucceeded EndpointProvisioningState = "Succeeded"
EndpointProvisioningStateUpdating EndpointProvisioningState = "Updating"
)
// PossibleEndpointProvisioningStateValues returns the possible values for the EndpointProvisioningState const type.
func PossibleEndpointProvisioningStateValues() []EndpointProvisioningState {
return []EndpointProvisioningState{
EndpointProvisioningStateCanceled,
EndpointProvisioningStateCreating,
EndpointProvisioningStateDeleting,
EndpointProvisioningStateFailed,
EndpointProvisioningStateSucceeded,
EndpointProvisioningStateUpdating,
}
}
// EnvironmentType - Environment type is either user created or curated by Azure ML service
type EnvironmentType string
const (
EnvironmentTypeCurated EnvironmentType = "Curated"
EnvironmentTypeUserCreated EnvironmentType = "UserCreated"
)
// PossibleEnvironmentTypeValues returns the possible values for the EnvironmentType const type.
func PossibleEnvironmentTypeValues() []EnvironmentType {
return []EnvironmentType{
EnvironmentTypeCurated,
EnvironmentTypeUserCreated,
}
}
// FeatureLags - Flag for generating lags for the numeric features.
type FeatureLags string
const (
// FeatureLagsAuto - System auto-generates feature lags.
FeatureLagsAuto FeatureLags = "Auto"
// FeatureLagsNone - No feature lags generated.
FeatureLagsNone FeatureLags = "None"
)
// PossibleFeatureLagsValues returns the possible values for the FeatureLags const type.
func PossibleFeatureLagsValues() []FeatureLags {
return []FeatureLags{
FeatureLagsAuto,
FeatureLagsNone,
}
}
// FeaturizationMode - Featurization mode - determines data featurization mode.
type FeaturizationMode string
const (
// FeaturizationModeAuto - Auto mode, system performs featurization without any custom featurization inputs.
FeaturizationModeAuto FeaturizationMode = "Auto"
// FeaturizationModeCustom - Custom featurization.
FeaturizationModeCustom FeaturizationMode = "Custom"
// FeaturizationModeOff - Featurization off. 'Forecasting' task cannot use this value.
FeaturizationModeOff FeaturizationMode = "Off"
)
// PossibleFeaturizationModeValues returns the possible values for the FeaturizationMode const type.
func PossibleFeaturizationModeValues() []FeaturizationMode {
return []FeaturizationMode{
FeaturizationModeAuto,
FeaturizationModeCustom,
FeaturizationModeOff,
}
}
// ForecastHorizonMode - Enum to determine forecast horizon selection mode.
type ForecastHorizonMode string
const (
// ForecastHorizonModeAuto - Forecast horizon to be determined automatically.
ForecastHorizonModeAuto ForecastHorizonMode = "Auto"
// ForecastHorizonModeCustom - Use the custom forecast horizon.
ForecastHorizonModeCustom ForecastHorizonMode = "Custom"
)
// PossibleForecastHorizonModeValues returns the possible values for the ForecastHorizonMode const type.
func PossibleForecastHorizonModeValues() []ForecastHorizonMode {
return []ForecastHorizonMode{
ForecastHorizonModeAuto,
ForecastHorizonModeCustom,
}
}
// ForecastingModels - Enum for all forecasting models supported by AutoML.
type ForecastingModels string
const (
// ForecastingModelsArimax - An Autoregressive Integrated Moving Average with Explanatory Variable (ARIMAX) model can be viewed
// as a multiple regression model with one or more autoregressive (AR) terms and/or one or more moving average (MA) terms.
// This method is suitable for forecasting when data is stationary/non stationary, and multivariate with any type of data
// pattern, i.e., level/trend /seasonality/cyclicity.
ForecastingModelsArimax ForecastingModels = "Arimax"
// ForecastingModelsAutoArima - Auto-Autoregressive Integrated Moving Average (ARIMA) model uses time-series data and statistical
// analysis to interpret the data and make future predictions.
// This model aims to explain data by using time series data on its past values and uses linear regression to make predictions.
ForecastingModelsAutoArima ForecastingModels = "AutoArima"
// ForecastingModelsAverage - The Average forecasting model makes predictions by carrying forward the average of the target
// values for each time-series in the training data.
ForecastingModelsAverage ForecastingModels = "Average"
// ForecastingModelsDecisionTree - Decision Trees are a non-parametric supervised learning method used for both classification
// and regression tasks.
// The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from
// the data features.
ForecastingModelsDecisionTree ForecastingModels = "DecisionTree"
// ForecastingModelsElasticNet - Elastic net is a popular type of regularized linear regression that combines two popular
// penalties, specifically the L1 and L2 penalty functions.
ForecastingModelsElasticNet ForecastingModels = "ElasticNet"
// ForecastingModelsExponentialSmoothing - Exponential smoothing is a time series forecasting method for univariate data that
// can be extended to support data with a systematic trend or seasonal component.
ForecastingModelsExponentialSmoothing ForecastingModels = "ExponentialSmoothing"
// ForecastingModelsExtremeRandomTrees - Extreme Trees is an ensemble machine learning algorithm that combines the predictions
// from many decision trees. It is related to the widely used random forest algorithm.
ForecastingModelsExtremeRandomTrees ForecastingModels = "ExtremeRandomTrees"
// ForecastingModelsGradientBoosting - The technique of transiting week learners into a strong learner is called Boosting.
// The gradient boosting algorithm process works on this theory of execution.
ForecastingModelsGradientBoosting ForecastingModels = "GradientBoosting"
// ForecastingModelsKNN - K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints
// which further means that the new data point will be assigned a value based on how closely it matches the points in the
// training set.
ForecastingModelsKNN ForecastingModels = "KNN"
// ForecastingModelsLassoLars - Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with
// an L1 prior as regularizer.
ForecastingModelsLassoLars ForecastingModels = "LassoLars"
// ForecastingModelsLightGBM - LightGBM is a gradient boosting framework that uses tree based learning algorithms.
ForecastingModelsLightGBM ForecastingModels = "LightGBM"
// ForecastingModelsNaive - The Naive forecasting model makes predictions by carrying forward the latest target value for
// each time-series in the training data.
ForecastingModelsNaive ForecastingModels = "Naive"
// ForecastingModelsProphet - Prophet is a procedure for forecasting time series data based on an additive model where non-linear
// trends are fit with yearly, weekly, and daily seasonality, plus holiday effects.
// It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust
// to missing data and shifts in the trend, and typically handles outliers well.
ForecastingModelsProphet ForecastingModels = "Prophet"
// ForecastingModelsRandomForest - Random forest is a supervised learning algorithm.
// The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method.
// The general idea of the bagging method is that a combination of learning models increases the overall result.
ForecastingModelsRandomForest ForecastingModels = "RandomForest"
// ForecastingModelsSGD - SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications
// to find the model parameters that correspond to the best fit between predicted and actual outputs.
// It's an inexact but powerful technique.
ForecastingModelsSGD ForecastingModels = "SGD"
// ForecastingModelsSeasonalAverage - The Seasonal Average forecasting model makes predictions by carrying forward the average
// value of the latest season of data for each time-series in the training data.
ForecastingModelsSeasonalAverage ForecastingModels = "SeasonalAverage"
// ForecastingModelsSeasonalNaive - The Seasonal Naive forecasting model makes predictions by carrying forward the latest
// season of target values for each time-series in the training data.
ForecastingModelsSeasonalNaive ForecastingModels = "SeasonalNaive"
// ForecastingModelsTCNForecaster - TCNForecaster: Temporal Convolutional Networks Forecaster. //TODO: Ask forecasting team
// for brief intro.
ForecastingModelsTCNForecaster ForecastingModels = "TCNForecaster"
// ForecastingModelsXGBoostRegressor - XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning
// model using ensemble of base learners.
ForecastingModelsXGBoostRegressor ForecastingModels = "XGBoostRegressor"
)
// PossibleForecastingModelsValues returns the possible values for the ForecastingModels const type.
func PossibleForecastingModelsValues() []ForecastingModels {
return []ForecastingModels{
ForecastingModelsArimax,
ForecastingModelsAutoArima,
ForecastingModelsAverage,
ForecastingModelsDecisionTree,
ForecastingModelsElasticNet,
ForecastingModelsExponentialSmoothing,
ForecastingModelsExtremeRandomTrees,
ForecastingModelsGradientBoosting,
ForecastingModelsKNN,
ForecastingModelsLassoLars,
ForecastingModelsLightGBM,
ForecastingModelsNaive,
ForecastingModelsProphet,
ForecastingModelsRandomForest,
ForecastingModelsSGD,
ForecastingModelsSeasonalAverage,
ForecastingModelsSeasonalNaive,
ForecastingModelsTCNForecaster,
ForecastingModelsXGBoostRegressor,
}
}
// ForecastingPrimaryMetrics - Primary metrics for Forecasting task.
type ForecastingPrimaryMetrics string
const (
// ForecastingPrimaryMetricsNormalizedMeanAbsoluteError - The Normalized Mean Absolute Error (NMAE) is a validation metric
// to compare the Mean Absolute Error (MAE) of (time) series with different scales.
ForecastingPrimaryMetricsNormalizedMeanAbsoluteError ForecastingPrimaryMetrics = "NormalizedMeanAbsoluteError"
// ForecastingPrimaryMetricsNormalizedRootMeanSquaredError - The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates
// the comparison between models with different scales.
ForecastingPrimaryMetricsNormalizedRootMeanSquaredError ForecastingPrimaryMetrics = "NormalizedRootMeanSquaredError"
// ForecastingPrimaryMetricsR2Score - The R2 score is one of the performance evaluation measures for forecasting-based machine
// learning models.
ForecastingPrimaryMetricsR2Score ForecastingPrimaryMetrics = "R2Score"
// ForecastingPrimaryMetricsSpearmanCorrelation - The Spearman's rank coefficient of correlation is a non-parametric measure
// of rank correlation.
ForecastingPrimaryMetricsSpearmanCorrelation ForecastingPrimaryMetrics = "SpearmanCorrelation"
)
// PossibleForecastingPrimaryMetricsValues returns the possible values for the ForecastingPrimaryMetrics const type.
func PossibleForecastingPrimaryMetricsValues() []ForecastingPrimaryMetrics {
return []ForecastingPrimaryMetrics{
ForecastingPrimaryMetricsNormalizedMeanAbsoluteError,
ForecastingPrimaryMetricsNormalizedRootMeanSquaredError,
ForecastingPrimaryMetricsR2Score,
ForecastingPrimaryMetricsSpearmanCorrelation,
}
}
// Goal - Defines supported metric goals for hyperparameter tuning
type Goal string
const (
GoalMaximize Goal = "Maximize"
GoalMinimize Goal = "Minimize"
)
// PossibleGoalValues returns the possible values for the Goal const type.
func PossibleGoalValues() []Goal {
return []Goal{
GoalMaximize,
GoalMinimize,
}
}
// IdentityConfigurationType - Enum to determine identity framework.
type IdentityConfigurationType string
const (
IdentityConfigurationTypeAMLToken IdentityConfigurationType = "AMLToken"
IdentityConfigurationTypeManaged IdentityConfigurationType = "Managed"
IdentityConfigurationTypeUserIdentity IdentityConfigurationType = "UserIdentity"
)
// PossibleIdentityConfigurationTypeValues returns the possible values for the IdentityConfigurationType const type.
func PossibleIdentityConfigurationTypeValues() []IdentityConfigurationType {