I have two different ground truth datasets in my workspace
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (1)
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!
0 comentarios
Ver también
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!