Change the variables used in the training job creation 20/15120/1
authorTaewan Kim <t25.kim@samsung.com>
Mon, 6 Oct 2025 13:49:04 +0000 (22:49 +0900)
committerTaewan Kim <t25.kim@samsung.com>
Mon, 6 Oct 2025 13:49:04 +0000 (22:49 +0900)
Changed as follows:
modelLocation, trainingConfig, trainingDataset,
validationDataset, notificationDestination, consumerRAppId, producerRAppId

Issue-ID: AIMLFW-237
Change-Id: I27105c22dc7237af86262c145fa6ac46bd7f9cb0
Signed-off-by: Taewan Kim <t25.kim@samsung.com>
src/components/home/form/CreateOrEditTrainingJobForm.js

index a4545e8..668989d 100644 (file)
@@ -374,11 +374,11 @@ class CreateTrainingJob extends React.Component {
     trainingJobAPI.invokeTrainingJob({
       data: {
         modelId: {
-          modelname: this.state.modelName,
-          modelversion: this.state.modelVersion,
+          modelName: this.state.modelName,
+          modelVersion: this.state.modelVersion,
         },
-        model_location: this.state.modelLocation,
-        training_config: {
+        modelLocation: this.state.modelLocation,
+        trainingConfig: {
           description: this.state.trainingConfigDescription,
           dataPipeline: {
             feature_group_name: this.state.featureGroupName,
@@ -392,11 +392,11 @@ class CreateTrainingJob extends React.Component {
             retraining_pipeline_version: this.state.retrainingPipelineVersion,
           },
         },
-        training_dataset: this.state.trainingDataset,
-        validation_dataset: this.state.validationDataset,
-        notification_url: this.state.notificationUrl,
-        consumer_rapp_id: this.state.consumerRappId,
-        producer_rapp_id: this.state.producerRappId,
+        trainingDataset: this.state.trainingDataset,
+        validationDataset: this.state.validationDataset,
+        notificationDestination: this.state.notificationUrl,
+        consumerRAppId: this.state.consumerRappId,
+        producerRAppId: this.state.producerRappId,
       }
     })
     .then(res => {