Train, Validation and Test in different folders

7 次查看(过去 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)

回答(1 个)

Biral Pradhan
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.

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by