You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
During machine learning or other projects, it is a usual practice to save some percentage of data for testing and the rest (usually larger chunk) is used for training. This function accomplishes the same. The user has the freedom to provide the percentage to be reserved for training.
Inputs ->
i. the complete dataset (grouped by one type of label only)(IMP: get rid of the col titles' row)
ii. percentage of the dataset to be dedicate towards ** testing** dataset (usually smaller portion of the whole dataset)
Outputs ->
i. first is the larger chunk of the dataset (training dataset)
ii. smaller chunk of the dataset (testing dataset)
Cite As
Anmol Pardeshi (2026). datasetSplit (https://au.mathworks.com/matlabcentral/fileexchange/85393-datasetsplit), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (21.1 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.1 | updated for non-repeating random numbers |
|
|
| 1.0.0 |
|