2 instantiations of MaximumEntropyModelParameters
Microsoft.ML.StandardTrainers (2)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
305
return new
MaximumEntropyModelParameters
(Host, in CurrentWeights, _numClasses, NumFeatures, _labelNames, _stats);
Standard\SdcaMulticlass.cs (1)
561
return new
MaximumEntropyModelParameters
(Host, weights, bias, bias.Length, weights[0].Length, null, stats: null);
39 references to MaximumEntropyModelParameters
Microsoft.ML.IntegrationTests (2)
IntrospectiveTraining.cs (2)
404
var mcLrModel = (modelComponents[2] as TransformerChain<MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>>).LastTransformer;
430
private IEstimator<TransformerChain<MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>>> StepTwo(MLContext mlContext)
Microsoft.ML.PerformanceTests (4)
StochasticDualCoordinateAscentClassifierBench.cs (3)
36
private TransformerChain<MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>> _trainedModel;
57
public TransformerChain<MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>> TrainIris() => Train(_dataPath);
59
private TransformerChain<MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>> Train(string dataPath)
Text\MultiClassClassification.cs (1)
87
var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, SdcaMaximumEntropyMulticlassTrainer,
MaximumEntropyModelParameters
>();
Microsoft.ML.Samples (1)
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
50
var linearPredictor = (model as TransformerChain<ITransformer>).LastTransformer as MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>;
Microsoft.ML.StandardTrainers (20)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (14)
30
[assembly: LoadableClass(typeof(
MaximumEntropyModelParameters
), null, typeof(SignatureLoadModel),
32
MaximumEntropyModelParameters
.LoaderSignature)]
90
MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>,
MaximumEntropyModelParameters
>
282
var
pred = srcPredictor as
MaximumEntropyModelParameters
;
293
private protected override
MaximumEntropyModelParameters
CreatePredictor()
383
private protected override MulticlassPredictionTransformer<
MaximumEntropyModelParameters
> MakeTransformer(
MaximumEntropyModelParameters
model, DataViewSchema trainSchema)
384
=> new MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name);
390
public MulticlassPredictionTransformer<
MaximumEntropyModelParameters
> Fit(IDataView trainData,
MaximumEntropyModelParameters
modelParameters)
489
/// Initializes a new instance of the <see cref="
MaximumEntropyModelParameters
"/> class.
1213
loaderAssemblyName: typeof(
MaximumEntropyModelParameters
).Assembly.FullName);
Standard\SdcaMulticlass.cs (6)
486
/// The trained model <see cref="
MaximumEntropyModelParameters
"/> produces probabilities of classes.
521
public sealed class SdcaMaximumEntropyMulticlassTrainer : SdcaMulticlassTrainerBase<
MaximumEntropyModelParameters
>
554
private protected override
MaximumEntropyModelParameters
CreatePredictor(VBuffer<float>[] weights, float[] bias)
564
private protected override MulticlassPredictionTransformer<
MaximumEntropyModelParameters
> MakeTransformer(
565
MaximumEntropyModelParameters
model, DataViewSchema trainSchema) =>
566
new MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name);
Microsoft.ML.Tests (12)
PermutationFeatureImportanceTests.cs (2)
536
var castedModel = loadedModel as MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>;
609
var castedModel = loadedModel as MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>;
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (2)
242
var
modelParameters = trainedModel.LastTransformer.Model as
MaximumEntropyModelParameters
;
TrainerEstimators\LbfgsTests.cs (8)
172
var
model = transformer.LastTransformer.Model as
MaximumEntropyModelParameters
;
194
var
model = transformer.LastTransformer.Model as
MaximumEntropyModelParameters
;
196
Action<
MaximumEntropyModelParameters
> validateStats = (modelParams) =>
223
var lastTransformer = ((TransformerChain<ITransformer>)transformerChain).LastTransformer as MulticlassPredictionTransformer<
MaximumEntropyModelParameters
>;
239
var
result = ModelFileUtils.LoadPredictorOrNull(Env, fs) as
MaximumEntropyModelParameters
;