1 write to _pool
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
107_pool = new NormStr.Pool();
10 references to _pool
Microsoft.ML.Data (10)
Transforms\ValueToKeyMappingTransformerImpl.cs (10)
101get { return _pool.Count; } 115int count = _pool.Count; 116return _pool.Add(val).Id == count; 121if (!_sorted || _pool.Count <= 1) 122return new TermMap.TextImpl(_pool); 124var perm = Utils.GetIdentityPermutation(_pool.Count); 125Comparison<int> comp = (i, j) => _pool.GetNormStrById(i).Value.Span.CompareTo(_pool.GetNormStrById(j).Value.Span, StringComparison.Ordinal); 131var nstr = sortedPool.Add(_pool.GetNormStrById(perm[i]).Value); 135Contracts.Assert(sortedPool.Count == _pool.Count);