public AutoRegression(MLContext mlContext, AlgorithmManagerFactory factory, ModelSaver modelSaver) { _mlContext = mlContext; _modelSaver = modelSaver; _factory = factory; LoadModels(); }
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>); }
public AutoMLRecommender(MLContext mlContext, AlgorithmManagerFactory factory, ModelSaver modelSaver) { _regression = new AutoRegression(mlContext, factory, modelSaver); }