Exemplo n.º 1
0
        public static CommonOutputs.TransformOutput PValueTransform(IHostEnvironment env, PValueTransform.Arguments input)
        {
            var h    = EntryPointUtils.CheckArgsAndCreateHost(env, "PValueTransform", input);
            var view = new PValueTransform(h, input, input.Data);

            return(new CommonOutputs.TransformOutput()
            {
                Model = new TransformModelImpl(h, view, input.Data),
                OutputData = view
            });
        }
Exemplo n.º 2
0
 private protected override void InitializeStateCore()
 {
     _parent    = (PValueTransform)ParentTransform;
     _randomGen = RandomUtils.Create(_parent._seed);
 }