9 instantiations of HingeLoss
Microsoft.ML.Core.Tests (1)
UnitTests\TestLoss.cs (1)
58
var loss = new
HingeLoss
();
Microsoft.ML.Data (2)
Utils\LossFunctions.cs (2)
215
public ISupportSdcaClassificationLoss CreateComponent(IHostEnvironment env) => new
HingeLoss
(this);
217
IClassificationLoss IComponentFactory<IClassificationLoss>.CreateComponent(IHostEnvironment env) => new
HingeLoss
(this);
Microsoft.ML.Samples (2)
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
39
LossFunction = new
HingeLoss
(),
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
38
Loss = new
HingeLoss
(),
Microsoft.ML.StandardTrainers (1)
Standard\Online\AveragedPerceptron.cs (1)
187
LossFunction = lossFunction ?? new
HingeLoss
()
Microsoft.ML.Tests (3)
TrainerEstimators\SdcaTests.cs (2)
235
labelColumnName: "Label", featureColumnName: "Features", lossFunction: new
HingeLoss
(), l2Regularization: 0.001f);
312
Append(mlContext.MulticlassClassification.Trainers.SdcaNonCalibrated(labelColumnName: "LabelIndex", featureColumnName: "Features", lossFunction: new
HingeLoss
(), l2Regularization: 0.001f));
TrainerEstimators\TrainerEstimators.cs (1)
125
ML.BinaryClassification.Trainers.SgdNonCalibrated(new Trainers.SgdNonCalibratedTrainer.Options() { LossFunction = new
HingeLoss
() }) };
11 references to HingeLoss
Microsoft.ML.Core.Tests (3)
UnitTests\TestEntryPoints.cs (2)
3421
options.LossFunction = new
HingeLoss
.Options();
3437
options.LossFunction = new
HingeLoss
.Options() { Margin = 2 };
UnitTests\TestLoss.cs (1)
58
var
loss = new HingeLoss();
Microsoft.ML.Data (5)
Utils\LossFunctions.cs (5)
16
[assembly: LoadableClass(
HingeLoss
.Summary, typeof(
HingeLoss
), typeof(
HingeLoss
.Options), typeof(SignatureClassificationLoss),
36
[assembly: EntryPointModule(typeof(
HingeLoss
.Options))]
279
/// A smooth version of the <see cref="
HingeLoss
"/> function, commonly used in classification tasks.
Microsoft.ML.StandardTrainers (3)
Standard\Online\AveragedPerceptron.cs (1)
100
internal ISupportClassificationLossFactory ClassificationLossFunctionFactory = new
HingeLoss
.Options();
StandardTrainersCatalog.cs (2)
86
/// <param name="lossFunction">The <a href="https://en.wikipedia.org/wiki/Loss_function">loss</a> function minimized in the training process. Using, for example, <see cref="
HingeLoss
"/> leads to a support vector machine trainer.</param>
401
/// <param name="lossFunction">The <a href="https://en.wikipedia.org/wiki/Loss_function">loss</a> function minimized in the training process. If <see langword="null"/>, <see cref="
HingeLoss
"/> would be used and lead to a max-margin averaged perceptron trainer.</param>