Esempio n. 1
0
        public AutoRegression(MLContext mlContext, AlgorithmManagerFactory factory, ModelSaver modelSaver)
        {
            _mlContext  = mlContext;
            _modelSaver = modelSaver;
            _factory    = factory;

            LoadModels();
        }
Esempio n. 2
0
        public void ConvertTypeToType_NumberToSingle_ValidateResources()
        {
            var dataView = new AlgorithmManagerFactory(_mlContext)
                           .CreateDataViewFromCsv(_fakeDataFilePath, _fakeDataDtypesFilePath);
            var originalSchema = dataView.Schema.OrderBy(c => c.Name).ToList();

            var convertedDataView = new PipelineBuilder(_mlContext, originalSchema)
                                    .ConvertNumberToSingle(false)
                                    .TransformData(dataView);

            var zip = originalSchema.Zip(convertedDataView.Schema.OrderBy(c => c.Name),
                                         (orig, convert) => (orig.Type, convert.Type));

            Assert.All(zip, ConvertedFromTo <NumberDataViewType, float>);
        }
Esempio n. 3
0
 public AutoMLRecommender(MLContext mlContext, AlgorithmManagerFactory factory, ModelSaver modelSaver)
 {
     _regression = new AutoRegression(mlContext, factory, modelSaver);
 }