Beispiel #1
0
        public void TestEstimatorOlsLinearRegression()
        {
            var dataView = GetRegressionPipeline();
            var pipe     = new OlsLinearRegressionTrainer(Env, "Features", "Label");

            TestEstimatorCore(pipe, dataView);
            Done();
        }
        public void TestEstimatorOlsLinearRegression()
        {
            var dataView = GetRegressionPipeline();
            var trainer  = new OlsLinearRegressionTrainer(Env, "Label", "Features");

            TestEstimatorCore(trainer, dataView);

            var model = trainer.Fit(dataView);

            trainer.Train(dataView, model.Model);
            Done();
        }
        public void TestEstimatorOlsLinearRegression()
        {
            var dataView = GetRegressionPipeline();
            var trainer  = new OlsLinearRegressionTrainer(Env, new OlsLinearRegressionTrainer.Options());

            TestEstimatorCore(trainer, dataView);

            var model = trainer.Fit(dataView);

            trainer.Fit(dataView, model.Model);
            Done();
        }