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