Data format for classification Learner App for time sequence to class prediction
Show older comments
I want to use Classification Learner App for dataset with 400 observations divided into 4 folders: A,B,C,D (100 each).
Folder Names are as per their category/ class: A,B,C,D.
Each observation is stored in CSV file as Var 1,....Var 10 (as col) for 20 time steps (as row).
Is it possible to import these data in Classification Learner App in some way?
Answers (1)
Binaya
on 14 Jan 2024
0 votes
Hi Subhadip
I understand that you want to load your dataset into MATLAB's Classification Learner app.
To load the dataset into Classification Learner app, please follow the below steps:
- Read the all CSV files into MATLAB workspace using "readtable" function.
- Concatenate all the tables into one using "vertcat".
- In Classification Learner app, select the final combined table as the input.
- The data from the table should now be loaded into the Classification Learner app.
Please refer to the below documentation for more details:
- "classificationLearner": https://www.mathworks.com/help/stats/classificationlearner-app.html
- "readtable": https://www.mathworks.com/help/matlab/ref/readtable.html
- "vertcat": https://www.mathworks.com/help/matlab/ref/double.vertcat.html
I hope this helps.
Regards
Binaya
1 Comment
Categories
Find more on Classification Learner App in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!