lichenyu20 opened a new pull request, #9458:
URL: https://github.com/apache/iotdb/pull/9458

   Implement mlnode parser
   
   parse training request of type TCreateTrainingTaskReq
   Usage:
   
   ```python
       modelId = 'mid_etth1_dlinear_default'
       isAuto = False
       modelConfigs = {
           'task_class': 'forecast_training_task',
           'source_type': 'thrift',
           'dataset_type': 'window',
           'time_embed': 'h',
           'input_len': 96,
           'pred_len': 96,
           'model_name': 'dlinear',
           'input_vars': 7,
           'output_vars': 7,
           'task_type': 'm',
           'kernel_size': 25,
           'learning_rate': 1e-3,
           'batch_size': 32,
           'num_workers': 0,
           'epochs': 10,
           'metric_names': ['MSE', 'MAE']
       }
       queryExpressions = ['root.eg.etth1.**', 'root.eg.etth1.**', 
'root.eg.etth1.**']
       queryFilter = '0,1501516800000'
       req = TCreateTrainingTaskReq(
           modelId=str(modelId),
           isAuto=isAuto,
           modelConfigs={k: str(v) for k, v in modelConfigs.items()},
           queryExpressions=[str(query) for query in queryExpressions],
           queryFilter=str(queryFilter),
       )
       data_conf, model_conf, task_conf = parse_training_request(req)
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to