2 writes to _inputFeatureToShapeFunctionMap
Microsoft.ML.FastTree (2)
19 references to _inputFeatureToShapeFunctionMap
Microsoft.ML.FastTree (19)
GamModelParameters.cs (19)
108Host.CheckParam(!_inputFeatureToShapeFunctionMap.ContainsValue(_shapeToInputMap[i]), nameof(_shapeToInputMap), "Contains duplicate mappings");
109_inputFeatureToShapeFunctionMap[_shapeToInputMap[i]] = i;
156Host.CheckDecode(!_inputFeatureToShapeFunctionMap.ContainsKey(key));
158_inputFeatureToShapeFunctionMap[key] = val;
185ctx.Writer.Write(_inputFeatureToShapeFunctionMap.Count);
186foreach (KeyValuePair<int, int> kvp in _inputFeatureToShapeFunctionMap)
213if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
224if (_inputFeatureToShapeFunctionMap.TryGetValue(featuresIndices[i], out int j))
244if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
258if (_inputFeatureToShapeFunctionMap.TryGetValue(featuresIndices[i], out int j))
288if (!_inputFeatureToShapeFunctionMap.TryGetValue(featureIndex, out int j))
305if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
326if (!_inputFeatureToShapeFunctionMap.TryGetValue(featureIndex, out int j))
343if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
427if (_inputFeatureToShapeFunctionMap.TryGetValue(featureIndex, out int j))
698if (!_pred._inputFeatureToShapeFunctionMap.TryGetValue(feat, out internalIndex))
814Contracts.Assert(context._pred._inputFeatureToShapeFunctionMap.ContainsKey(index)
815&& context._pred._inputFeatureToShapeFunctionMap[index] == internalIndex);
846if (!context._pred._inputFeatureToShapeFunctionMap.TryGetValue(index, out internalIndex))