2 writes to NumberOfShapeFunctions
Microsoft.ML.FastTree (2)
GamModelParameters.cs (2)
78
NumberOfShapeFunctions
= binEffects.Length;
123
NumberOfShapeFunctions
= reader.ReadInt32();
39 references to NumberOfShapeFunctions
Microsoft.ML.FastTree (31)
GamModelParameters.cs (31)
81
_binsAtAllZero = new int[
NumberOfShapeFunctions
];
85
for (int i = 0; i <
NumberOfShapeFunctions
; i++)
99
_shapeToInputMap = Utils.GetIdentityPermutation(
NumberOfShapeFunctions
);
103
_numInputFeatures =
NumberOfShapeFunctions
;
124
Host.CheckDecode(
NumberOfShapeFunctions
>= 0);
132
_binEffects = new double[
NumberOfShapeFunctions
][];
133
_binUpperBounds = new double[
NumberOfShapeFunctions
][];
134
_binsAtAllZero = new int[
NumberOfShapeFunctions
];
135
for (int i = 0; i <
NumberOfShapeFunctions
; i++)
140
for (int i = 0; i <
NumberOfShapeFunctions
; i++)
149
_shapeToInputMap = Utils.CreateArray(
NumberOfShapeFunctions
, -1);
155
Host.CheckDecode(0 <= val && val <
NumberOfShapeFunctions
);
170
ctx.Writer.Write(
NumberOfShapeFunctions
);
171
Host.Assert(
NumberOfShapeFunctions
>= 0);
175
for (int i = 0; i <
NumberOfShapeFunctions
; i++)
180
for (int i = 0; i <
NumberOfShapeFunctions
; i++)
236
Host.CheckParam(Utils.Size(bins) ==
NumberOfShapeFunctions
, nameof(bins));
253
Array.Copy(_binsAtAllZero, bins,
NumberOfShapeFunctions
);
268
Host.Assert(0 <= featureIndex && featureIndex <
NumberOfShapeFunctions
, "Index out of range.");
275
Host.Check(0 <= featureIndex && featureIndex <
NumberOfShapeFunctions
, "Index out of range.");
287
Host.Check(0 <= featureIndex && featureIndex <
NumberOfShapeFunctions
, "Index out of range.");
302
double[][] binUpperBounds = new double[
NumberOfShapeFunctions
][];
303
for (int i = 0; i <
NumberOfShapeFunctions
; i++)
325
Host.Check(0 <= featureIndex && featureIndex <
NumberOfShapeFunctions
, "Index out of range.");
340
double[][] binEffects = new double[
NumberOfShapeFunctions
][];
341
for (int i = 0; i <
NumberOfShapeFunctions
; i++)
362
writer.WriteLine($"Number of features:\t{
NumberOfShapeFunctions
+ 1:D}");
375
for (int internalIndex = 0; internalIndex <
NumberOfShapeFunctions
; internalIndex++)
386
for (int internalIndex = 0; internalIndex <
NumberOfShapeFunctions
; internalIndex++)
441
for (int featureIndex = 0; featureIndex <
NumberOfShapeFunctions
; featureIndex++)
856
return Utils.BuildArray(context._pred.
NumberOfShapeFunctions
,
Microsoft.ML.IntegrationTests (1)
IntrospectiveTraining.cs (1)
154
for (int i = 0; i < gamModel.
NumberOfShapeFunctions
; i++)
Microsoft.ML.Predictor.Tests (3)
TestGamPublicInterfaces.cs (3)
43
Assert.Equal(binUpperBounds.Length, gam.
NumberOfShapeFunctions
);
50
for (int i = 0; i < gam.
NumberOfShapeFunctions
; i++)
55
for (int i = 0; i < gam.
NumberOfShapeFunctions
; i++)
Microsoft.ML.Samples (4)
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
62
for (int i = 0; i < gam.
NumberOfShapeFunctions
; i++)
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
70
for (int i = 0; i < gam.
NumberOfShapeFunctions
; i++)
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
62
for (int i = 0; i < gam.
NumberOfShapeFunctions
; i++)
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
70
for (int i = 0; i < gam.
NumberOfShapeFunctions
; i++)