1 write to Value
Microsoft.ML.Core (1)
Data\RoleMappedSchema.cs (1)
104
Value
= value;
57 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));
Microsoft.ML.Data (20)
DataLoadSave\TransformerChain.cs (14)
302
roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value);
306
roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value,
307
roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Label.
Value
).First().Value);
310
roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value);
313
roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value);
316
roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value);
319
roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value);
Deprecated\Instances\HeaderSchema.cs (3)
40
schemaBuilder.AddColumn(RoleMappedSchema.ColumnRole.Feature.
Value
, _colType, metadataBuilder.ToAnnotations());
309
roles: RoleMappedSchema.ColumnRole.Feature.Bind(RoleMappedSchema.ColumnRole.Feature.
Value
));
401
roles: RoleMappedSchema.ColumnRole.Feature.Bind(RoleMappedSchema.ColumnRole.Feature.
Value
));
Scorers\RowToRowScorerBase.cs (1)
421
ctx.SaveNonEmptyString(kvp.Key.
Value
);
Utilities\ModelFileUtils.cs (2)
245
foreach (var role in schema.GetColumnRoleNames().OrderBy(r => r.Key.
Value
))
247
rolesList.Add(role.Key.
Value
);
Microsoft.ML.EntryPoints (18)
PermutationFeatureImportance.cs (18)
91
var featureColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value;
92
var labelColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Label.
Value
).First().Value;
148
var featureColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value;
149
var labelColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Label.
Value
).First().Value;
207
var featureColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value;
208
var labelColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Label.
Value
).First().Value;
259
var featureColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Feature.
Value
).First().Value;
260
var labelColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Label.
Value
).First().Value;
261
var groupIdColumnName = roles.Where(x => x.Key.
Value
== RoleMappedSchema.ColumnRole.Group.
Value
).First().Value;
Microsoft.ML.Recommender (7)
MatrixFactorizationTrainer.cs (2)
531
roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixColumnIndexKind.
Value
, MatrixColumnIndexName));
532
roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixRowIndexKind.
Value
, MatrixRowIndexName));
RecommenderUtils.cs (5)
51
Contracts.AssertValue(role.
Value
);
58
throw Contracts.ExceptDecode(format2, role.
Value
, kindCount);
59
throw Contracts.Except(format2, role.
Value
, kindCount);
70
throw Contracts.ExceptDecode(format, col.Name, role.
Value
, col.Type);
71
throw Contracts.Except(format, col.Name, role.
Value
, col.Type);