3 instantiations of RoleMappedSchema
Microsoft.ML.Core (3)
Data\RoleMappedSchema.cs (3)
442
: this(Contracts.CheckRef(data, nameof(data)), new
RoleMappedSchema
(data.Schema, Contracts.CheckRef(roles, nameof(roles)), opt))
457
: this(Contracts.CheckRef(data, nameof(data)), new
RoleMappedSchema
(data.Schema, Contracts.CheckRef(roles, nameof(roles)), opt))
479
new
RoleMappedSchema
(data.Schema, label, feature, group, weight, name, custom, opt))
46 references to RoleMappedSchema
Microsoft.ML.Core (27)
Data\AnnotationUtils.cs (2)
298
public static void GetSlotNames(
RoleMappedSchema
schema,
RoleMappedSchema
.ColumnRole role, int vectorSize, ref VBuffer<ReadOnlyMemory<char>> slotNames)
Data\ISchemaBindableMapper.cs (6)
12
/// A mapper that can be bound to a <see cref="
RoleMappedSchema
"/> (which encapsulates a <see cref="DataViewSchema"/> and has mappings from column kinds
13
/// to columns of that schema). Binding an <see cref="ISchemaBindableMapper"/> to a <see cref="
RoleMappedSchema
"/> produces an
27
ISchemaBoundMapper Bind(IHostEnvironment env,
RoleMappedSchema
schema);
38
/// The <see cref="
RoleMappedSchema
"/> that was passed to the <see cref="ISchemaBoundMapper"/> in the binding process.
40
RoleMappedSchema
InputRoleMappedSchema { get; }
55
IEnumerable<KeyValuePair<
RoleMappedSchema
.ColumnRole, string>> GetInputColumnRoles();
Data\RoleMappedSchema.cs (17)
33
/// Note that there is no need for components consuming a <see cref="RoleMappedData"/> or <see cref="
RoleMappedSchema
"/>
51
/// Instances of this are the keys of a <see cref="
RoleMappedSchema
"/>. This class also holds some important
112
/// for giving to constructors of <see cref="
RoleMappedSchema
"/> and <see cref="RoleMappedData"/>.
391
IEnumerable<KeyValuePair<
RoleMappedSchema
.ColumnRole, string>> custom = null, bool opt = false)
404
/// Encapsulates an <see cref="IDataView"/> plus a corresponding <see cref="
RoleMappedSchema
"/>.
405
/// Note that the schema of <see cref="
RoleMappedSchema
.Schema"/> of <see cref="Schema"/> is
417
/// The role mapped schema. Note that <see cref="Schema"/>'s <see cref="
RoleMappedSchema
.Schema"/> is
420
public
RoleMappedSchema
Schema { get; }
422
private RoleMappedData(IDataView data,
RoleMappedSchema
schema)
441
public RoleMappedData(IDataView data, bool opt = false, params KeyValuePair<
RoleMappedSchema
.ColumnRole, string>[] roles)
456
public RoleMappedData(IDataView data, IEnumerable<KeyValuePair<
RoleMappedSchema
.ColumnRole, string>> roles, bool opt = false)
466
/// <param name="label">The column name that will be mapped to the <see cref="
RoleMappedSchema
.ColumnRole.Label"/> role</param>
467
/// <param name="feature">The column name that will be mapped to the <see cref="
RoleMappedSchema
.ColumnRole.Feature"/> role</param>
468
/// <param name="group">The column name that will be mapped to the <see cref="
RoleMappedSchema
.ColumnRole.Group"/> role</param>
469
/// <param name="weight">The column name that will be mapped to the <see cref="
RoleMappedSchema
.ColumnRole.Weight"/> role</param>
470
/// <param name="name">The column name that will be mapped to the <see cref="
RoleMappedSchema
.ColumnRole.Name"/> role</param>
477
IEnumerable<KeyValuePair<
RoleMappedSchema
.ColumnRole, string>> custom = null, bool opt = false)
EntryPoints\PredictorModel.cs (2)
64
/// Returns the <see cref="
RoleMappedSchema
"/> that was used in training.
67
internal abstract
RoleMappedSchema
GetTrainingSchema(IHostEnvironment env);
Microsoft.ML.Data (12)
Evaluators\EvaluatorBase.cs (5)
59
/// Check that the types of the score and label columns are as expected by the evaluator. The <see cref="
RoleMappedSchema
"/>
61
/// Access the label column with the <see cref="
RoleMappedSchema
.Label"/> property, and the score column with the
62
/// <see cref="
RoleMappedSchema
.GetUniqueColumn"/> or <see cref="
RoleMappedSchema
.GetColumns"/> methods.
231
/// information is stored in the given <see cref="
RoleMappedSchema
"/>.
Evaluators\MamlEvaluator.cs (1)
222
var
schema = scoredData.Schema;
Scorers\GenericScorer.cs (2)
216
var
schema = _bindings.RowMapper.InputRoleMappedSchema;
231
var
schema = _bindings.RowMapper.InputRoleMappedSchema;
Scorers\PredictedLabelScorerBase.cs (2)
336
var
schema = Bindings.RowMapper.InputRoleMappedSchema;
369
var
schema = Bindings.RowMapper.InputRoleMappedSchema;
Utilities\ModelFileUtils.cs (2)
325
/// Returns the <see cref="
RoleMappedSchema
"/> from a model stream, or <c>null</c> if there were no
339
/// Returns the <see cref="
RoleMappedSchema
"/> from a repository, or <c>null</c> if there were no
Microsoft.ML.FastTree (3)
GamModelParameters.cs (1)
633
var
schema = _data.Schema;
TreeEnsemble\InternalTreeEnsemble.cs (1)
421
/// A class that given either a <see cref="
RoleMappedSchema
"/>
TreeEnsembleFeaturizationTransformer.cs (1)
59
/// Create <see cref="
RoleMappedSchema
"/> from <paramref name="schema"/> by using <see cref="_featureDetachedColumn"/> as the feature role.
Microsoft.ML.StandardTrainers (4)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (4)
870
/// Actual implementation of <see cref="ICanSaveInTextFormat.SaveAsText(TextWriter,
RoleMappedSchema
)"/> should happen in derived classes.
889
/// Redirect <see cref="ICanSaveInTextFormat.SaveAsText(TextWriter,
RoleMappedSchema
)"/> call to the right function.
902
/// Actual implementation of <see cref="ICanSaveInSourceCode.SaveAsCode(TextWriter,
RoleMappedSchema
)"/> should happen in derived classes.
928
/// Redirect <see cref="ICanSaveInSourceCode.SaveAsCode(TextWriter,
RoleMappedSchema
)"/> call to the right function.