Delen via


BanditPolicy Class

Definition

Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.BanditPolicyTypeConverter))]
public class BanditPolicy : Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.IBanditPolicy, Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.BanditPolicyTypeConverter))>]
type BanditPolicy = class
    interface IBanditPolicy
    interface IJsonSerializable
    interface IEarlyTerminationPolicy
    interface IValidates
Public Class BanditPolicy
Implements IBanditPolicy, IValidates
Inheritance
BanditPolicy
Attributes
Implements

Constructors

BanditPolicy()

Creates an new BanditPolicy instance.

Properties

DelayEvaluation

Number of intervals by which to delay the first evaluation.

EvaluationInterval

Interval (number of runs) between policy evaluations.

PolicyType

[Required] Name of policy configuration

SlackAmount

Absolute distance allowed from the best performing run.

SlackFactor

Ratio of the allowed distance from the best performing run.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of BanditPolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of BanditPolicy.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.IBanditPolicy.

FromJsonString(String)

Creates a new instance of BanditPolicy, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of BanditPolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to