private static string GeneratPredictProjectFileContent(string namespaceValue, bool includeLightGbmPackage, bool includeMklComponentsPackage, bool includeFastTreePackage, bool includeImageTransformerPackage, bool includeImageClassificationPackage, bool includeRecommenderPackage, bool includeOnnxPackage, bool includeResNet18Package, string stablePackageVersion, string unstablePackageVersion, GenerateTarget target) { var predictProjectFileContent = new PredictProject() { Namespace = namespaceValue, IncludeMklComponentsPackage = includeMklComponentsPackage, IncludeLightGBMPackage = includeLightGbmPackage, IncludeFastTreePackage = includeFastTreePackage, IncludeImageTransformerPackage = includeImageTransformerPackage, IncludeImageClassificationPackage = includeImageClassificationPackage, IncludeOnnxPackage = includeOnnxPackage, IncludeResNet18Package = includeResNet18Package, IncludeRecommenderPackage = includeRecommenderPackage, StablePackageVersion = stablePackageVersion, UnstablePackageVersion = unstablePackageVersion, Target = target, }; return(predictProjectFileContent.TransformText()); }
private static 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, Target = target, }; return(modelProject.TransformText()); }