Problem with Training Data

Hi,

When I try to train the data , facing an error.

Train only of Test 3.0 scheduled - Run 394ce682-03a6-4b7e-93df-70a003834d24
Train only of Test 3.0 launched - Run 394ce682-03a6-4b7e-93df-70a003834d24
Train only of Test 3.0 started - Run 394ce682-03a6-4b7e-93df-70a003834d24
Train only of Test 3.0 failed - Run 394ce682-03a6-4b7e-93df-70a003834d24

Error Details : Pipeline failed due to ML Package Issue

2022-05-16 15:29:37,486 - uipath_core.trainer_run:main:73 - INFO: Starting training job…
2022-05-16 15:29:40,174 - uipath_core.storage.azure_storage_client:download:106 - INFO: Dataset from bucket folder training-03a5a3ba-35d3-4e7a-9c7d-10737e63a54d/4335ceab-9094-4cb6-95cd-4a4e6f61076f/e60883fe-95ec-4255-a4af-fde9b76998d9 with size 1 downloaded successfully
2022-05-16 15:29:40,175 - uipath_core.training_plugin:train_model:114 - INFO: Start model training…
2022-05-16 15:29:40,175 - uipath_core.training_plugin:initialize_model:108 - INFO: Start model initialization…
2022-05-16 15:29:40,175 - uipath_core.training_plugin:initialize_model:111 - INFO: Model initialized successfully
2022-05-16 15:29:40,176 - aiflib.data_manager:info:14 - INFO: Loading data from /data/dataset…
2022-05-16 15:29:40,185 - aiflib.data_manager:info:14 - INFO: File [/data/dataset/train.csv] does not have name [target] in header[‘id’, ‘diagnosis’, ‘radius_mean’, ‘texture_mean’, ‘perimeter_mean’, ‘area_mean’, ‘smoothness_mean’, ‘compactness_mean’, ‘concavity_mean’, ‘concave points_mean’, ‘symmetry_mean’, ‘fractal_dimension_mean’, ‘radius_se’, ‘texture_se’, ‘perimeter_se’, ‘area_se’, ‘smoothness_se’, ‘compactness_se’, ‘concavity_se’, ‘concave points_se’, ‘symmetry_se’, ‘fractal_dimension_se’, ‘radius_worst’, ‘texture_worst’, ‘perimeter_worst’, ‘area_worst’, ‘smoothness_worst’, ‘compactness_worst’, ‘concavity_worst’, ‘concave points_worst’, ‘symmetry_worst’, ‘fractal_dimension_worst’, ‘Unnamed: 32’]‘, skipping this file. The csv file must contain a header, a target column and and at least one feature column. The target column name is set by the <input_column> variable of this run. The default value is ‘target’.
2022-05-16 15:29:40,185 - aiflib.data_manager:info:14 - INFO: Unable to read any valid data from *.csv files in [/data/dataset]
2022-05-16 15:29:40,185 - uipath_core.training_plugin:model_run:150 - ERROR: Training failed for pipeline type: TRAIN_ONLY, error: No valid data to run this pipeline.
2022-05-16 15:29:40,186 - uipath_core.trainer_run:main:90 - ERROR: Training Job failed, error: No valid data to run this pipeline.
Traceback (most recent call last):
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/trainer_run.py”, line 85, in main
wrapper.run()
File “/microservice/training_wrapper.py”, line 57, in run
return self.training_plugin.model_run()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 151, in model_run
raise e
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 143, in model_run
self.run_train_only()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 212, in run_train_only
self.train_model(self.local_dataset_directory)
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 116, in train_model
self.model.train(directory)
File “/microservice/train.py”, line 11, in train
self.model.train(training_directory)
File “/microservice/aiflib/model.py”, line 44, in train
raise UiPathUsageException(“No valid data to run this pipeline.”)
aiflib.logger.UiPathUsageException: No valid data to run this pipeline.
2022-05-16 15:30:05,399 - uipath_core.trainer_run:main:73 - INFO: Starting training job…
2022-05-16 15:30:08,067 - uipath_core.logs.upload_log_service:upload_logs_file:87 - INFO: Retry Training Triggered:
2022-05-16 15:30:08,081 - uipath_core.storage.azure_storage_client:download:106 - INFO: Dataset from bucket folder training-03a5a3ba-35d3-4e7a-9c7d-10737e63a54d/4335ceab-9094-4cb6-95cd-4a4e6f61076f/e60883fe-95ec-4255-a4af-fde9b76998d9 with size 1 downloaded successfully
2022-05-16 15:30:08,082 - uipath_core.training_plugin:train_model:114 - INFO: Start model training…
2022-05-16 15:30:08,082 - uipath_core.training_plugin:initialize_model:108 - INFO: Start model initialization…
2022-05-16 15:30:08,082 - uipath_core.training_plugin:initialize_model:111 - INFO: Model initialized successfully
2022-05-16 15:30:08,083 - aiflib.data_manager:info:14 - INFO: Loading data from /data/dataset…
2022-05-16 15:30:08,092 - aiflib.data_manager:info:14 - INFO: File [/data/dataset/train.csv] does not have name [target] in header[‘id’, ‘diagnosis’, ‘radius_mean’, ‘texture_mean’, ‘perimeter_mean’, ‘area_mean’, ‘smoothness_mean’, ‘compactness_mean’, ‘concavity_mean’, ‘concave points_mean’, ‘symmetry_mean’, ‘fractal_dimension_mean’, ‘radius_se’, ‘texture_se’, ‘perimeter_se’, ‘area_se’, ‘smoothness_se’, ‘compactness_se’, ‘concavity_se’, ‘concave points_se’, ‘symmetry_se’, ‘fractal_dimension_se’, ‘radius_worst’, ‘texture_worst’, ‘perimeter_worst’, ‘area_worst’, ‘smoothness_worst’, ‘compactness_worst’, ‘concavity_worst’, ‘concave points_worst’, ‘symmetry_worst’, ‘fractal_dimension_worst’, ‘Unnamed: 32’]’, skipping this file. The csv file must contain a header, a target column and and at least one feature column. The target column name is set by the <input_column> variable of this run. The default value is ‘target’.
2022-05-16 15:30:08,092 - aiflib.data_manager:info:14 - INFO: Unable to read any valid data from *.csv files in [/data/dataset]
2022-05-16 15:30:08,092 - uipath_core.training_plugin:model_run:150 - ERROR: Training failed for pipeline type: TRAIN_ONLY, error: No valid data to run this pipeline.
2022-05-16 15:30:08,092 - uipath_core.trainer_run:main:90 - ERROR: Training Job failed, error: No valid data to run this pipeline.
Traceback (most recent call last):
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/trainer_run.py”, line 85, in main
wrapper.run()
File “/microservice/training_wrapper.py”, line 57, in run
return self.training_plugin.model_run()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 151, in model_run
raise e
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 143, in model_run
self.run_train_only()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 212, in run_train_only
self.train_model(self.local_dataset_directory)
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 116, in train_model
self.model.train(directory)
File “/microservice/train.py”, line 11, in train
self.model.train(training_directory)
File “/microservice/aiflib/model.py”, line 44, in train
raise UiPathUsageException(“No valid data to run this pipeline.”)
aiflib.logger.UiPathUsageException: No valid data to run this pipeline.

I have attached the train dataset.
train.xlsx (109.1 KB)

Hi @s.swapna8

Please let us know which ML Package has been used.

Thanks

Hi @suraj.setty

The ML package which I used is AutoMLClassofication package.

Hi

There were another similar scenario like this
Check this thread for more details

Cheers @s.swapna8

Hi @s.swapna8 ,

According to this Error and by analysing the Excel training data provided, there isn’t a default target column present, in that case are you adding the Environment variable and providing the target_column name ?

In your case, I do think that the target_column name should be diagnosis. Also, there is an Empty column in the Training dataset which I think is not needed.
Check the Training Data once more, Configure the Target Column Properly while creating Pipeline, it should then be able to create a Pipeline successfully.

For More details on the Model, take a look below :

Hi @supermanPunch

I have trained the dataset and it has run successfully. Now while running the test data in the evaluation phase, facing an error.

Traceback (most recent call last):
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/trainer_run.py”, line 85, in main
wrapper.run()
File “/microservice/training_wrapper.py”, line 57, in run
return self.training_plugin.model_run()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 151, in model_run
raise e
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 141, in model_run
self.run_evaluation_only()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 185, in run_evaluation_only
score = self.evaluate_model(self.local_dataset_directory)
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 121, in evaluate_model
score = self.model.evaluate(directory)
File “/microservice/train.py”, line 14, in evaluate
return self.model.evaluate(evaluation_directory)
File “/microservice/aiflib/model.py”, line 72, in evaluate
X = data_df[dm.get_feature_columns()].values
File “/microservice/aiflib/data_manager.py”, line 151, in get_feature_columns
self.feature_column_names = list(self.raw_data.drop(self.target_column_name, axis=1).columns)
AttributeError: ‘NoneType’ object has no attribute ‘drop’
Traceback (most recent call last):
File “/home/aicenter/.local/bin/uipath-core-training”, line 8, in
sys.exit(main())
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/trainer_run.py”, line 91, in main
raise e
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/trainer_run.py”, line 85, in main
wrapper.run()
File “/microservice/training_wrapper.py”, line 57, in run
return self.training_plugin.model_run()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 151, in model_run
raise e
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 141, in model_run
self.run_evaluation_only()
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 185, in run_evaluation_only
score = self.evaluate_model(self.local_dataset_directory)
File “/home/aicenter/.local/lib/python3.6/site-packages/uipath_core/training_plugin.py”, line 121, in evaluate_model
score = self.model.evaluate(directory)
File “/microservice/train.py”, line 14, in evaluate
return self.model.evaluate(evaluation_directory)
File “/microservice/aiflib/model.py”, line 72, in evaluate
X = data_df[dm.get_feature_columns()].values
File “/microservice/aiflib/data_manager.py”, line 151, in get_feature_columns
self.feature_column_names = list(self.raw_data.drop(self.target_column_name, axis=1).columns)
AttributeError: ‘NoneType’ object has no attribute ‘drop’

== Pod:9ee318ae-0985-42b2-838a-195de6ea078c-drx6l:9ee318ae-0985-42b2-838a-195de6ea078c end ==

test.xlsx (52.1 KB)
this is the test dataset

@s.swapna8 ,

I performed the Evaluation Run on my end for the data you have provided, it was Successful.

Did you Select the Minor Version as 0 ?

If so, Change it to 1 and Check.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.