-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MachineLearningObjective.cs
33 lines (27 loc) · 1.26 KB
/
MachineLearningObjective.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.MachineLearning.Models
{
/// <summary> Optimization objective. </summary>
public partial class MachineLearningObjective
{
/// <summary> Initializes a new instance of <see cref="MachineLearningObjective"/>. </summary>
/// <param name="goal"> [Required] Defines supported metric goals for hyperparameter tuning. </param>
/// <param name="primaryMetric"> [Required] Name of the metric to optimize. </param>
/// <exception cref="ArgumentNullException"> <paramref name="primaryMetric"/> is null. </exception>
public MachineLearningObjective(MachineLearningGoal goal, string primaryMetric)
{
Argument.AssertNotNull(primaryMetric, nameof(primaryMetric));
Goal = goal;
PrimaryMetric = primaryMetric;
}
/// <summary> [Required] Defines supported metric goals for hyperparameter tuning. </summary>
public MachineLearningGoal Goal { get; set; }
/// <summary> [Required] Name of the metric to optimize. </summary>
public string PrimaryMetric { get; set; }
}
}