private void SetScorer() { var schema = new RoleMappedSchema(TrainSchema, LabelColumnName, FeatureColumnName); var args = new BinaryClassifierScorer.Arguments { Threshold = Threshold, ThresholdColumn = ThresholdColumn }; Scorer = new BinaryClassifierScorer(Host, args, new EmptyDataView(Host, TrainSchema), BindableMapper.Bind(Host, schema), schema); }
private BinaryClassifierScorer(IHostEnvironment env, BinaryClassifierScorer transform, IDataView newSource) : base(env, transform, newSource, RegistrationName) { _threshold = transform._threshold; }