protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) { var outputSchema = Schema.Create(new ScoreMapperSchema(ScoreType, _scoreColumnKind)); return(new SingleValueRowMapper(schema, this, outputSchema)); }
protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) { return(new SingleValueRowMapper(schema, this, Schema.Create(new SchemaImpl(ScoreType, _quantiles)))); }
/// <summary> /// Constructor for <see cref="ApplyToData"/> method. /// </summary> private GenericScorer(IHostEnvironment env, GenericScorer transform, IDataView data) : base(env, data, RegistrationName, transform.Bindable) { _bindings = transform._bindings.ApplyToSchema(env, data.Schema); OutputSchema = Schema.Create(_bindings); }