Train, Validation and Test in different folders
2 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I'm sorry but I'm new in matlab.
I'm building my ANN, I already downloaded a huge dataset divided in train, val and test set. These 3 sets stay in 3 different folder, how can I say to my script to take the training set from one folder, validation set from another folder and test set from another one?
Another problem is that there are the same names (example: train set have x1, x2, x3...xn, val set have inside x1, x2, x3....xm, same for the test set)
0 个评论
回答(1 个)
Biral Pradhan
2022-6-3
I understand, you have your training, validation, and test datasets in 3 different folders, and want to import them into MATLAB. MATLAB allows you to specify the complete path to a file while importing it to the workspace. For example, if you are using the "readtable" function, then the filename parameter accpets complete path to the file. Kindly refer to below link for better understanding:
Regarding your second query, you can import the 3 datasets as they are, into 3 different variables. There should not be a problem with field names being same.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!