I have two different ground truth datasets in my workspace

조회 수: 1 (최근 30일)
BASHIR AHMAD RASHEEDY
BASHIR AHMAD RASHEEDY 2023년 10월 25일
답변: Venu 2023년 12월 13일
Greetings, everyone,
I have a question regarding the combination of two distinct ground truth datasets, each with different classes. I'm looking for a way to merge them into a single file for training data. Which function or method can be utilized for this purpose? Your assistance is greatly appreciated.
Thank you in advance.

답변 (1개)

Venu
Venu 2023년 12월 13일
To merge two distinct ground truth datasets with different classes into a single file for training data, you can use either "vertcat" or "outerjoin" depending on the structure of your datasets.
If the datasets have the same columns and you simply want to stack the rows together, you can use "vertcat":
combinedData = vertcat(dataset1, dataset2);
If the datasets have different columns and you need to align them based on a common key or index, you can use "outerjoin":
combinedData = outerjoin(dataset1, dataset2, 'MergeKeys', true);
Find the documentation below for reference.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by