You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/BinaryClassification/FieldAwareFactorizationMachinewWithOptions.cs
/// The data to be used for training. Used only in entry-points, since in the API the expected mechanism is
46
-
/// that the user will use the <see cref="IEstimator{TTransformer}.Fit(IDataView)"/> or some other train
47
-
/// method.
48
-
/// </summary>
49
-
[BestFriend]
50
-
[Argument(ArgumentType.Required,ShortName="data",HelpText="The data to be used for training",SortOrder=1,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
51
-
internalIDataViewTrainingData;
52
-
53
-
/// <summary>
54
-
/// Column to use for features.
55
-
/// </summary>
56
-
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for features",ShortName="feat",SortOrder=2,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
/// Normalize option for the feature column. Used only in entry-points, since in the API the user is expected to do this themselves.
61
-
/// </summary>
62
-
[BestFriend]
63
-
[Argument(ArgumentType.AtMostOnce,HelpText="Normalize option for the feature column",ShortName="norm",SortOrder=5,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
/// Whether learner should cache input training data. Used only in entry-points, since the intended API mechanism
68
-
/// is that the user will use the <see cref="DataOperationsCatalog.Cache(IDataView, string[])"/> or other method
69
-
/// like <see cref="EstimatorChain{TLastTransformer}.AppendCacheCheckpoint(IHostEnvironment)"/>.
70
-
/// </summary>
71
-
[BestFriend]
72
-
[Argument(ArgumentType.LastOccurenceWins,HelpText="Whether learner should cache input training data",ShortName="cache",SortOrder=6,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for labels",ShortName="lab",SortOrder=3,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
86
-
publicstringLabelColumn=DefaultColumnNames.Label;
87
-
}
88
-
89
-
// REVIEW: This is a known antipattern, but the solution involves the decorator pattern which can't be used in this case.
90
-
/// <summary>
91
-
/// The base class for all learner inputs that support a weight column.
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for example weight",ShortName="weight",SortOrder=4,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
100
-
publicstringWeightColumn=null;
101
-
}
102
-
103
-
/// <summary>
104
-
/// The base class for all unsupervised learner inputs that support a weight column.
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for example weight",ShortName="weight",SortOrder=4,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
[Argument(ArgumentType.Required,ShortName="data",HelpText="The data to be used for evaluation.",SortOrder=1,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
123
32
publicIDataViewData;
@@ -126,18 +35,8 @@ public abstract class EvaluateInputBase
[Argument(ArgumentType.AtMostOnce,Name="GroupIdColumn",HelpText="Column to use for example groupId",ShortName="groupId",SortOrder=5,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
/// The data to be used for training. Used only in entry-points, since in the API the expected mechanism is
26
+
/// that the user will use the <see cref="IEstimator{TTransformer}.Fit(IDataView)"/> or some other train
27
+
/// method.
28
+
/// </summary>
29
+
[BestFriend]
30
+
[Argument(ArgumentType.Required,ShortName="data",HelpText="The data to be used for training",SortOrder=1,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
31
+
internalIDataViewTrainingData;
32
+
33
+
/// <summary>
34
+
/// Column to use for features.
35
+
/// </summary>
36
+
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for features",ShortName="feat",SortOrder=2,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
/// Normalize option for the feature column. Used only in entry-points, since in the API the user is expected to do this themselves.
41
+
/// </summary>
42
+
[BestFriend]
43
+
[Argument(ArgumentType.AtMostOnce,HelpText="Normalize option for the feature column",ShortName="norm",SortOrder=5,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
/// Whether learner should cache input training data. Used only in entry-points, since the intended API mechanism
48
+
/// is that the user will use the <see cref="DataOperationsCatalog.Cache(IDataView, string[])"/> or other method
49
+
/// like <see cref="EstimatorChain{TLastTransformer}.AppendCacheCheckpoint(IHostEnvironment)"/>.
50
+
/// </summary>
51
+
[BestFriend]
52
+
[Argument(ArgumentType.LastOccurenceWins,HelpText="Whether learner should cache input training data",ShortName="cache",SortOrder=6,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for labels",ShortName="lab",SortOrder=3,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for example weight",ShortName="weight",SortOrder=4,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
84
+
publicstringExampleWeightColumnName=null;
85
+
}
86
+
87
+
/// <summary>
88
+
/// The base class for all unsupervised learner inputs that support a weight column.
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for example weight",ShortName="weight",SortOrder=4,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for example groupId",ShortName="groupId",SortOrder=5,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
0 commit comments