I am trying to use a train-only pipeline run to train some data with the MultiLabelTextClassification model. But the following error log was produced:
ERROR: Training failed for pipeline type: TRAIN_ONLY, error: malformed node or string: <ast.Name object at 0x7f1327022d30>
How do I interpret this and debug? If it helps, here is the full log:
Train only of MultiLabelPack 23.5.0.0 launched - Run 96b8db6f-1e66-44e4-90a4-a6bbb3be3bc9
Train only of MultiLabelPack 23.5.0.0 started - Run 96b8db6f-1e66-44e4-90a4-a6bbb3be3bc9
Train only of MultiLabelPack 23.5.0.0 scheduled - Run 96b8db6f-1e66-44e4-90a4-a6bbb3be3bc9
Train only of MultiLabelPack 23.5.0.0 failed - Run 96b8db6f-1e66-44e4-90a4-a6bbb3be3bc9
Error Details : Pipeline failed due to ML Package Issue
2023-08-08 04:01:05,232 - UiPath_core.trainer_run:main:74 - INFO: Starting training jobâŚ
2023-08-08 04:01:07,353 - UiPath_core.storage.azure_storage_client:download:118 - INFO: Dataset from bucket folder training-a0394d57-9d8b-4ee7-9b15-97c89266114e/cdd1a17c-7e4d-46ef-ad79-4c48ab6eac9e/94a4d594-4772-4c95-80ae-7a47186275bb with size 1 downloaded successfully
2023-08-08 04:01:07,353 - UiPath_core.training_plugin:train_model:130 - INFO: Start model trainingâŚ
2023-08-08 04:01:07,353 - UiPath_core.training_plugin:initialize_model:124 - INFO: Start model initializationâŚ
2023-08-08 04:01:07,354 - root:init:35 - INFO: Using options: {âcudaâ: True, âdatasetâ: {âpathâ: â/microservice/datasetâ, âcsv_nameâ: None, âtext_column_nameâ: âDescriptionâ, âtarget_column_nameâ: âSubcategoryâ, âdelimiterâ: â,â, âtrain_splitâ: 0.9, âencodingâ: âutf-8â, âdataloader_workersâ: 0}, âmodelâ: {ânameâ: âtestâ, âepochsâ: 10, âtqdmâ: True, âbatch_sizeâ: 24, âoptimizerâ: {âtransformerâ: True}, âschedulerâ: {âtypeâ: âhfâ, âparametersâ: {ânameâ: âlinearâ}}, âgradient_accumulation_stepsâ: 1, âmetricsâ: [âf1â, âECCâ], âpathâ: â/microservice/models/testâ}, ânetworkâ: {ânameâ: âroberta-baseâ, âfreezeâ: True}, âsplit_and_evalâ: False}
2023-08-08 04:01:07,355 - UiPath_core.training_plugin:initialize_model:127 - INFO: Model initialized successfully
2023-08-08 04:01:07,355 - root:read_csv:103 - INFO: Loading data from /microservice/dataset/RogersTrainingData No 0X92.csv
2023-08-08 04:01:07,360 - UiPath_core.training_plugin:model_run:179 - ERROR: Training failed for pipeline type: TRAIN_ONLY, error: malformed node or string: <ast.Name object at 0x7f1327022d30>
2023-08-08 04:01:07,360 - UiPath_core.trainer_run:main:91 - ERROR: Training Job failed, error: malformed node or string: <ast.Name object at 0x7f1327022d30>
Traceback (most recent call last):
File â/home/aicenter/.local/lib/python3.9/site-packages/UiPath_core/trainer_run.pyâ, line 86, in main
wrapper.run()
File â/microservice/training_wrapper.pyâ, line 58, in run
return self.training_plugin.model_run()
File â/home/aicenter/.local/lib/python3.9/site-packages/UiPath_core/training_plugin.pyâ, line 195, in model_run
raise ex
File â/home/aicenter/.local/lib/python3.9/site-packages/UiPath_core/training_plugin.pyâ, line 171, in model_run
self.run_train_only()
File â/home/aicenter/.local/lib/python3.9/site-packages/UiPath_core/training_plugin.pyâ, line 255, in run_train_only
self.train_model(self.local_dataset_directory)
File â/home/aicenter/.local/lib/python3.9/site-packages/UiPath_core/training_plugin.pyâ, line 132, in train_model
response = self.model.train(directory)
File â/microservice/train.pyâ, line 42, in train
self.process_data(split=True)
File â/microservice/train.pyâ, line 87, in process_data
dfs = [self.read_csv(file_path) for file_path in csv_files]
File â/microservice/train.pyâ, line 87, in
dfs = [self.read_csv(file_path) for file_path in csv_files]
File â/microservice/train.pyâ, line 111, in read_csv
df[target_col] = df[target_col].apply(ast.literal_eval)
File â/home/aicenter/.local/lib/python3.9/site-packages/pandas/core/series.pyâ, line 4626, in apply
return SeriesApply(self, func, convert_dtype, args, kwargs).apply()
File â/home/aicenter/.local/lib/python3.9/site-packages/pandas/core/apply.pyâ, line 1025, in apply
return self.apply_standard()
File â/home/aicenter/.local/lib/python3.9/site-packages/pandas/core/apply.pyâ, line 1076, in apply_standard
mapped = lib.map_infer(
File âpandas/_libs/lib.pyxâ, line 2834, in pandas._libs.lib.map_infer
File â/usr/local/lib/python3.9/ast.pyâ, line 105, in literal_eval
return _convert(node_or_string)
File â/usr/local/lib/python3.9/ast.pyâ, line 104, in _convert
return _convert_signed_num(node)
File â/usr/local/lib/python3.9/ast.pyâ, line 78, in _convert_signed_num
return _convert_num(node)
File â/usr/local/lib/python3.9/ast.pyâ, line 69, in _convert_num
_raise_malformed_node(node)
File â/usr/local/lib/python3.9/ast.pyâ, line 66, in _raise_malformed_node
raise ValueError(fâmalformed node or string: {node!r}')
ValueError: malformed node or string: <ast.Name object at 0x7f1327022d30>
2023-08-08 04:01:07,363 - UiPath_core.trainer_run:main:98 - INFO: Job run stopped.