I have two different ground truth datasets in my workspace

1 visualización (últimos 30 días)
BASHIR AHMAD RASHEEDY
BASHIR AHMAD RASHEEDY el 25 de Oct. de 2023
Respondida: Venu el 13 de Dic. de 2023
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.

Respuestas (1)

Venu
Venu el 13 de Dic. de 2023
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!

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by