Exemple #1
0
        internal SsaForecastingEstimator(IHostEnvironment env, SsaForecastingTransformer.Options options)
        {
            Contracts.CheckValue(env, nameof(env));
            _host = env.Register(nameof(SsaForecastingEstimator));

            _host.CheckNonEmpty(options.Name, nameof(options.Name));
            _host.CheckNonEmpty(options.Source, nameof(options.Source));

            _options = options;
        }
        internal static CommonOutputs.TransformOutput SsaForecasting(IHostEnvironment env, SsaForecastingTransformer.Options options)
        {
            var h    = EntryPointUtils.CheckArgsAndCreateHost(env, "SsaForecasting", options);
            var view = new SsaForecastingEstimator(h, options).Fit(options.Data).Transform(options.Data);

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