Пример #1
0
 public IidChangePointEstimator(IHostEnvironment env, IidChangePointDetector.Arguments args)
     : base(Contracts.CheckRef(env, nameof(env)).Register(nameof(IidChangePointEstimator)),
            new IidChangePointDetector(env, args))
 {
 }
        public static CommonOutputs.TransformOutput IidChangePointDetector(IHostEnvironment env, IidChangePointDetector.Arguments input)
        {
            var h    = EntryPointUtils.CheckArgsAndCreateHost(env, "IidChangePointDetector", input);
            var view = new IidChangePointEstimator(h, input).Fit(input.Data).Transform(input.Data);

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