How to use datasets in Classification Learner App?

조회 수: 2 (최근 30일)
Chinwe Orie
Chinwe Orie 2018년 5월 7일
답변: Sayan Saha 2018년 5월 11일
Hello, I want to use the classification learner app. But before I do, I want to create multiple data objects, label them and then use all of them in the classification app. However, the data only has the same number of rows (not columns).
I wanted to put them all into a table, but I then realized when I wanted to label them with categorical letters, I would have to label every row of the table in order for the data to mean anything in the app. I don't want to label every row, I just want every 14 rows to be under one label. Is this by any chance, possible?
And would it be more efficient/easier to make every 14 rows its own dataset and import all the sets into the classification learner? From what I'm seeing, the learner wouldn't accept them all.
I have the MATLAB + Simulink Student Toolbox.
Thank you.

답변 (1개)

Sayan Saha
Sayan Saha 2018년 5월 11일
It seems that each data set actually corresponds to 14 rows. So you can make each 14 rows as one observation and label that observation. Here is an example. Consider the following is your original data :
1 2
3 4
5 6
7 8
Now assume each 2 rows will be labelled 'A' and 'B'. So the data will look like:
1 2 3 4 'A'
5 6 7 8 'B'

카테고리

Help CenterFile Exchange에서 Classification Learner App에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by