52 references to Feature
Microsoft.ML.Core (5)
Data\RoleMappedSchema.cs (5)
52/// commonly used pre-defined instances available (for example, <see cref="Label"/>, <see cref="Feature"/>) that should 130/// The <see cref="ColumnRole.Feature"/> column, when there is exactly one (null otherwise). 361yield return ColumnRole.Feature.Bind(feature); 381/// <param name="feature">The column name that will be mapped to the <see cref="ColumnRole.Feature"/> role</param> 467/// <param name="feature">The column name that will be mapped to the <see cref="RoleMappedSchema.ColumnRole.Feature"/> role</param>
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
2184RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Feature, "Features"),
Microsoft.ML.Data (16)
DataLoadSave\TransformerChain.cs (6)
302roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 306roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value, 310roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 313roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 316roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 319roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value);
Deprecated\Instances\HeaderSchema.cs (5)
40schemaBuilder.AddColumn(RoleMappedSchema.ColumnRole.Feature.Value, _colType, metadataBuilder.ToAnnotations()); 309roles: RoleMappedSchema.ColumnRole.Feature.Bind(RoleMappedSchema.ColumnRole.Feature.Value)); 401roles: RoleMappedSchema.ColumnRole.Feature.Bind(RoleMappedSchema.ColumnRole.Feature.Value));
Evaluators\ClusteringEvaluator.cs (2)
77roles.Add(RoleMappedSchema.ColumnRole.Feature.Bind(features)); 816yield return RoleMappedSchema.ColumnRole.Feature.Bind(feat);
Scorers\FeatureContributionCalculation.cs (1)
390yield return RoleMappedSchema.ColumnRole.Feature.Bind(FeatureColumn.Name);
Scorers\SchemaBindablePredictorWrapper.cs (2)
230yield return RoleMappedSchema.ColumnRole.Feature.Bind(InputRoleMappedSchema.Feature.Value.Name); 550yield return (InputRoleMappedSchema.Feature.HasValue) ? RoleMappedSchema.ColumnRole.Feature.Bind(InputRoleMappedSchema.Feature?.Name) : RoleMappedSchema.ColumnRole.Label.Bind(InputRoleMappedSchema.Label?.Name);
Microsoft.ML.EntryPoints (6)
FeatureCombiner.cs (2)
33yield return RoleMappedSchema.ColumnRole.Feature.Bind(col); 56var feats = rms.GetColumns(RoleMappedSchema.ColumnRole.Feature);
PermutationFeatureImportance.cs (4)
91var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value; 148var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value; 207var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value; 259var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value;
Microsoft.ML.FastTree (5)
FastTree.cs (2)
3151AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumFeatures, ref names); 3183AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumFeatures, ref names);
GamModelParameters.cs (1)
373AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, _numInputFeatures, ref names);
TreeEnsembleFeaturizationTransformer.cs (1)
65roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, _featureDetachedColumn.Name));
TreeEnsembleFeaturizer.cs (1)
359yield return RoleMappedSchema.ColumnRole.Feature.Bind(FeatureColumn.Name);
Microsoft.ML.Mkl.Components (1)
OlsLinearRegression.cs (1)
902AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weight.Length, ref names);
Microsoft.ML.Predictor.Tests (2)
TestIniModels.cs (2)
536new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, "Features"), 575new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, "Features"),
Microsoft.ML.StandardTrainers (16)
FactorizationMachine\FactorizationMachineTrainer.cs (5)
362var featureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 415var featureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 440var validFeatureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 595roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, feat.Name)); 600roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, WeightColumn.Name));
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
425roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, feat));
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (2)
84_columns = schema.GetColumns(RoleMappedSchema.ColumnRole.Feature).ToArray(); 87var inputFeatureColumns = _columns.Select(c => new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, c.Name)).ToList();
Standard\LinearModelParameters.cs (2)
377AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weight.Length, ref names); 552AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weight.Length, ref names);
Standard\LinearPredictorUtils.cs (3)
38AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, weights.Length, ref featureNames); 106AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, weights.Length, ref featureNames); 232AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, weights.Length, ref names);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
839AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumberOfFeatures, ref names); 1100AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumberOfFeatures, ref dst); 1120AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weights.Length, ref names);