3 writes to _shapeToInputMap
Microsoft.ML.FastTree (3)
GamModelParameters.cs (3)
97
_shapeToInputMap
= shapeToInputMap;
99
_shapeToInputMap
= Utils.GetIdentityPermutation(NumberOfShapeFunctions);
149
_shapeToInputMap
= Utils.CreateArray(NumberOfShapeFunctions, -1);
14 references to _shapeToInputMap
Microsoft.ML.FastTree (14)
GamModelParameters.cs (14)
98
if (
_shapeToInputMap
== null)
104
_inputFeatureToShapeFunctionMap = new Dictionary<int, int>(
_shapeToInputMap
.Length);
105
for (int i = 0; i <
_shapeToInputMap
.Length; i++)
107
Host.CheckParam(0 <=
_shapeToInputMap
[i] &&
_shapeToInputMap
[i] < _numInputFeatures, nameof(
_shapeToInputMap
), "Contains out of range feature value");
108
Host.CheckParam(!_inputFeatureToShapeFunctionMap.ContainsValue(
_shapeToInputMap
[i]), nameof(
_shapeToInputMap
), "Contains duplicate mappings");
109
_inputFeatureToShapeFunctionMap[
_shapeToInputMap
[i]] = i;
157
Host.CheckDecode(
_shapeToInputMap
[val] == -1);
159
_shapeToInputMap
[val] = key;
377
int featureIndex =
_shapeToInputMap
[internalIndex];
388
int featureIndex =
_shapeToInputMap
[internalIndex];
857
i => new FeatureInfo(context, context._pred.
_shapeToInputMap
[i], i, context._catsMap));