1 write to Value
Microsoft.ML.Core (1)
Data\RoleMappedSchema.cs (1)
104Value = value;
12 references to Value
Microsoft.ML.Core (12)
Data\RoleMappedSchema.cs (12)
204Contracts.AssertNonEmpty(role.Value); 206if (!map.TryGetValue(role.Value, out var list)) 209map.Add(role.Value, list); 222Contracts.AssertNonEmpty(kvp.Key.Value); 227Add(map, kvp.Key.Value, info.Value); 229throw Contracts.ExceptParam(nameof(schema), $"{kvp.Value} column '{kvp.Key.Value}' not found"); 238=> _map.ContainsKey(role.Value); 244=> _map.TryGetValue(role.Value, out var cols) && cols.Count == 1; 250=> _map.TryGetValue(role.Value, out var cols) && cols.Count > 1; 257=> _map.TryGetValue(role.Value, out var list) ? list : null; 289if (_map.TryGetValue(role.Value, out var list)) 307throw Contracts.Except("Expected exactly one column with role '{0}', but found {1}.", role.Value, Utils.Size(infos));