3 instantiations of OneVersusAllModelParameters
Microsoft.ML.StandardTrainers (3)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (3)
307return new OneVersusAllModelParameters(host, impl); 334return new OneVersusAllModelParameters(host, impl); 403return new OneVersusAllModelParameters(env, ctx);
34 references to OneVersusAllModelParameters
Microsoft.ML.AutoML (2)
TrainerExtensions\MultiTrainerExtensions.cs (2)
70LightGbmMulticlassTrainer.Options options = TrainerExtensionUtil.CreateLightGbmOptions<LightGbmMulticlassTrainer.Options, VBuffer<float>, MulticlassPredictionTransformer<OneVersusAllModelParameters>, OneVersusAllModelParameters>(sweepParams, columnInfo);
Microsoft.ML.EntryPoints (1)
ModelOperations.cs (1)
158OneVersusAllModelParameters.Create(host, input.UseProbabilities,
Microsoft.ML.LightGbm (10)
LightGbmMulticlassTrainer.cs (10)
53MulticlassPredictionTransformer<OneVersusAllModelParameters>, 54OneVersusAllModelParameters> 211private protected override OneVersusAllModelParameters CreatePredictor() 228return OneVersusAllModelParameters.Create(Host, OneVersusAllModelParameters.OutputFormula.Softmax, predictors); 230return OneVersusAllModelParameters.Create(Host, predictors); 375private protected override MulticlassPredictionTransformer<OneVersusAllModelParameters> MakeTransformer(OneVersusAllModelParameters model, DataViewSchema trainSchema) 376=> new MulticlassPredictionTransformer<OneVersusAllModelParameters>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name); 382public MulticlassPredictionTransformer<OneVersusAllModelParameters> Fit(IDataView trainData, IDataView validationData)
Microsoft.ML.PerformanceTests (2)
Numeric\Ranking.cs (1)
60var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, LightGbmMulticlassTrainer, OneVersusAllModelParameters>();
Text\MultiClassClassification.cs (1)
55var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, LightGbmMulticlassTrainer, OneVersusAllModelParameters>();
Microsoft.ML.StandardTrainers (16)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (16)
30[assembly: LoadableClass(typeof(OneVersusAllModelParameters), null, typeof(SignatureLoadModel), 32OneVersusAllModelParameters.LoaderSignature)] 34[assembly: EntryPointModule(typeof(OneVersusAllModelParameters))] 87public sealed class OneVersusAllTrainer : MetaMulticlassTrainer<MulticlassPredictionTransformer<OneVersusAllModelParameters>, OneVersusAllModelParameters> 151private protected override OneVersusAllModelParameters TrainCore(IChannel ch, RoleMappedData data, int count) 160return OneVersusAllModelParameters.Create(Host, _options.UseProbabilities, predictors); 210public override MulticlassPredictionTransformer<OneVersusAllModelParameters> Fit(IDataView input) 237return new MulticlassPredictionTransformer<OneVersusAllModelParameters>(Host, OneVersusAllModelParameters.Create(Host, _options.UseProbabilities, predictors), input.Schema, featureColumn, LabelColumn.Name); 263loaderAssemblyName: typeof(OneVersusAllModelParameters).Assembly.FullName); 298internal static OneVersusAllModelParameters Create(IHost host, OutputFormula outputFormula, TScalarPredictor[] predictors) 338internal static OneVersusAllModelParameters Create(IHost host, bool useProbability, TScalarPredictor[] predictors) 346/// Create a <see cref="OneVersusAllModelParameters"/> from an array of predictors. 349internal static OneVersusAllModelParameters Create(IHost host, TScalarPredictor[] predictors) 398internal static OneVersusAllModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
Microsoft.ML.Tests (3)
TrainerEstimators\TreeEstimators.cs (3)
754var numOfSubParameters = (model.LastTransformer.Model as OneVersusAllModelParameters).SubModelParameters.Length; 761numOfSubParameters = (model.LastTransformer.Model as OneVersusAllModelParameters).SubModelParameters.Length; 768numOfSubParameters = (model.LastTransformer.Model as OneVersusAllModelParameters).SubModelParameters.Length;