2 instantiations of GamBinaryModelParameters
Microsoft.ML.FastTree (2)
GamClassification.cs (2)
140
var predictor = new
GamBinaryModelParameters
(Host,
240
var predictor = new
GamBinaryModelParameters
(env, ctx);
25 references to GamBinaryModelParameters
Microsoft.ML.FastTree (16)
GamClassification.cs (14)
23
[assembly: LoadableClass(typeof(IPredictorProducing<float>), typeof(
GamBinaryModelParameters
), null, typeof(SignatureLoadModel),
25
GamBinaryModelParameters
.LoaderSignature)]
57
BinaryPredictionTransformer<CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>>,
58
CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>>
137
private protected override CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator> TrainModelCore(TrainContext context)
140
var
predictor = new GamBinaryModelParameters(Host,
143
return new ValueMapperCalibratedModelParameters<
GamBinaryModelParameters
, PlattCalibrator>(Host, predictor, calibrator);
172
private protected override BinaryPredictionTransformer<CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>>
173
MakeTransformer(CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator> model, DataViewSchema trainSchema)
174
=> new BinaryPredictionTransformer<CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>>(Host, model, trainSchema, FeatureColumn.Name);
180
public BinaryPredictionTransformer<CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>> Fit(IDataView trainData, IDataView validationData)
231
loaderAssemblyName: typeof(
GamBinaryModelParameters
).Assembly.FullName);
240
var
predictor = new GamBinaryModelParameters(env, ctx);
245
return new SchemaBindableCalibratedModelParameters<
GamBinaryModelParameters
, ICalibrator>(env, predictor, calibrator);
GamModelParameters.cs (2)
882
var calibrated = rawPred as CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>;
887
calibrated = rawPred as CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>;
Microsoft.ML.IntegrationTests (3)
ModelFiles.cs (3)
195
Assert.IsType<
GamBinaryModelParameters
>(
313
var
gamModel = calibratedModelParameters.SubModel as
GamBinaryModelParameters
;
Microsoft.ML.Samples (4)
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
48
var
gam = model.Model.SubModel;
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
56
var
gam = model.Model.SubModel;
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
48
var
gam = model.Model.SubModel;
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
56
var
gam = model.Model.SubModel;
Microsoft.ML.Tests (2)
CalibratedModelParametersTests.cs (2)
56
var castedModel = loadedModel as BinaryPredictionTransformer<CalibratedModelParametersBase<
GamBinaryModelParameters
, PlattCalibrator>>;
60
Type expectedInternalType = typeof(ValueMapperCalibratedModelParameters<
GamBinaryModelParameters
, PlattCalibrator>);