1 write to Value
Microsoft.ML.Core (1)
Data\RoleMappedSchema.cs (1)
104
Value
= value;
12 references to Value
Microsoft.ML.Core (12)
Data\RoleMappedSchema.cs (12)
204
Contracts.AssertNonEmpty(role.
Value
);
206
if (!map.TryGetValue(role.
Value
, out var list))
209
map.Add(role.
Value
, list);
222
Contracts.AssertNonEmpty(kvp.Key.
Value
);
227
Add(map, kvp.Key.
Value
, info.Value);
229
throw 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;
289
if (_map.TryGetValue(role.
Value
, out var list))
307
throw Contracts.Except("Expected exactly one column with role '{0}', but found {1}.", role.
Value
, Utils.Size(infos));