@@ -54,8 +54,8 @@ public void GenerateOutput()
5454 var dataModelsDir = Path . Combine ( modelprojectDir , "DataModels" ) ;
5555 var modelProjectName = $ "{ settings . OutputName } .Model.csproj";
5656
57- Utils . WriteOutputToFiles ( modelProjectContents . ObservationCSFileContent , "SampleObservation .cs" , dataModelsDir ) ;
58- Utils . WriteOutputToFiles ( modelProjectContents . PredictionCSFileContent , "SamplePrediction .cs" , dataModelsDir ) ;
57+ Utils . WriteOutputToFiles ( modelProjectContents . ModelInputCSFileContent , "ModelInput .cs" , dataModelsDir ) ;
58+ Utils . WriteOutputToFiles ( modelProjectContents . ModelOutputCSFileContent , "ModelOutput .cs" , dataModelsDir ) ;
5959 Utils . WriteOutputToFiles ( modelProjectContents . ModelProjectFileContent , modelProjectName , modelprojectDir ) ;
6060
6161 // Generate ConsoleApp Project
@@ -116,15 +116,15 @@ private void SetRequiredNugetPackages(IEnumerable<PipelineNode> trainerNodes, re
116116 return ( predictProgramCSFileContent , predictProjectFileContent , modelBuilderCSFileContent ) ;
117117 }
118118
119- internal ( string ObservationCSFileContent , string PredictionCSFileContent , string ModelProjectFileContent ) GenerateModelProjectContents ( string namespaceValue , Type labelTypeCsharp , bool includeLightGbmPackage , bool includeMklComponentsPackage , bool includeFastTreePackage )
119+ internal ( string ModelInputCSFileContent , string ModelOutputCSFileContent , string ModelProjectFileContent ) GenerateModelProjectContents ( string namespaceValue , Type labelTypeCsharp , bool includeLightGbmPackage , bool includeMklComponentsPackage , bool includeFastTreePackage )
120120 {
121121 var classLabels = this . GenerateClassLabels ( ) ;
122- var observationCSFileContent = GenerateObservationCSFileContent ( namespaceValue , classLabels ) ;
123- observationCSFileContent = Utils . FormatCode ( observationCSFileContent ) ;
124- var predictionCSFileContent = GeneratePredictionCSFileContent ( labelTypeCsharp . Name , namespaceValue ) ;
125- predictionCSFileContent = Utils . FormatCode ( predictionCSFileContent ) ;
122+ var modelInputCSFileContent = GenerateModelInputCSFileContent ( namespaceValue , classLabels ) ;
123+ modelInputCSFileContent = Utils . FormatCode ( modelInputCSFileContent ) ;
124+ var modelOutputCSFileContent = GenerateModelOutputCSFileContent ( labelTypeCsharp . Name , namespaceValue ) ;
125+ modelOutputCSFileContent = Utils . FormatCode ( modelOutputCSFileContent ) ;
126126 var modelProjectFileContent = GenerateModelProjectFileContent ( includeLightGbmPackage , includeMklComponentsPackage , includeFastTreePackage ) ;
127- return ( observationCSFileContent , predictionCSFileContent , modelProjectFileContent ) ;
127+ return ( modelInputCSFileContent , modelOutputCSFileContent , modelProjectFileContent ) ;
128128 }
129129
130130 internal ( string Usings , string TrainerMethod , List < string > PreTrainerTransforms , List < string > PostTrainerTransforms ) GenerateTransformsAndTrainers ( )
@@ -261,16 +261,16 @@ private static string GenerateModelProjectFileContent(bool includeLightGbmPackag
261261 return modelProject . TransformText ( ) ;
262262 }
263263
264- private string GeneratePredictionCSFileContent ( string predictionLabelType , string namespaceValue )
264+ private string GenerateModelOutputCSFileContent ( string predictionLabelType , string namespaceValue )
265265 {
266- PredictionClass predictionClass = new PredictionClass ( ) { TaskType = settings . MlTask . ToString ( ) , PredictionLabelType = predictionLabelType , Namespace = namespaceValue } ;
267- return predictionClass . TransformText ( ) ;
266+ ModelOutputClass modelOutputClass = new ModelOutputClass ( ) { TaskType = settings . MlTask . ToString ( ) , PredictionLabelType = predictionLabelType , Namespace = namespaceValue } ;
267+ return modelOutputClass . TransformText ( ) ;
268268 }
269269
270- private string GenerateObservationCSFileContent ( string namespaceValue , IList < string > classLabels )
270+ private string GenerateModelInputCSFileContent ( string namespaceValue , IList < string > classLabels )
271271 {
272- ObservationClass observationClass = new ObservationClass ( ) { Namespace = namespaceValue , ClassLabels = classLabels } ;
273- return observationClass . TransformText ( ) ;
272+ ModelInputClass modelInputClass = new ModelInputClass ( ) { Namespace = namespaceValue , ClassLabels = classLabels } ;
273+ return modelInputClass . TransformText ( ) ;
274274 }
275275 #endregion
276276
0 commit comments