/
BanditPolicy.cs
37 lines (32 loc) · 1.82 KB
/
BanditPolicy.cs
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.MachineLearning.Models
{
/// <summary> Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation. </summary>
public partial class BanditPolicy : MachineLearningEarlyTerminationPolicy
{
/// <summary> Initializes a new instance of <see cref="BanditPolicy"/>. </summary>
public BanditPolicy()
{
PolicyType = EarlyTerminationPolicyType.Bandit;
}
/// <summary> Initializes a new instance of <see cref="BanditPolicy"/>. </summary>
/// <param name="delayEvaluation"> Number of intervals by which to delay the first evaluation. </param>
/// <param name="evaluationInterval"> Interval (number of runs) between policy evaluations. </param>
/// <param name="policyType"> [Required] Name of policy configuration. </param>
/// <param name="slackAmount"> Absolute distance allowed from the best performing run. </param>
/// <param name="slackFactor"> Ratio of the allowed distance from the best performing run. </param>
internal BanditPolicy(int? delayEvaluation, int? evaluationInterval, EarlyTerminationPolicyType policyType, float? slackAmount, float? slackFactor) : base(delayEvaluation, evaluationInterval, policyType)
{
SlackAmount = slackAmount;
SlackFactor = slackFactor;
PolicyType = policyType;
}
/// <summary> Absolute distance allowed from the best performing run. </summary>
public float? SlackAmount { get; set; }
/// <summary> Ratio of the allowed distance from the best performing run. </summary>
public float? SlackFactor { get; set; }
}
}