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)
98if (_shapeToInputMap == null) 104_inputFeatureToShapeFunctionMap = new Dictionary<int, int>(_shapeToInputMap.Length); 105for (int i = 0; i < _shapeToInputMap.Length; i++) 107Host.CheckParam(0 <= _shapeToInputMap[i] && _shapeToInputMap[i] < _numInputFeatures, nameof(_shapeToInputMap), "Contains out of range feature value"); 108Host.CheckParam(!_inputFeatureToShapeFunctionMap.ContainsValue(_shapeToInputMap[i]), nameof(_shapeToInputMap), "Contains duplicate mappings"); 109_inputFeatureToShapeFunctionMap[_shapeToInputMap[i]] = i; 157Host.CheckDecode(_shapeToInputMap[val] == -1); 159_shapeToInputMap[val] = key; 377int featureIndex = _shapeToInputMap[internalIndex]; 388int featureIndex = _shapeToInputMap[internalIndex]; 857i => new FeatureInfo(context, context._pred._shapeToInputMap[i], i, context._catsMap));