Custom Model Training pipeline Failed ( No such file or directory)

hey All,
I am using my own build ML Model.
when I am trying to train my model from pipeline its getting failed.
attaching the logs of failed pipeline.

Train only of try 1.0 launched - Run a9596c9a-e6eb-4d93-8ac5-b8d46c63f734
Train only of try 1.0 started - Run a9596c9a-e6eb-4d93-8ac5-b8d46c63f734
Train only of try 1.0 scheduled - Run a9596c9a-e6eb-4d93-8ac5-b8d46c63f734
Train only of try 1.0 failed - Run a9596c9a-e6eb-4d93-8ac5-b8d46c63f734

Error Details : Pipeline failed due to ML Package Issue

2023-04-26 13:50:27,050 - uipath_core.trainer_run:main:74 - INFO: Starting training job…
2023-04-26 13:50:27,860 - uipath_core.storage.azure_storage_client:download:119 - INFO: Dataset from bucket folder training-da802cd3-f49d-4378-8742-b2a16470f536/7aec718f-ba5f-4fd8-8b67-e880c133dff3/b6d0222d-1475-4e35-95a2-5225e92ab3fb with size 1 downloaded successfully
2023-04-26 13:50:27,861 - uipath_core.training_plugin:train_model:130 - INFO: Start model training…
2023-04-26 13:50:27,861 - uipath_core.training_plugin:initialize_model:124 - INFO: Start model initialization…
2023-04-26 13:50:27,861 - uipath_core.training_plugin:initialize_model:127 - INFO: Model initialized successfully
2023-04-26 13:50:27,861 - uipath_core.training_plugin:model_run:179 - ERROR: Training failed for pipeline type: TRAIN_ONLY, error: [Errno 2] No such file or directory: ‘/data/dataset/train/resume_skill_data_set.csv’
2023-04-26 13:50:27,862 - uipath_core.trainer_run:main:91 - ERROR: Training Job failed, error: [Errno 2] No such file or directory: ‘/data/dataset/train/resume_skill_data_set.csv’
Traceback (most recent call last):
File “/home/aicenter/.local/lib/python3.7/site-packages/uipath_core/trainer_run.py”, line 86, 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.7/site-packages/uipath_core/training_plugin.py”, line 195, in model_run
raise ex
File “/home/aicenter/.local/lib/python3.7/site-packages/uipath_core/training_plugin.py”, line 171, in model_run
self.run_train_only()
File “/home/aicenter/.local/lib/python3.7/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.7/site-packages/uipath_core/training_plugin.py”, line 132, in train_model
response = self.model.train(directory)
File “/microservice/train.py”, line 53, in train
self.split(training_directory)
File “/microservice/train.py”, line 33, in split
data = pd.read_csv(os.path.join(path, ‘train’, ‘resume_skill_data_set.csv’))
File “/home/aicenter/.local/lib/python3.7/site-packages/pandas/io/parsers.py”, line 688, in read_csv
return _read(filepath_or_buffer, kwds)
File “/home/aicenter/.local/lib/python3.7/site-packages/pandas/io/parsers.py”, line 454, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File “/home/aicenter/.local/lib/python3.7/site-packages/pandas/io/parsers.py”, line 948, in init
self._make_engine(self.engine)
File “/home/aicenter/.local/lib/python3.7/site-packages/pandas/io/parsers.py”, line 1180, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File “/home/aicenter/.local/lib/python3.7/site-packages/pandas/io/parsers.py”, line 2010, in init
self._reader = parsers.TextReader(src, **kwds)
File “pandas/_libs/parsers.pyx”, line 382, in pandas._libs.parsers.TextReader.cinit
File “pandas/_libs/parsers.pyx”, line 674, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: [Errno 2] No such file or directory: ‘/data/dataset/train/resume_skill_data_set.csv’
2023-04-26 13:50:27,864 - uipath_core.trainer_run:main:98 - INFO: Job run stopped.

attaching my train.py file for reference
train.zip (897 Bytes)

could anyone help me what value should I pass in training directory.

Thank you

Hi @Oozair_Khan ,

Maybe the issue is in the reference to the Dataset ?
image

From the Error Log :

@Oozair_Khan

Can you show you dataset as well…i guess as stated above and also earlier …you dataset should be matching

And also the subfolders

Cheers

@Anil_G
resume_skill_data_set.zip (2.9 KB)

@Anil_G

resume_skill_data_set.zip (2.9 KB)

@Oozair_Khan

Did you create the folder Train and then uploaded the csv?

Can you show dataset on ai center please

cheers

@Anil_G

yes I did created a folder train and then uploaded my dataset csv file

@Oozair_Khan

Then in train.py read csv line should have the appropriate locationright…

Currently location is data/resume_skill_data_set.csv it should be train/resume….csv`

Cheers

@Anil_G

I did tried giving the path which u suggested
(train/resume….csv`) but still its getting failed

U want me to share my train.py file?

@Oozair_Khan

I have it…let me upload the whole package and try

When you give train/filename…can you show what filepath did it show in error?

Here

Cheers

@Anil_G

messaged you personally
all the details (train.py file, Error Logs)