Exemplo n.º 1
0
 public RowCursor(BootstrapSampleTransformer parent, IRowCursor input, IRandom rgen)
     : base(parent.Host, input)
 {
     Ch.AssertValue(rgen);
     _parent = parent;
     _rgen   = rgen;
 }
Exemplo n.º 2
0
        public static CommonOutputs.TransformOutput GetSample(IHostEnvironment env, BootstrapSampleTransformer.Arguments input)
        {
            Contracts.CheckValue(env, nameof(env));
            env.CheckValue(input, nameof(input));

            var h    = EntryPointUtils.CheckArgsAndCreateHost(env, "BootstrapSample", input);
            var view = new BootstrapSampleTransformer(h, input, input.Data);

            return(new CommonOutputs.TransformOutput()
            {
                Model = new TransformModel(h, view, input.Data),
                OutputData = view
            });
        }