Пример #1
0
        private static string GenerateModelProjectFileContent(bool includeLightGbmPackage, bool includeMklComponentsPackage, bool includeFastTreePackage)
        {
            ModelProject modelProject = new ModelProject()
            {
                IncludeLightGBMPackage = includeLightGbmPackage, IncludeMklComponentsPackage = includeMklComponentsPackage, IncludeFastTreePackage = includeFastTreePackage
            };

            return(modelProject.TransformText());
        }
        private static string GenerateModelProjectFileContent(bool includeLightGbmPackage,
                                                              bool includeMklComponentsPackage, bool includeFastTreePackage, bool includeImageTransformerPackage,
                                                              bool includeImageClassificationPackage, bool includeRecommenderPackage,
                                                              string stablePackageVersion, string unstablePackageVersion)
        {
            ModelProject modelProject = new ModelProject()
            {
                IncludeLightGBMPackage            = includeLightGbmPackage,
                IncludeMklComponentsPackage       = includeMklComponentsPackage,
                IncludeFastTreePackage            = includeFastTreePackage,
                IncludeImageTransformerPackage    = includeImageTransformerPackage,
                IncludeImageClassificationPackage = includeImageClassificationPackage,
                IncludeRecommenderPackage         = includeRecommenderPackage,
                StablePackageVersion   = stablePackageVersion,
                UnstablePackageVersion = unstablePackageVersion
            };

            return(modelProject.TransformText());
        }
Пример #3
0
        private string GenerateModelProjectFileContent(bool includeLightGbmPackage,
                                                       bool includeMklComponentsPackage, bool includeFastTreePackage, bool includeImageTransformerPackage,
                                                       bool includeImageClassificationPackage, bool includeRecommenderPackage, bool includeOnnxModel,
                                                       string stablePackageVersion, string unstablePackageVersion, GenerateTarget target)
        {
            ModelProject modelProject = new ModelProject()
            {
                IncludeLightGBMPackage            = includeLightGbmPackage,
                IncludeMklComponentsPackage       = includeMklComponentsPackage,
                IncludeFastTreePackage            = includeFastTreePackage,
                IncludeImageTransformerPackage    = includeImageTransformerPackage,
                IncludeImageClassificationPackage = includeImageClassificationPackage,
                IncludeOnnxModel          = includeOnnxModel,
                IncludeRecommenderPackage = includeRecommenderPackage,
                StablePackageVersion      = stablePackageVersion,
                UnstablePackageVersion    = unstablePackageVersion,
                OnnxRuntimePackageVersion = _settings.OnnxRuntimePacakgeVersion,
                Target = target,
            };

            return(modelProject.TransformText());
        }